use from Ernesto Palacios
Dependents: RoboticArm DXL_SDK_Porting_Test
Fork of Matrix by
Diff: Matrix.cpp
- Revision:
- 3:589fb80932b5
- Parent:
- 2:493402568a5e
- Child:
- 4:c0c8f3edd60e
--- a/Matrix.cpp Thu Oct 20 23:42:13 2011 +0000 +++ b/Matrix.cpp Fri Oct 21 03:33:53 2011 +0000 @@ -1,7 +1,7 @@ /** - * @file: Matrix.cpp - * @author: Ernesto Palacios - * @brief: Source Code for the Matrix Class. + * @file Matrix.cpp + * @author Ernesto Palacios + * @brief Source Code for the Matrix Class. * * Created on September 2011. * @@ -102,29 +102,6 @@ -/// Test elment-by-element. Prints detailed error. -bool Matrix::Equals( const Matrix& mat1, const Matrix& mat2 ) -{ - if( mat1._nCols == mat2._nCols && mat1._nRows == mat2._nRows ) - { - bool equal = false; - - for( int i = 0; i < mat1._nRows; i++ ) - for( int j = 0; j < mat1._nCols; j++ ) - if( mat1._matrix[i][j] != mat2._matrix[i][j] ) - equal = equal || true; - - return !equal; - - }else{ - printf( "\n\nERROR:\nDiferent Size Matrices!\n" ); - printf( "mat1._nRows = %u\nmat1._nCols = %u\n",mat1._nRows, mat1._nCols ); - printf( "mat2._nRows = %u\nmat2._nCols = %u\n",mat2._nRows, mat2._nCols ); - return false; - } -} - - /// To add (Insert) a Single Row to a Matrix. void Matrix::AddRow(Matrix& Mat, int Row) {