From b2bab7362bd766533f04cdd8d2cb06ee447f457a Mon Sep 17 00:00:00 2001 From: Matthew Webster <mwebster@fmrib.ox.ac.uk> Date: Tue, 3 Nov 2009 13:52:02 +0000 Subject: [PATCH] Identity no longer used, IdentityMatrix is the NEWMAT provided call --- miscmaths.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miscmaths.cc b/miscmaths.cc index 636d2c6..675479a 100644 --- a/miscmaths.cc +++ b/miscmaths.cc @@ -1019,11 +1019,11 @@ float rms_deviation(const Matrix& affmat1, const Matrix& affmat2, Matrix isodiff(4,4), a1(4,4), a2(4,4); if ((affmat1.Nrows()==4) && (affmat1.Ncols()==4)) { a1=affmat1; } - else if ((affmat1.Nrows()==3) && (affmat1.Ncols()==3)) { a1=Identity(4); a1.SubMatrix(1,3,1,3)=affmat1; } + else if ((affmat1.Nrows()==3) && (affmat1.Ncols()==3)) { a1=IdentityMatrix(4); a1.SubMatrix(1,3,1,3)=affmat1; } else { cerr << "ERROR:: Can only calculate RMS deviation for 4x4 or 3x3 matrices" << endl; exit(-5); } if ((affmat2.Nrows()==4) && (affmat2.Ncols()==4)) { a2=affmat2; } - else if ((affmat2.Nrows()==3) && (affmat2.Ncols()==3)) { a2=Identity(4); a2.SubMatrix(1,3,1,3)=affmat2; } + else if ((affmat2.Nrows()==3) && (affmat2.Ncols()==3)) { a2=IdentityMatrix(4); a2.SubMatrix(1,3,1,3)=affmat2; } else { cerr << "ERROR:: Can only calculate RMS deviation for 4x4 or 3x3 matrices" << endl; exit(-5); } try { -- GitLab