use from Ernesto Palacios
Dependents: RoboticArm DXL_SDK_Porting_Test
Fork of Matrix by
Diff: Matrix.h
- Revision:
- 3:589fb80932b5
- Parent:
- 2:493402568a5e
- Child:
- 4:c0c8f3edd60e
diff -r 493402568a5e -r 589fb80932b5 Matrix.h --- a/Matrix.h Thu Oct 20 23:42:13 2011 +0000 +++ b/Matrix.h Fri Oct 21 03:33:53 2011 +0000 @@ -1,7 +1,7 @@ /** - * @file: Matrix.h - * @author: Ernesto Palacios + * @file Matrix.h + * @author Ernesto Palacios * Created on 13 de septiembre de 2011, 03:49 PM * * Develop Under GPL v3.0 License @@ -23,7 +23,7 @@ * * Intended to be ported to mbed.org * - * v1.01 + * v1.6 * */ class Matrix{ @@ -37,20 +37,13 @@ Matrix( const Matrix& base ); - /// Reserves Memory for a New Matrix + /// Default Constructor Matrix(); /******************************************************************************/ - /** @brief - * This is the '=' Overloaded operator. It RESIZES assigned the matrix. - * Overwrites all data. To be used Carefully! - */ - Matrix& operator = ( const Matrix& rightM ); - - /**@brief This includes the Class to handle Matrix Operations. */ friend class MatrixMath; @@ -58,6 +51,13 @@ /** @brief + * Overwrites all data. To be used Carefully! + */ + Matrix& operator = ( const Matrix& rightM ); + + + + /** @brief * Overload opeartor for the compare Matrices * * @param rightM @@ -114,8 +114,7 @@ /**@brief - * Makes all elements in matrix negative. - * Unary operator + * All elements in matrix are multiplied by (-1). * @return A new Matrix object with inverted values. */ const Matrix operator -(); @@ -251,15 +250,6 @@ /** @brief - * Determines if two matrices are equal. - * @param mat1: First Matrix - * @param mat2: Sencond Matrix - */ - static bool Equals( const Matrix& mat1, const Matrix& mat2 ); - - - - /** @brief * Invoking this static method will increase a Row in Mat in the desired * position. * The current Row will be moved down to allocate space, and all elements will