Changeset 826
- Timestamp:
- 02/23/10 11:31:56 (15 years ago)
- Location:
- library/bdm
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/mex/mex_function.h
r800 r826 21 21 mexCallMATLAB ( 1, &mxout, 1, &mxinp, fname.c_str() ); 22 22 23 bdm_assert(mxGetN(mxout)== uint(dimension()) || mxGetM(mxout)==uint(dimension()), "vector length mismatch");23 bdm_assert(mxGetN(mxout)==(dimension()) || mxGetM(mxout)==(dimension()), "vector length mismatch"); 24 24 vec tmp=mxArray2vec(mxout); 25 25 return tmp; -
library/bdm/stat/exp_family.cpp
r810 r826 121 121 fsqmat R ( reshape ( val ( nPsi*dimx, vend ), dimx, dimx ) ); 122 122 double ldetR = R.logdet(); 123 if ( ! isfinite(ldetR) ) return -inf;123 if ( !std::isfinite(ldetR) ) return -inf; 124 124 fsqmat iR ( dimx ); 125 125 R.inv ( iR );