changes necessary for gcc 3.4.5 on linux 64bit. Please take note of case-sensitivity of filenames
This commit is contained in:
parent
29822d8362
commit
3ddd189349
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.2 2005/12/12 11:24:09 ganovelli
|
||||||
|
missing type added
|
||||||
|
|
||||||
Revision 1.1 2004/03/16 03:08:17 tarini
|
Revision 1.1 2004/03/16 03:08:17 tarini
|
||||||
first version
|
first version
|
||||||
|
|
||||||
|
@ -66,4 +69,4 @@ namespace vcg {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -22,6 +22,9 @@
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.5 2005/12/12 11:25:00 ganovelli
|
||||||
|
added diagonal matrix, outer produce and namespace
|
||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#ifndef MATRIX_VCGLIB
|
#ifndef MATRIX_VCGLIB
|
||||||
|
@ -32,7 +35,8 @@ $Log: not supported by cvs2svn $
|
||||||
#include <memory.h>
|
#include <memory.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <vcg/space/Point.h>
|
#include <vcg/space/point.h>
|
||||||
|
#include <vcg/math/lin_algebra.h>
|
||||||
|
|
||||||
namespace vcg{
|
namespace vcg{
|
||||||
namespace ndim{
|
namespace ndim{
|
||||||
|
@ -656,8 +660,9 @@ namespace vcg{
|
||||||
|
|
||||||
template <class MatrixType>
|
template <class MatrixType>
|
||||||
void Invert(MatrixType & m){
|
void Invert(MatrixType & m){
|
||||||
typename MatrixType::ScalarType *diag;
|
typedef typename MatrixType::ScalarType X;
|
||||||
diag = new MatrixType::ScalarType [m.ColumnsNumber()];
|
X *diag;
|
||||||
|
diag = new X [m.ColumnsNumber()];
|
||||||
|
|
||||||
MatrixType res(m.RowsNumber(),m.ColumnsNumber());
|
MatrixType res(m.RowsNumber(),m.ColumnsNumber());
|
||||||
vcg::SingularValueDecomposition<MatrixType > (m,&diag[0],res,50 );
|
vcg::SingularValueDecomposition<MatrixType > (m,&diag[0],res,50 );
|
||||||
|
@ -673,4 +678,4 @@ namespace vcg{
|
||||||
}
|
}
|
||||||
}; // end of namespace
|
}; // end of namespace
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue