#include <FullMatrix.h>


Data Structures | |
| class | LineConstIterator |
| class | LineIterator |
Public Types | |
| typedef T | Real |
| typedef int | Index |
| typedef FullVector< Real > | Line |
| typedef Line::iterator | LElementIterator |
| typedef Line::const_iterator | LElementConstIterator |
Public Member Functions | |
| FullMatrix () | |
| FullMatrix (int nbRow, int nbCol) | |
| FullMatrix (Real *p, int nbRow, int nbCol) | |
| FullMatrix (Real *p, int nbRow, int nbCol, int pitch) | |
| ~FullMatrix () | |
| Real * | ptr () |
| const Real * | ptr () const |
| LineIterator | begin () |
| LineIterator | end () |
| LineConstIterator | begin () const |
| LineConstIterator | end () const |
| Real * | operator[] (Index i) |
| const Real * | operator[] (Index i) const |
| 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. | |
| void | clear () |
| Reset all values to 0. | |
| template<class Real2 > | |
| FullVector< Real2 > | operator* (const FullVector< Real2 > &v) const |
Static Public Member Functions | |
| static const char * | Name () |
Protected Attributes | |
| Real * | data |
| Index | nRow |
| Index | nCol |
| Index | pitch |
| Index | allocsize |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const FullMatrix< T > &v) |
Definition at line 49 of file FullMatrix.h.
| typedef int sofa::component::linearsolver::FullMatrix< T >::Index |
Definition at line 53 of file FullMatrix.h.
| typedef Line::const_iterator sofa::component::linearsolver::FullMatrix< T >::LElementConstIterator |
Definition at line 78 of file FullMatrix.h.
| typedef Line::iterator sofa::component::linearsolver::FullMatrix< T >::LElementIterator |
Definition at line 77 of file FullMatrix.h.
| typedef FullVector<Real> sofa::component::linearsolver::FullMatrix< T >::Line |
Definition at line 54 of file FullMatrix.h.
| typedef T sofa::component::linearsolver::FullMatrix< T >::Real |
Definition at line 52 of file FullMatrix.h.
| sofa::component::linearsolver::FullMatrix< T >::FullMatrix | ( | ) | [inline] |
Definition at line 88 of file FullMatrix.h.
| sofa::component::linearsolver::FullMatrix< T >::FullMatrix | ( | int | nbRow, | |
| int | nbCol | |||
| ) | [inline] |
Definition at line 93 of file FullMatrix.h.
| sofa::component::linearsolver::FullMatrix< T >::FullMatrix | ( | Real * | p, | |
| int | nbRow, | |||
| int | nbCol | |||
| ) | [inline] |
Definition at line 98 of file FullMatrix.h.
| sofa::component::linearsolver::FullMatrix< T >::FullMatrix | ( | Real * | p, | |
| int | nbRow, | |||
| int | nbCol, | |||
| int | pitch | |||
| ) | [inline] |
Definition at line 103 of file FullMatrix.h.
| sofa::component::linearsolver::FullMatrix< T >::~FullMatrix | ( | ) | [inline] |
Definition at line 108 of file FullMatrix.h.
| void sofa::component::linearsolver::FullMatrix< T >::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 211 of file FullMatrix.h.
| LineConstIterator sofa::component::linearsolver::FullMatrix< T >::begin | ( | ) | const [inline] |
Definition at line 119 of file FullMatrix.h.
| LineIterator sofa::component::linearsolver::FullMatrix< T >::begin | ( | ) | [inline] |
Definition at line 117 of file FullMatrix.h.
| void sofa::component::linearsolver::FullMatrix< T >::clear | ( | ) | [inline, virtual] |
Reset all values to 0.
Implements sofa::defaulttype::BaseMatrix.
Definition at line 289 of file FullMatrix.h.
Referenced by sofa::component::linearsolver::LPtrFullMatrix< double >::resize(), and sofa::component::linearsolver::FullMatrix< double >::resize().
| void sofa::component::linearsolver::FullMatrix< T >::clear | ( | int | i, | |
| int | j | |||
| ) | [inline, virtual] |
| void sofa::component::linearsolver::FullMatrix< T >::clearCol | ( | int | j | ) | [inline, virtual] |
Reset the value of column j to 0.
Reimplemented from sofa::defaulttype::BaseMatrix.
Definition at line 257 of file FullMatrix.h.
Referenced by sofa::component::linearsolver::FullMatrix< double >::clearRowCol().
| void sofa::component::linearsolver::FullMatrix< T >::clearRow | ( | int | i | ) | [inline, virtual] |
Reset the value of row i to 0.
Reimplemented from sofa::defaulttype::BaseMatrix.
Definition at line 241 of file FullMatrix.h.
Referenced by sofa::component::linearsolver::FullMatrix< double >::clearRowCol().
| void sofa::component::linearsolver::FullMatrix< T >::clearRowCol | ( | int | i | ) | [inline, virtual] |
Reset the value of both row and column i to 0.
Reimplemented from sofa::defaulttype::BaseMatrix.
Definition at line 273 of file FullMatrix.h.
| int sofa::component::linearsolver::FullMatrix< T >::colSize | ( | void | ) | const [inline, virtual] |
Number of columns.
Implements sofa::defaulttype::BaseMatrix.
Definition at line 179 of file FullMatrix.h.
Referenced by sofa::component::linearsolver::FullMatrix< double >::add(), sofa::component::linearsolver::FullMatrix< double >::clear(), sofa::component::linearsolver::FullMatrix< double >::clearCol(), sofa::component::linearsolver::FullMatrix< double >::clearRow(), sofa::component::linearsolver::FullMatrix< double >::clearRowCol(), sofa::component::linearsolver::FullMatrix< double >::element(), sofa::component::linearsolver::FullMatrix< double >::resize(), and sofa::component::linearsolver::FullMatrix< double >::set().
| SReal sofa::component::linearsolver::FullMatrix< T >::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 184 of file FullMatrix.h.
Referenced by sofa::component::constraint::LinearSolverConstraintCorrection< TDataTypes >::getCompliance().
| LineConstIterator sofa::component::linearsolver::FullMatrix< T >::end | ( | ) | const [inline] |
Definition at line 120 of file FullMatrix.h.
| LineIterator sofa::component::linearsolver::FullMatrix< T >::end | ( | ) | [inline] |
Definition at line 118 of file FullMatrix.h.
| static const char* sofa::component::linearsolver::FullMatrix< T >::Name | ( | ) | [inline, static] |
Definition at line 331 of file FullMatrix.h.
| FullVector<Real2> sofa::component::linearsolver::FullMatrix< T >::operator* | ( | const FullVector< Real2 > & | v | ) | const [inline] |
Definition at line 300 of file FullMatrix.h.
| const Real* sofa::component::linearsolver::FullMatrix< T >::operator[] | ( | Index | i | ) | const [inline] |
Definition at line 136 of file FullMatrix.h.
| Real* sofa::component::linearsolver::FullMatrix< T >::operator[] | ( | Index | i | ) | [inline] |
Definition at line 126 of file FullMatrix.h.
| const Real* sofa::component::linearsolver::FullMatrix< T >::ptr | ( | ) | const [inline] |
Definition at line 115 of file FullMatrix.h.
| Real* sofa::component::linearsolver::FullMatrix< T >::ptr | ( | ) | [inline] |
Definition at line 114 of file FullMatrix.h.
| void sofa::component::linearsolver::FullMatrix< T >::resize | ( | int | nbRow, | |
| int | nbCol | |||
| ) | [inline, virtual] |
Resize the matrix and reset all values to 0.
Implements sofa::defaulttype::BaseMatrix.
Reimplemented in sofa::component::linearsolver::LPtrFullMatrix< T >, and sofa::component::linearsolver::LPtrFullMatrix< double >.
Definition at line 141 of file FullMatrix.h.
Referenced by sofa::component::constraint::LinearSolverConstraintCorrection< TDataTypes >::getCompliance().
| int sofa::component::linearsolver::FullMatrix< T >::rowSize | ( | void | ) | const [inline, virtual] |
Number of rows.
Implements sofa::defaulttype::BaseMatrix.
Definition at line 174 of file FullMatrix.h.
Referenced by sofa::component::linearsolver::FullMatrix< double >::add(), sofa::component::linearsolver::FullMatrix< double >::clear(), sofa::component::linearsolver::FullMatrix< double >::clearCol(), sofa::component::linearsolver::FullMatrix< double >::clearRow(), sofa::component::linearsolver::FullMatrix< double >::clearRowCol(), sofa::component::linearsolver::FullMatrix< double >::element(), sofa::component::linearsolver::FullMatrix< double >::operator*(), sofa::component::linearsolver::FullMatrix< double >::resize(), and sofa::component::linearsolver::FullMatrix< double >::set().
| void sofa::component::linearsolver::FullMatrix< T >::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 196 of file FullMatrix.h.
| std::ostream& operator<< | ( | std::ostream & | out, | |
| const FullMatrix< T > & | v | |||
| ) | [friend] |
Definition at line 313 of file FullMatrix.h.
Index sofa::component::linearsolver::FullMatrix< T >::allocsize [protected] |
Definition at line 84 of file FullMatrix.h.
Referenced by sofa::component::linearsolver::FullMatrix< double >::resize(), and sofa::component::linearsolver::FullMatrix< double >::~FullMatrix().
Real* sofa::component::linearsolver::FullMatrix< T >::data [protected] |
Definition at line 81 of file FullMatrix.h.
Referenced by sofa::component::linearsolver::FullMatrix< double >::add(), sofa::component::linearsolver::FullMatrix< double >::begin(), sofa::component::linearsolver::FullMatrix< double >::clear(), sofa::component::linearsolver::FullMatrix< double >::clearCol(), sofa::component::linearsolver::FullMatrix< double >::clearRow(), sofa::component::linearsolver::FullMatrix< double >::element(), sofa::component::linearsolver::FullMatrix< double >::end(), sofa::component::linearsolver::FullMatrix< double >::operator*(), sofa::component::linearsolver::FullMatrix< double >::operator[](), sofa::component::linearsolver::FullMatrix< double >::ptr(), sofa::component::linearsolver::LPtrFullMatrix< double >::resize(), sofa::component::linearsolver::FullMatrix< double >::resize(), sofa::component::linearsolver::FullMatrix< double >::set(), and sofa::component::linearsolver::FullMatrix< double >::~FullMatrix().
Index sofa::component::linearsolver::FullMatrix< T >::nCol [protected] |
Definition at line 82 of file FullMatrix.h.
Referenced by sofa::component::linearsolver::FullMatrix< double >::begin(), sofa::component::linearsolver::FullMatrix< double >::clear(), sofa::component::linearsolver::FullMatrix< double >::clearRow(), sofa::component::linearsolver::FullMatrix< double >::colSize(), sofa::component::linearsolver::FullMatrix< double >::end(), sofa::component::linearsolver::FullMatrix< double >::operator*(), sofa::component::linearsolver::LPtrFullMatrix< double >::resize(), and sofa::component::linearsolver::FullMatrix< double >::resize().
Index sofa::component::linearsolver::FullMatrix< T >::nRow [protected] |
Definition at line 82 of file FullMatrix.h.
Referenced by sofa::component::linearsolver::FullMatrix< double >::clear(), sofa::component::linearsolver::FullMatrix< double >::clearCol(), sofa::component::linearsolver::FullMatrix< double >::end(), sofa::component::linearsolver::FullMatrix< double >::operator*(), sofa::component::linearsolver::LPtrFullMatrix< double >::resize(), sofa::component::linearsolver::FullMatrix< double >::resize(), and sofa::component::linearsolver::FullMatrix< double >::rowSize().
Index sofa::component::linearsolver::FullMatrix< T >::pitch [protected] |
Definition at line 83 of file FullMatrix.h.
Referenced by sofa::component::linearsolver::FullMatrix< double >::add(), sofa::component::linearsolver::FullMatrix< double >::begin(), sofa::component::linearsolver::FullMatrix< double >::clear(), sofa::component::linearsolver::FullMatrix< double >::clearCol(), sofa::component::linearsolver::FullMatrix< double >::clearRow(), sofa::component::linearsolver::FullMatrix< double >::element(), sofa::component::linearsolver::FullMatrix< double >::end(), sofa::component::linearsolver::FullMatrix< double >::operator*(), sofa::component::linearsolver::FullMatrix< double >::operator[](), sofa::component::linearsolver::LPtrFullMatrix< double >::resize(), sofa::component::linearsolver::FullMatrix< double >::resize(), and sofa::component::linearsolver::FullMatrix< double >::set().
1.5.7.1