#include <NewMatMatrix.h>


Public Types | |
| typedef Mat | M |
| typedef TNewMatMatrix < NEWMAT::Matrix > | SubMatrixType |
| typedef TNewMatMatrix < NEWMAT::Matrix > | InvMatrixType |
| typedef NEWMAT::LinearEquationSolver | LUSolver |
Public Member Functions | |
| TNewMatMatrix (int defaultBandWidth=11) | |
| void | resize (int nbRow, int nbCol) |
| Resize the matrix and reset all values to 0. | |
| int | rowSize (void) const |
| Number of rows. | |
| int | colSize (void) const |
| Number of columns. | |
| SReal | element (int i, int j) const |
| Read the value of the element at row i, column j (using 0-based indices). | |
| void | set (int i, int j, double v) |
| Write the value of the element at row i, column j (using 0-based indices). | |
| void | add (int i, int j, double v) |
| Add v to the existing value of the element at row i, column j (using 0-based indices). | |
| void | clear (int i, int j) |
| void | clearRow (int i) |
| Reset the value of row i to 0. | |
| void | clearCol (int j) |
| Reset the value of column j to 0. | |
| void | clearRowCol (int i) |
| Reset the value of both row and column i to 0. | |
| NEWMAT::GetSubMatrix | sub (int i, int j, int nrow, int ncol) |
| template<class T > | |
| void | getSubMatrix (int i, int j, int nrow, int ncol, T &m) |
| template<class T > | |
| void | setSubMatrix (int i, int j, int nrow, int ncol, const T &m) |
| void | solve (NewMatVector *rv, NewMatVector *ov) |
| virtual void | solve (defaulttype::BaseVector *op, defaulttype::BaseVector *res) |
| LUSolver * | makeLUSolver () |
| void | solve (NewMatVector *rv, NewMatVector *ov, LUSolver *solver) |
| template<class T > | |
| void | operator= (const T &m) |
| void | clear () |
| Reset all values to 0. | |
| template<> | |
| const char * | Name () |
| template<> | |
| const char * | Name () |
| template<> | |
| const char * | Name () |
| template<> | |
| const char * | Name () |
| template<> | |
| void | resize (int nbRow, int nbCol) |
| Resize the matrix and reset all values to 0. | |
| template<> | |
| void | resize (int nbRow, int nbCol) |
| Resize the matrix and reset all values to 0. | |
| template<> | |
| void | resize (int nbRow, int nbCol) |
| Resize the matrix and reset all values to 0. | |
| template<> | |
| void | set (int i, int j, double v) |
| Write the value of the element at row i, column j (using 0-based indices). | |
| template<> | |
| void | add (int i, int j, double v) |
| Add v to the existing value of the element at row i, column j (using 0-based indices). | |
| template<> | |
| SReal | element (int i, int j) const |
| Read the value of the element at row i, column j (using 0-based indices). | |
| template<> | |
| void | set (int i, int j, double v) |
| Write the value of the element at row i, column j (using 0-based indices). | |
| template<> | |
| void | add (int i, int j, double v) |
| Add v to the existing value of the element at row i, column j (using 0-based indices). | |
| template<> | |
| SReal | element (int i, int j) const |
| Read the value of the element at row i, column j (using 0-based indices). | |
| template<> | |
| void | set (int i, int j, double v) |
| Write the value of the element at row i, column j (using 0-based indices). | |
| template<> | |
| void | add (int i, int j, double v) |
| Add v to the existing value of the element at row i, column j (using 0-based indices). | |
Static Public Member Functions | |
| static const char * | Name () |
Data Fields | |
| int | bandWidth |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const TNewMatMatrix &v) |
Definition at line 45 of file NewMatMatrix.h.
| typedef TNewMatMatrix<NEWMAT::Matrix> sofa::component::linearsolver::TNewMatMatrix< Mat >::InvMatrixType |
Definition at line 51 of file NewMatMatrix.h.
| typedef NEWMAT::LinearEquationSolver sofa::component::linearsolver::TNewMatMatrix< Mat >::LUSolver |
Definition at line 52 of file NewMatMatrix.h.
| typedef Mat sofa::component::linearsolver::TNewMatMatrix< Mat >::M |
Definition at line 48 of file NewMatMatrix.h.
| typedef TNewMatMatrix<NEWMAT::Matrix> sofa::component::linearsolver::TNewMatMatrix< Mat >::SubMatrixType |
Definition at line 50 of file NewMatMatrix.h.
| sofa::component::linearsolver::TNewMatMatrix< Mat >::TNewMatMatrix | ( | int | defaultBandWidth = 11 |
) | [inline, explicit] |
Definition at line 53 of file NewMatMatrix.h.
| void sofa::component::linearsolver::TNewMatMatrix< NEWMAT::SymmetricBandMatrix >::add | ( | int | i, | |
| int | j, | |||
| double | v | |||
| ) | [inline, virtual] |
Add v to the existing value of the element at row i, column j (using 0-based indices).
Implements sofa::defaulttype::BaseMatrix.
Definition at line 434 of file NewMatMatrix.h.
References sofa::component::linearsolver::TNewMatMatrix< Mat >::bandWidth, sofa::component::linearsolver::TNewMatMatrix< Mat >::colSize(), sofa::component::linearsolver::TNewMatMatrix< Mat >::element(), and sofa::component::linearsolver::TNewMatMatrix< Mat >::rowSize().
| void sofa::component::linearsolver::TNewMatMatrix< NEWMAT::BandMatrix >::add | ( | int | i, | |
| int | j, | |||
| double | v | |||
| ) | [inline, virtual] |
Add v to the existing value of the element at row i, column j (using 0-based indices).
Implements sofa::defaulttype::BaseMatrix.
Definition at line 375 of file NewMatMatrix.h.
References sofa::component::linearsolver::TNewMatMatrix< Mat >::bandWidth, sofa::component::linearsolver::TNewMatMatrix< Mat >::colSize(), sofa::component::linearsolver::TNewMatMatrix< Mat >::element(), and sofa::component::linearsolver::TNewMatMatrix< Mat >::rowSize().
| void sofa::component::linearsolver::TNewMatMatrix< NEWMAT::SymmetricMatrix >::add | ( | int | i, | |
| int | j, | |||
| double | v | |||
| ) | [inline, virtual] |
Add v to the existing value of the element at row i, column j (using 0-based indices).
Implements sofa::defaulttype::BaseMatrix.
Definition at line 320 of file NewMatMatrix.h.
References sofa::component::linearsolver::TNewMatMatrix< Mat >::colSize(), sofa::component::linearsolver::TNewMatMatrix< Mat >::element(), and sofa::component::linearsolver::TNewMatMatrix< Mat >::rowSize().
| void sofa::component::linearsolver::TNewMatMatrix< Mat >::add | ( | int | i, | |
| int | j, | |||
| double | v | |||
| ) | [inline, virtual] |
Add v to the existing value of the element at row i, column j (using 0-based indices).
Implements sofa::defaulttype::BaseMatrix.
Definition at line 104 of file NewMatMatrix.h.
References sofa::component::linearsolver::TNewMatMatrix< Mat >::colSize(), sofa::component::linearsolver::TNewMatMatrix< Mat >::element(), and sofa::component::linearsolver::TNewMatMatrix< Mat >::rowSize().
| void sofa::component::linearsolver::TNewMatMatrix< Mat >::clear | ( | ) | [inline, virtual] |
Reset all values to 0.
Implements sofa::defaulttype::BaseMatrix.
Definition at line 236 of file NewMatMatrix.h.
| void sofa::component::linearsolver::TNewMatMatrix< Mat >::clear | ( | int | i, | |
| int | j | |||
| ) | [inline, virtual] |
Reimplemented from sofa::defaulttype::BaseMatrix.
Definition at line 119 of file NewMatMatrix.h.
References sofa::component::linearsolver::TNewMatMatrix< Mat >::colSize(), sofa::component::linearsolver::TNewMatMatrix< Mat >::element(), and sofa::component::linearsolver::TNewMatMatrix< Mat >::rowSize().
| void sofa::component::linearsolver::TNewMatMatrix< Mat >::clearCol | ( | int | j | ) | [inline, virtual] |
Reset the value of column j to 0.
Reimplemented from sofa::defaulttype::BaseMatrix.
Definition at line 149 of file NewMatMatrix.h.
References sofa::component::linearsolver::TNewMatMatrix< Mat >::colSize(), and sofa::component::linearsolver::TNewMatMatrix< Mat >::rowSize().
| void sofa::component::linearsolver::TNewMatMatrix< Mat >::clearRow | ( | int | i | ) | [inline, virtual] |
Reset the value of row i to 0.
Reimplemented from sofa::defaulttype::BaseMatrix.
Definition at line 134 of file NewMatMatrix.h.
References sofa::component::linearsolver::TNewMatMatrix< Mat >::colSize(), and sofa::component::linearsolver::TNewMatMatrix< Mat >::rowSize().
| void sofa::component::linearsolver::TNewMatMatrix< Mat >::clearRowCol | ( | int | i | ) | [inline, virtual] |
Reset the value of both row and column i to 0.
Reimplemented from sofa::defaulttype::BaseMatrix.
Definition at line 164 of file NewMatMatrix.h.
References sofa::component::linearsolver::TNewMatMatrix< Mat >::colSize(), and sofa::component::linearsolver::TNewMatMatrix< Mat >::rowSize().
| int sofa::component::linearsolver::TNewMatMatrix< Mat >::colSize | ( | void | ) | const [inline, virtual] |
Number of columns.
Implements sofa::defaulttype::BaseMatrix.
Definition at line 72 of file NewMatMatrix.h.
Referenced by sofa::component::linearsolver::TNewMatMatrix< Mat >::add(), sofa::component::linearsolver::TNewMatMatrix< Mat >::clear(), sofa::component::linearsolver::TNewMatMatrix< Mat >::clearCol(), sofa::component::linearsolver::TNewMatMatrix< Mat >::clearRow(), sofa::component::linearsolver::TNewMatMatrix< Mat >::clearRowCol(), sofa::component::linearsolver::TNewMatMatrix< Mat >::element(), sofa::component::linearsolver::TNewMatMatrix< Mat >::set(), and sofa::component::linearsolver::TNewMatMatrix< Mat >::solve().
| SReal sofa::component::linearsolver::TNewMatMatrix< NEWMAT::SymmetricBandMatrix >::element | ( | int | i, | |
| int | j | |||
| ) | const [inline, virtual] |
Read the value of the element at row i, column j (using 0-based indices).
Implements sofa::defaulttype::BaseMatrix.
Definition at line 396 of file NewMatMatrix.h.
References sofa::component::linearsolver::TNewMatMatrix< Mat >::bandWidth, sofa::component::linearsolver::TNewMatMatrix< Mat >::colSize(), sofa::component::linearsolver::TNewMatMatrix< Mat >::element(), and sofa::component::linearsolver::TNewMatMatrix< Mat >::rowSize().
| SReal sofa::component::linearsolver::TNewMatMatrix< NEWMAT::BandMatrix >::element | ( | int | i, | |
| int | j | |||
| ) | const [inline, virtual] |
Read the value of the element at row i, column j (using 0-based indices).
Implements sofa::defaulttype::BaseMatrix.
Definition at line 337 of file NewMatMatrix.h.
References sofa::component::linearsolver::TNewMatMatrix< Mat >::bandWidth, sofa::component::linearsolver::TNewMatMatrix< Mat >::colSize(), sofa::component::linearsolver::TNewMatMatrix< Mat >::element(), and sofa::component::linearsolver::TNewMatMatrix< Mat >::rowSize().
| SReal sofa::component::linearsolver::TNewMatMatrix< Mat >::element | ( | int | i, | |
| int | j | |||
| ) | const [inline, virtual] |
Read the value of the element at row i, column j (using 0-based indices).
Implements sofa::defaulttype::BaseMatrix.
Definition at line 77 of file NewMatMatrix.h.
References sofa::component::linearsolver::TNewMatMatrix< Mat >::colSize(), and sofa::component::linearsolver::TNewMatMatrix< Mat >::rowSize().
Referenced by sofa::component::linearsolver::TNewMatMatrix< Mat >::add(), sofa::component::linearsolver::TNewMatMatrix< Mat >::clear(), sofa::component::linearsolver::TNewMatMatrix< Mat >::element(), and sofa::component::linearsolver::TNewMatMatrix< Mat >::set().
| void sofa::component::linearsolver::TNewMatMatrix< Mat >::getSubMatrix | ( | int | i, | |
| int | j, | |||
| int | nrow, | |||
| int | ncol, | |||
| T & | m | |||
| ) | [inline] |
Definition at line 186 of file NewMatMatrix.h.
| LUSolver* sofa::component::linearsolver::TNewMatMatrix< Mat >::makeLUSolver | ( | ) | [inline] |
Definition at line 217 of file NewMatMatrix.h.
| const char * sofa::component::linearsolver::TNewMatMatrix< NEWMAT::SymmetricBandMatrix >::Name | ( | ) | [inline] |
Definition at line 276 of file NewMatMatrix.h.
| const char * sofa::component::linearsolver::TNewMatMatrix< NEWMAT::BandMatrix >::Name | ( | ) | [inline] |
Definition at line 273 of file NewMatMatrix.h.
| const char * sofa::component::linearsolver::TNewMatMatrix< NEWMAT::SymmetricMatrix >::Name | ( | ) | [inline] |
Definition at line 270 of file NewMatMatrix.h.
| const char * sofa::component::linearsolver::TNewMatMatrix< NEWMAT::Matrix >::Name | ( | ) | [inline] |
Definition at line 267 of file NewMatMatrix.h.
| static const char* sofa::component::linearsolver::TNewMatMatrix< Mat >::Name | ( | ) | [static] |
| void sofa::component::linearsolver::TNewMatMatrix< Mat >::operator= | ( | const T & | m | ) | [inline] |
Definition at line 234 of file NewMatMatrix.h.
References sofa::defaulttype::Mat< L, C, real >::operator=().
| void sofa::component::linearsolver::TNewMatMatrix< NEWMAT::SymmetricBandMatrix >::resize | ( | int | nbRow, | |
| int | nbCol | |||
| ) | [inline, virtual] |
Resize the matrix and reset all values to 0.
Implements sofa::defaulttype::BaseMatrix.
Definition at line 295 of file NewMatMatrix.h.
References sofa::component::linearsolver::TNewMatMatrix< Mat >::bandWidth.
| void sofa::component::linearsolver::TNewMatMatrix< NEWMAT::BandMatrix >::resize | ( | int | nbRow, | |
| int | nbCol | |||
| ) | [inline, virtual] |
Resize the matrix and reset all values to 0.
Implements sofa::defaulttype::BaseMatrix.
Definition at line 287 of file NewMatMatrix.h.
References sofa::component::linearsolver::TNewMatMatrix< Mat >::bandWidth.
| void sofa::component::linearsolver::TNewMatMatrix< NEWMAT::SymmetricMatrix >::resize | ( | int | nbRow, | |
| int | nbCol | |||
| ) | [inline, virtual] |
Resize the matrix and reset all values to 0.
Implements sofa::defaulttype::BaseMatrix.
Definition at line 279 of file NewMatMatrix.h.
| void sofa::component::linearsolver::TNewMatMatrix< Mat >::resize | ( | int | nbRow, | |
| int | nbCol | |||
| ) | [inline, virtual] |
Resize the matrix and reset all values to 0.
Implements sofa::defaulttype::BaseMatrix.
Definition at line 58 of file NewMatMatrix.h.
| int sofa::component::linearsolver::TNewMatMatrix< Mat >::rowSize | ( | void | ) | const [inline, virtual] |
Number of rows.
Implements sofa::defaulttype::BaseMatrix.
Definition at line 67 of file NewMatMatrix.h.
Referenced by sofa::component::linearsolver::TNewMatMatrix< Mat >::add(), sofa::component::linearsolver::TNewMatMatrix< Mat >::clear(), sofa::component::linearsolver::TNewMatMatrix< Mat >::clearCol(), sofa::component::linearsolver::TNewMatMatrix< Mat >::clearRow(), sofa::component::linearsolver::TNewMatMatrix< Mat >::clearRowCol(), sofa::component::linearsolver::TNewMatMatrix< Mat >::element(), sofa::component::linearsolver::TNewMatMatrix< Mat >::set(), and sofa::component::linearsolver::TNewMatMatrix< Mat >::solve().
| void sofa::component::linearsolver::TNewMatMatrix< NEWMAT::SymmetricBandMatrix >::set | ( | int | i, | |
| int | j, | |||
| double | v | |||
| ) | [inline, virtual] |
Write the value of the element at row i, column j (using 0-based indices).
Implements sofa::defaulttype::BaseMatrix.
Definition at line 412 of file NewMatMatrix.h.
References sofa::component::linearsolver::TNewMatMatrix< Mat >::bandWidth, sofa::component::linearsolver::TNewMatMatrix< Mat >::colSize(), sofa::component::linearsolver::TNewMatMatrix< Mat >::element(), and sofa::component::linearsolver::TNewMatMatrix< Mat >::rowSize().
| void sofa::component::linearsolver::TNewMatMatrix< NEWMAT::BandMatrix >::set | ( | int | i, | |
| int | j, | |||
| double | v | |||
| ) | [inline, virtual] |
Write the value of the element at row i, column j (using 0-based indices).
Implements sofa::defaulttype::BaseMatrix.
Definition at line 354 of file NewMatMatrix.h.
References sofa::component::linearsolver::TNewMatMatrix< Mat >::bandWidth, sofa::component::linearsolver::TNewMatMatrix< Mat >::colSize(), sofa::component::linearsolver::TNewMatMatrix< Mat >::element(), and sofa::component::linearsolver::TNewMatMatrix< Mat >::rowSize().
| void sofa::component::linearsolver::TNewMatMatrix< NEWMAT::SymmetricMatrix >::set | ( | int | i, | |
| int | j, | |||
| double | v | |||
| ) | [inline, virtual] |
Write the value of the element at row i, column j (using 0-based indices).
Implements sofa::defaulttype::BaseMatrix.
Definition at line 303 of file NewMatMatrix.h.
References sofa::component::linearsolver::TNewMatMatrix< Mat >::colSize(), sofa::component::linearsolver::TNewMatMatrix< Mat >::element(), and sofa::component::linearsolver::TNewMatMatrix< Mat >::rowSize().
| void sofa::component::linearsolver::TNewMatMatrix< Mat >::set | ( | int | i, | |
| int | j, | |||
| double | v | |||
| ) | [inline, virtual] |
Write the value of the element at row i, column j (using 0-based indices).
Implements sofa::defaulttype::BaseMatrix.
Definition at line 89 of file NewMatMatrix.h.
References sofa::component::linearsolver::TNewMatMatrix< Mat >::colSize(), sofa::component::linearsolver::TNewMatMatrix< Mat >::element(), and sofa::component::linearsolver::TNewMatMatrix< Mat >::rowSize().
| void sofa::component::linearsolver::TNewMatMatrix< Mat >::setSubMatrix | ( | int | i, | |
| int | j, | |||
| int | nrow, | |||
| int | ncol, | |||
| const T & | m | |||
| ) | [inline] |
Definition at line 192 of file NewMatMatrix.h.
| void sofa::component::linearsolver::TNewMatMatrix< Mat >::solve | ( | NewMatVector * | rv, | |
| NewMatVector * | ov, | |||
| LUSolver * | solver | |||
| ) | [inline] |
Definition at line 222 of file NewMatMatrix.h.
References sofa::component::linearsolver::TNewMatMatrix< Mat >::colSize(), and sofa::component::linearsolver::TNewMatMatrix< Mat >::rowSize().
| virtual void sofa::component::linearsolver::TNewMatMatrix< Mat >::solve | ( | defaulttype::BaseVector * | op, | |
| defaulttype::BaseVector * | res | |||
| ) | [inline, virtual] |
Definition at line 208 of file NewMatMatrix.h.
References sofa::component::linearsolver::TNewMatMatrix< Mat >::solve().
| void sofa::component::linearsolver::TNewMatMatrix< Mat >::solve | ( | NewMatVector * | rv, | |
| NewMatVector * | ov | |||
| ) | [inline] |
Definition at line 197 of file NewMatMatrix.h.
References sofa::component::linearsolver::TNewMatMatrix< Mat >::colSize(), and sofa::component::linearsolver::TNewMatMatrix< Mat >::rowSize().
Referenced by sofa::component::linearsolver::TNewMatMatrix< Mat >::solve().
| NEWMAT::GetSubMatrix sofa::component::linearsolver::TNewMatMatrix< Mat >::sub | ( | int | i, | |
| int | j, | |||
| int | nrow, | |||
| int | ncol | |||
| ) | [inline] |
Definition at line 180 of file NewMatMatrix.h.
| std::ostream& operator<< | ( | std::ostream & | out, | |
| const TNewMatMatrix< Mat > & | v | |||
| ) | [friend] |
Definition at line 238 of file NewMatMatrix.h.
| int sofa::component::linearsolver::TNewMatMatrix< Mat >::bandWidth |
Definition at line 258 of file NewMatMatrix.h.
Referenced by sofa::component::linearsolver::TNewMatMatrix< Mat >::add(), sofa::component::linearsolver::TNewMatMatrix< Mat >::element(), sofa::component::linearsolver::TNewMatMatrix< Mat >::resize(), and sofa::component::linearsolver::TNewMatMatrix< Mat >::set().
1.5.7.1