From 77dc6537fa714f85ea247b024e9c478fd6f93362 Mon Sep 17 00:00:00 2001 From: cnr-isti-vclab Date: Mon, 18 Oct 2004 12:18:10 +0000 Subject: [PATCH] bug fixed in SingularValueBacksubstitution --- vcg/math/lin_algebra.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/vcg/math/lin_algebra.h b/vcg/math/lin_algebra.h index 90e50a6f..58c0b3fd 100644 --- a/vcg/math/lin_algebra.h +++ b/vcg/math/lin_algebra.h @@ -377,29 +377,30 @@ namespace vcg */ template static void SingularValueBacksubstitution(const MATRIX_TYPE &U, - const typename MATRIX_TYPE::ScalarType *W, - const MATRIX_TYPE &V, - typename MATRIX_TYPE::ScalarType *x, - const typename MATRIX_TYPE::ScalarType *b) + const typename MATRIX_TYPE::ScalarType *W, + const MATRIX_TYPE &V, + typename MATRIX_TYPE::ScalarType *x, + const typename MATRIX_TYPE::ScalarType *b) { + typedef typename MATRIX_TYPE::ScalarType ScalarType; unsigned int jj, j, i; ScalarType s; - ScalarType tmp = new ScalarType[U._columns]; - for (j=0; j