From 3ddd1893490cccf83f62e9ffa47ce6269df866e2 Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Tue, 11 Apr 2006 08:09:35 +0000 Subject: [PATCH] changes necessary for gcc 3.4.5 on linux 64bit. Please take note of case-sensitivity of filenames --- vcg/math/linear.h | 5 ++++- vcg/math/matrix.h | 13 +++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/vcg/math/linear.h b/vcg/math/linear.h index c80542fc..08e5556e 100644 --- a/vcg/math/linear.h +++ b/vcg/math/linear.h @@ -24,6 +24,9 @@ History $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 first version @@ -66,4 +69,4 @@ namespace vcg { }; }; -#endif \ No newline at end of file +#endif diff --git a/vcg/math/matrix.h b/vcg/math/matrix.h index d24333c7..ff50ff45 100644 --- a/vcg/math/matrix.h +++ b/vcg/math/matrix.h @@ -22,6 +22,9 @@ ****************************************************************************/ /*************************************************************************** $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 @@ -32,7 +35,8 @@ $Log: not supported by cvs2svn $ #include #include #include -#include +#include +#include namespace vcg{ namespace ndim{ @@ -656,8 +660,9 @@ namespace vcg{ template void Invert(MatrixType & m){ - typename MatrixType::ScalarType *diag; - diag = new MatrixType::ScalarType [m.ColumnsNumber()]; + typedef typename MatrixType::ScalarType X; + X *diag; + diag = new X [m.ColumnsNumber()]; MatrixType res(m.RowsNumber(),m.ColumnsNumber()); vcg::SingularValueDecomposition (m,&diag[0],res,50 ); @@ -673,4 +678,4 @@ namespace vcg{ } }; // end of namespace -#endif \ No newline at end of file +#endif