Matrix class included
Dependencies: Matrix
MatrixMath.cpp
- Committer:
- Yo_Robot
- Date:
- 2011-10-21
- Revision:
- 0:eb69bbfb6486
- Child:
- 1:c74cdf14aea2
File content as of revision 0:eb69bbfb6486:
/** * @brief Still under work version 0.1 * @file MatrixMath.cpp * @author Erneseto Palacios * * Develop Under GPL v3.0 License * http://www.gnu.org/licenses/gpl-3.0.html */ #include "mbed.h" #include "MatrixMath.h" ///Transpose matrix Matrix MatrixMath::Transpose(const Matrix& matrix) { Matrix result( matrix._nCols, matrix._nRows ); //Transpose Matrix for( int i = 0; i < result._nRows; i++ ) for( int j = 0; j < result._nCols; j++ ) result._matrix[i][j] = matrix._matrix[j][i]; return result; }