Class Matrixwrapper. More...
#include <matrix_wrapper.h>
Public Member Functions | |
| virtual unsigned int | capacity () const =0 |
| Ask Number of Rows. | |
| virtual MyColumnVector | columnCopy (unsigned int c) const =0 |
| Get column from matrix. | |
| virtual unsigned int | columns () const =0 |
| Ask Number of Columns. | |
| virtual int | convertToSymmetricMatrix (MySymmetricMatrix &sym)=0 |
| Turn matrix into Symmetric one. | |
| virtual double | determinant () const =0 |
| get determinant | |
| virtual MyMatrix | inverse () const =0 |
| get inverse | |
| Matrix_Wrapper () | |
| Constructor. | |
| virtual double & | operator() (unsigned int, unsigned int)=0 |
| Operator () | |
| virtual double | operator() (unsigned int, unsigned int) const =0 |
| Operator () | |
| virtual MyMatrix | operator* (double b) const =0 |
| MATRIX - SCALAR operator. | |
| virtual MyMatrix | operator* (const MyMatrix &a) const =0 |
| MATRIX - MATRIX operator. | |
| virtual MyColumnVector | operator* (const MyColumnVector &b) const =0 |
| MATRIX - VECTOR operator. | |
| virtual MyMatrix & | operator*= (double b)=0 |
| MATRIX - SCALAR operator. | |
| virtual MyMatrix | operator+ (double b) const =0 |
| MATRIX - SCALAR operator. | |
| virtual MyMatrix | operator+ (const MyMatrix &a) const =0 |
| MATRIX - MATRIX operator. | |
| virtual MyMatrix & | operator+= (double a)=0 |
| MATRIX - SCALAR operator. | |
| virtual MyMatrix & | operator+= (const MyMatrix &a)=0 |
| MATRIX - MATRIX operator. | |
| virtual MyMatrix | operator- (double b) const =0 |
| MATRIX - SCALAR operator. | |
| virtual MyMatrix | operator- (const MyMatrix &a) const =0 |
| MATRIX - MATRIX operator. | |
| virtual MyMatrix & | operator-= (double a)=0 |
| MATRIX - SCALAR operator. | |
| virtual MyMatrix & | operator-= (const MyMatrix &a)=0 |
| MATRIX - MATRIX operator. | |
| virtual MyMatrix | operator/ (double b) const =0 |
| MATRIX - SCALAR operator. | |
| virtual MyMatrix & | operator/= (double b)=0 |
| MATRIX - SCALAR operator. | |
| virtual MyMatrix & | operator= (double a)=0 |
| Set all elements of the Matrix equal to a. | |
| virtual MyMatrix & | operator= (const MySymmetricMatrix &a)=0 |
| MATRIX - SYMMETRICMATRIX operators. | |
| virtual bool | operator== (const MyMatrix &a) const =0 |
| Operator ==. | |
| virtual MyMatrix | pseudoinverse (double epsilon=0.01) const |
| get pseudoinverse | |
| double | PYTHAG (double a, double b) const |
| virtual void | resize (unsigned int i, unsigned int j, bool copy=true, bool initialize=true)=0 |
| resize matrix | |
| virtual MyRowVector | rowCopy (unsigned int r) const =0 |
| Get row from matrix. | |
| virtual unsigned int | rows () const =0 |
| Ask Number of Rows. | |
| double | SIGN (double a, double b) const |
| virtual unsigned int | size () const =0 |
| Ask Number of Rows. | |
| virtual MyMatrix | sub (int i_start, int i_end, int j_start, int j_end) const =0 |
| get sub matrix | |
| virtual bool | SVD (MyColumnVector &D, MyMatrix &U, MyMatrix &V) const |
| SVD Decomposition (for pseudo-inverse properties) | |
| virtual MyMatrix | transpose () const =0 |
| get transpose | |
| virtual | ~Matrix_Wrapper () |
| Destructor. | |
Class Matrixwrapper.
Definition at line 39 of file matrix_wrapper.h.
| MatrixWrapper::Matrix_Wrapper::Matrix_Wrapper | ( | ) | [inline] |
Constructor.
Definition at line 44 of file matrix_wrapper.h.
| virtual MatrixWrapper::Matrix_Wrapper::~Matrix_Wrapper | ( | ) | [inline, virtual] |
Destructor.
Definition at line 47 of file matrix_wrapper.h.
| virtual unsigned int MatrixWrapper::Matrix_Wrapper::capacity | ( | ) | const [pure virtual] |
Ask Number of Rows.
| virtual MyColumnVector MatrixWrapper::Matrix_Wrapper::columnCopy | ( | unsigned int | c | ) | const [pure virtual] |
Get column from matrix.
| virtual unsigned int MatrixWrapper::Matrix_Wrapper::columns | ( | ) | const [pure virtual] |
Ask Number of Columns.
| virtual int MatrixWrapper::Matrix_Wrapper::convertToSymmetricMatrix | ( | MySymmetricMatrix & | sym | ) | [pure virtual] |
Turn matrix into Symmetric one.
Convert Matrix to SymmetricMatrix Elements of matrix are copied to lower triangle of new symmetric matrix
| virtual double MatrixWrapper::Matrix_Wrapper::determinant | ( | ) | const [pure virtual] |
get determinant
| virtual MyMatrix MatrixWrapper::Matrix_Wrapper::inverse | ( | ) | const [pure virtual] |
get inverse
| virtual double& MatrixWrapper::Matrix_Wrapper::operator() | ( | unsigned | int, |
| unsigned | int | ||
| ) | [pure virtual] |
Operator ()
| virtual double MatrixWrapper::Matrix_Wrapper::operator() | ( | unsigned | int, |
| unsigned | int | ||
| ) | const [pure virtual] |
Operator ()
| virtual MyMatrix MatrixWrapper::Matrix_Wrapper::operator* | ( | double | b | ) | const [pure virtual] |
MATRIX - SCALAR operator.
| virtual MyMatrix MatrixWrapper::Matrix_Wrapper::operator* | ( | const MyMatrix & | a | ) | const [pure virtual] |
MATRIX - MATRIX operator.
| virtual MyColumnVector MatrixWrapper::Matrix_Wrapper::operator* | ( | const MyColumnVector & | b | ) | const [pure virtual] |
MATRIX - VECTOR operator.
| virtual MyMatrix& MatrixWrapper::Matrix_Wrapper::operator*= | ( | double | b | ) | [pure virtual] |
MATRIX - SCALAR operator.
| virtual MyMatrix MatrixWrapper::Matrix_Wrapper::operator+ | ( | double | b | ) | const [pure virtual] |
MATRIX - SCALAR operator.
| virtual MyMatrix MatrixWrapper::Matrix_Wrapper::operator+ | ( | const MyMatrix & | a | ) | const [pure virtual] |
MATRIX - MATRIX operator.
| virtual MyMatrix& MatrixWrapper::Matrix_Wrapper::operator+= | ( | double | a | ) | [pure virtual] |
MATRIX - SCALAR operator.
MATRIX - MATRIX operator.
| virtual MyMatrix MatrixWrapper::Matrix_Wrapper::operator- | ( | double | b | ) | const [pure virtual] |
MATRIX - SCALAR operator.
| virtual MyMatrix MatrixWrapper::Matrix_Wrapper::operator- | ( | const MyMatrix & | a | ) | const [pure virtual] |
MATRIX - MATRIX operator.
| virtual MyMatrix& MatrixWrapper::Matrix_Wrapper::operator-= | ( | double | a | ) | [pure virtual] |
MATRIX - SCALAR operator.
MATRIX - MATRIX operator.
| virtual MyMatrix MatrixWrapper::Matrix_Wrapper::operator/ | ( | double | b | ) | const [pure virtual] |
MATRIX - SCALAR operator.
| virtual MyMatrix& MatrixWrapper::Matrix_Wrapper::operator/= | ( | double | b | ) | [pure virtual] |
MATRIX - SCALAR operator.
| virtual MyMatrix& MatrixWrapper::Matrix_Wrapper::operator= | ( | double | a | ) | [pure virtual] |
Set all elements of the Matrix equal to a.
| virtual MyMatrix& MatrixWrapper::Matrix_Wrapper::operator= | ( | const MySymmetricMatrix & | a | ) | [pure virtual] |
MATRIX - SYMMETRICMATRIX operators.
| virtual bool MatrixWrapper::Matrix_Wrapper::operator== | ( | const MyMatrix & | a | ) | const [pure virtual] |
Operator ==.
| MyMatrix MatrixWrapper::Matrix_Wrapper::pseudoinverse | ( | double | epsilon = 0.01 | ) | const [virtual] |
get pseudoinverse
Definition at line 310 of file matrix_wrapper.cpp.
| double MatrixWrapper::Matrix_Wrapper::PYTHAG | ( | double | a, |
| double | b | ||
| ) | const |
Definition at line 283 of file matrix_wrapper.cpp.
| virtual void MatrixWrapper::Matrix_Wrapper::resize | ( | unsigned int | i, |
| unsigned int | j, | ||
| bool | copy = true, |
||
| bool | initialize = true |
||
| ) | [pure virtual] |
resize matrix
| virtual MyRowVector MatrixWrapper::Matrix_Wrapper::rowCopy | ( | unsigned int | r | ) | const [pure virtual] |
Get row from matrix.
| virtual unsigned int MatrixWrapper::Matrix_Wrapper::rows | ( | ) | const [pure virtual] |
Ask Number of Rows.
| double MatrixWrapper::Matrix_Wrapper::SIGN | ( | double | a, |
| double | b | ||
| ) | const |
Definition at line 303 of file matrix_wrapper.cpp.
| virtual unsigned int MatrixWrapper::Matrix_Wrapper::size | ( | ) | const [pure virtual] |
Ask Number of Rows.
| virtual MyMatrix MatrixWrapper::Matrix_Wrapper::sub | ( | int | i_start, |
| int | i_end, | ||
| int | j_start, | ||
| int | j_end | ||
| ) | const [pure virtual] |
get sub matrix
| bool MatrixWrapper::Matrix_Wrapper::SVD | ( | MyColumnVector & | D, |
| MyMatrix & | U, | ||
| MyMatrix & | V | ||
| ) | const [virtual] |
SVD Decomposition (for pseudo-inverse properties)
Definition at line 47 of file matrix_wrapper.cpp.
| virtual MyMatrix MatrixWrapper::Matrix_Wrapper::transpose | ( | ) | const [pure virtual] |
get transpose