example for Lapack MahalanobisDistance usage , Lapack
- Author
- koeser 11/2007
#include <MathAlgo/SVD.hh>
#include <Base/Math/Random.hh>
#include <Base/Debug/TimeMeasure.hh>
#include <MathAlgo/Lapack.hh>
using namespace BIAS;
using namespace std;
int main()
{
unsigned int matdim = 10;
for (unsigned int i=0; i<matdim; i++) {
for (unsigned int j=0; j<matdim; j++) {
}
}
cout<<"Cov is "<< Cov<<endl;
double svddist=0,lapackdist=0;
for (unsigned int i=0; i<1000; i++) {
}
cerr << "svd: ";
cerr << "lapack: ";
cerr <<
"user: "<<(double)tsvd3.
GetUserTime() <<
" ms";
cerr <<
"real: "<<(double)tsvd3.
GetRealTime() <<
" us"<<endl;
cout<<"distances are "<<svddist<<" "<<lapackdist <<endl;
return 0;
}