Skip to content
Snippets Groups Projects
Commit b2bab736 authored by Matthew Webster's avatar Matthew Webster
Browse files

Identity no longer used, IdentityMatrix is the NEWMAT provided call

parent 28690cb3
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment