Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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)
{