![]() |
Rosetta Utilities
2015.09
|
#include <MathMatrix.hh>
Public Member Functions | |
MathMatrix () | |
default constructor More... | |
MathMatrix (const Size NUMBER_ROWS, const Size NUMBER_COLS, const T &FILL_VALUE=T(0)) | |
construct from dimension and possible filler More... | |
MathMatrix (const Size NUMBER_ROWS, const Size NUMBER_COLS, const T *DATA) | |
construct from dimension and pointer to data More... | |
MathMatrix (const MathMatrix< T > &MATRIX) | |
copy constructor from Matrix More... | |
MathMatrix< T > * | Clone () const |
Clone function. More... | |
~MathMatrix () | |
destructor More... | |
Size | get_number_rows () const |
get number of rows More... | |
Size | get_number_cols () const |
get number of columns More... | |
Size | get_number_elements () const |
number of elements More... | |
Size | size () const |
number of elements More... | |
const T * | begin () const |
pointer to First Element More... | |
T * | begin () |
pointer to First Element More... | |
const T * | end () const |
pointer to end of range More... | |
T * | end () |
pointer to end of range More... | |
MathVector< T > | get_row (const Size ROW) const |
MathVector< T > | get_col (const Size COL) const |
bool | is_square () const |
is matrix a square matrix More... | |
bool | is_diagonal () const |
is matrix a diagonal matrix More... | |
bool | is_tri_diagonal () const |
is matrix a tridiagonal matrix More... | |
bool | same_dimensions (const MathMatrix< T > &MATRIX_LHS, const MathMatrix< T > &MATRIX_RHS) |
check dimension agreement of two Matrices More... | |
bool | inverse_dimensions (const MathMatrix< T > &MATRIX_LHS, const MathMatrix< T > &MATRIX_RHS) |
check inverse dimension agreement of two Matrices comapre number ros of lhs with number cols of rhs and number cols of lhs with number rows of rhs More... | |
bool | multiplication_dimension (const MathMatrix< T > &MATRIX_LHS, const MathMatrix< T > &MATRIX_RHS) |
check dimensions for multiplication A*B compare number cols of lhs with number rows of rhs More... | |
MathMatrix< T > & | set_zero () |
MathMatrix< T > | transpose (const MathMatrix< T > &MATRIX) |
MathMatrix< T > & | inverse () |
MathMatrix< T > & | transpose () |
MathMatrix< T > & | inverse_rectangular_matrix () |
MathMatrix< T > | inverse_square_matrix () |
invert small square matrices exactly More... | |
MathMatrix< T > & | inverse_diagonal_matrix () |
MathMatrix< T > & | inverse_tridiagonal_matrix () |
MathMatrix< T > & | set_unit () |
Size | pivot (const Size ROW) |
MathMatrix< T > & | replace_row (const Size ROW, const MathVector< T > &VECTOR) |
MathMatrix< T > & | replace_col (const Size COL, const MathVector< T > &VECTOR) |
MathMatrix< T > & | swap_rows (const Size ROW_A, const Size ROW_B) |
MathMatrix< T > & | swap_cols (const Size COL_A, const Size COL_B) |
bool | IsValidPosition (const Size ROW, const Size COL) const |
T & | operator() (const Size ROW, const Size COL) |
return reference to changeable element ( ROW, COL) More... | |
const T & | operator() (const Size ROW, const Size COL) const |
return reference to const element ( ROW, COL) More... | |
MathMatrix< T > & | operator= (const MathMatrix< T > &MATRIX) |
assignment from Matrix More... | |
MathMatrix< T > & | operator= (const T &VALUE) |
assignment from value More... | |
T * | operator[] (const Size ROW) |
C-style data access with [] gives a pointer on a ROW. More... | |
const T * | operator[] (const Size ROW) const |
C-style data access with [] gives a pointer on a ROW. More... | |
MathMatrix< T > & | operator*= (const MathMatrix< T > &MATRIX) |
operator *= Matrix More... | |
MathMatrix< T > & | operator*= (const MathVector< T > &VECTOR) |
operator *= VectorBase More... | |
Private Attributes | |
Size | NumberRows_ |
Size | NumberCols_ |
Size | size_ |
T * | data_ |
|
inline |
default constructor
|
inlineexplicit |
construct from dimension and possible filler
NUMBER_ROWS | number of rows in matrix |
NUMBER_COLS | number of cols in matrix |
FILL_VALUE | assign every element to that value |
|
inline |
construct from dimension and pointer to data
NUMBER_ROWS | number of rows in matrix |
NUMBER_COLS | number of cols in matrix |
DATA | pointer to field of data |
|
inline |
copy constructor from Matrix
MATRIX | matrix to be copied from |
|
inline |
destructor
|
inline |
pointer to First Element
Referenced by numeric::operator!=(), numeric::operator*=(), numeric::operator+=(), numeric::operator-=(), numeric::operator/=(), and numeric::operator==().
|
inline |
pointer to First Element
|
inline |
Clone function.
|
inline |
pointer to end of range
Referenced by numeric::operator!=(), numeric::operator*=(), numeric::operator+=(), numeric::operator-=(), numeric::operator/=(), and numeric::operator==().
|
inline |
pointer to end of range
|
inline |
Referenced by numeric::interpolation::spline::BicubicSpline::train().
|
inline |
get number of columns
Referenced by numeric::interpolation::spline::BicubicSpline::dFdx(), numeric::interpolation::spline::BicubicSpline::dFdy(), numeric::interpolation::spline::BicubicSpline::F(), numeric::interpolation::spline::BicubicSpline::FdF(), numeric::MathMatrix< Real >::inverse_dimensions(), numeric::MathMatrix< Real >::multiplication_dimension(), numeric::operator*(), numeric::MathTensor< Real >::replace_layer(), numeric::MathNTensor< Real >::replace_layer(), numeric::MathMatrix< Real >::same_dimensions(), and numeric::interpolation::spline::BicubicSpline::train().
|
inline |
number of elements
Referenced by numeric::MathMatrix< Real >::is_diagonal().
|
inline |
get number of rows
Referenced by numeric::interpolation::spline::BicubicSpline::dFdx(), numeric::interpolation::spline::BicubicSpline::dFdy(), numeric::interpolation::spline::BicubicSpline::F(), numeric::interpolation::spline::BicubicSpline::FdF(), numeric::MathMatrix< Real >::inverse_dimensions(), numeric::MathMatrix< Real >::multiplication_dimension(), numeric::operator*(), numeric::MathTensor< Real >::replace_layer(), numeric::MathNTensor< Real >::replace_layer(), numeric::MathMatrix< Real >::same_dimensions(), and numeric::interpolation::spline::BicubicSpline::train().
|
inline |
Referenced by numeric::interpolation::spline::BicubicSpline::train().
|
inline |
Referenced by numeric::interpolation::spline::CubicSpline::train().
|
inline |
Referenced by numeric::MathMatrix< Real >::inverse_square_matrix().
|
inline |
check inverse dimension agreement of two Matrices comapre number ros of lhs with number cols of rhs and number cols of lhs with number rows of rhs
MATRIX_LHS | rhs matrix |
MATRIX_RHS | lhs matrix |
|
inline |
Referenced by numeric::MathMatrix< Real >::inverse().
|
inline |
invert small square matrices exactly
Referenced by numeric::MathMatrix< Real >::inverse(), and numeric::MathMatrix< Real >::inverse_rectangular_matrix().
|
inline |
Referenced by numeric::MathMatrix< Real >::inverse_square_matrix().
|
inline |
is matrix a diagonal matrix
Referenced by numeric::MathMatrix< Real >::inverse_square_matrix().
|
inline |
is matrix a square matrix
Referenced by numeric::MathMatrix< Real >::inverse(), numeric::MathMatrix< Real >::is_diagonal(), and numeric::MathMatrix< Real >::is_tri_diagonal().
|
inline |
is matrix a tridiagonal matrix
Referenced by numeric::MathMatrix< Real >::inverse_square_matrix().
|
inline |
Referenced by numeric::MathMatrix< Real >::replace_col(), numeric::MathMatrix< Real >::replace_row(), numeric::MathMatrix< Real >::swap_cols(), and numeric::MathMatrix< Real >::swap_rows().
|
inline |
check dimensions for multiplication A*B compare number cols of lhs with number rows of rhs
MATRIX_LHS | rhs matrix |
MATRIX_RHS | lhs matrix |
|
inline |
return reference to changeable element ( ROW, COL)
ROW | the row number, starting with 0 |
COL | the col number, starting with 0 |
Referenced by numeric::MathMatrix< Real >::get_col(), numeric::MathMatrix< Real >::inverse_diagonal_matrix(), numeric::MathMatrix< Real >::inverse_square_matrix(), numeric::MathMatrix< Real >::inverse_tridiagonal_matrix(), numeric::MathMatrix< Real >::operator*=(), numeric::MathMatrix< Real >::replace_col(), and numeric::MathMatrix< Real >::transpose().
|
inline |
return reference to const element ( ROW, COL)
ROW | the row number, starting with 0 |
COL | the col number, starting with 0 |
|
inline |
operator *= Matrix
|
inline |
operator *= VectorBase
|
inline |
assignment from Matrix
MATRIX | the matrix used as source |
|
inline |
assignment from value
VALUE | all elements are set to that value |
|
inline |
C-style data access with [] gives a pointer on a ROW.
Referenced by numeric::MathMatrix< Real >::get_row(), and numeric::MathMatrix< Real >::operator*=().
|
inline |
C-style data access with [] gives a pointer on a ROW.
|
inline |
Referenced by numeric::MathMatrix< Real >::inverse_square_matrix().
|
inline |
Referenced by numeric::interpolation::spline::BicubicSpline::train().
|
inline |
Referenced by numeric::interpolation::spline::BicubicSpline::train().
|
inline |
check dimension agreement of two Matrices
MATRIX_LHS | rhs matrix |
MATRIX_RHS | lhs matrix |
|
inline |
Referenced by numeric::MathMatrix< Real >::inverse_square_matrix().
|
inline |
Referenced by numeric::MathMatrix< Real >::set_unit().
|
inline |
number of elements
Referenced by numeric::operator-(), and numeric::operator/().
|
inline |
|
inline |
Referenced by numeric::MathMatrix< Real >::inverse_square_matrix(), and numeric::MathMatrix< Real >::pivot().
|
inline |
Referenced by numeric::MathMatrix< Real >::inverse_rectangular_matrix().
|
inline |
Referenced by numeric::MathMatrix< Real >::inverse_rectangular_matrix(), and numeric::MathMatrix< Real >::transpose().
|
private |
Referenced by numeric::MathMatrix< Real >::begin(), numeric::MathMatrix< Real >::end(), numeric::MathMatrix< Real >::MathMatrix(), numeric::MathMatrix< Real >::operator()(), numeric::MathMatrix< Real >::operator=(), numeric::MathMatrix< Real >::operator[](), numeric::MathMatrix< Real >::set_zero(), and numeric::MathMatrix< Real >::~MathMatrix().
|
private |
Referenced by numeric::MathMatrix< Real >::get_number_cols(), numeric::MathMatrix< Real >::get_row(), numeric::MathMatrix< Real >::inverse_rectangular_matrix(), numeric::MathMatrix< Real >::inverse_square_matrix(), numeric::MathMatrix< Real >::is_diagonal(), numeric::MathMatrix< Real >::is_square(), numeric::MathMatrix< Real >::is_tri_diagonal(), numeric::MathMatrix< Real >::IsValidPosition(), numeric::MathMatrix< Real >::operator()(), numeric::MathMatrix< Real >::operator*=(), numeric::MathMatrix< Real >::operator=(), numeric::MathMatrix< Real >::operator[](), numeric::MathMatrix< Real >::set_unit(), numeric::MathMatrix< Real >::swap_rows(), and numeric::MathMatrix< Real >::transpose().
|
private |
Referenced by numeric::MathMatrix< Real >::get_col(), numeric::MathMatrix< Real >::get_number_rows(), numeric::MathMatrix< Real >::inverse_diagonal_matrix(), numeric::MathMatrix< Real >::inverse_rectangular_matrix(), numeric::MathMatrix< Real >::inverse_square_matrix(), numeric::MathMatrix< Real >::inverse_tridiagonal_matrix(), numeric::MathMatrix< Real >::is_diagonal(), numeric::MathMatrix< Real >::is_square(), numeric::MathMatrix< Real >::is_tri_diagonal(), numeric::MathMatrix< Real >::IsValidPosition(), numeric::MathMatrix< Real >::operator()(), numeric::MathMatrix< Real >::operator*=(), numeric::MathMatrix< Real >::operator=(), numeric::MathMatrix< Real >::operator[](), numeric::MathMatrix< Real >::replace_col(), numeric::MathMatrix< Real >::set_unit(), numeric::MathMatrix< Real >::swap_cols(), and numeric::MathMatrix< Real >::transpose().
|
private |