Changeset 85 for bdm/math/libDC.h
- Timestamp:
- 04/28/08 10:21:21 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
bdm/math/libDC.h
r75 r85 149 149 vec sqrt_mult (const vec &v ) const {mat Ch=chol(M); return Ch*v;}; 150 150 151 //! Add another matrix in fsq form with weight w 152 void add ( const fsqmat &fsq2, double w=1.0 ){M+=fsq2.M;}; 153 151 154 //! Access functions 152 155 void setD (const vec &nD){M=diag(nD);} … … 155 158 //! Access functions 156 159 void setD (const vec &nD, int i){for(int j=i;j<nD.length();j++){M(j,j)=nD(j-i);}} //Fixme can be more general 160 157 161 158 162 //! add another fsqmat matrix