LifeV
|
class ETMatrixElemental A class for describing an elemental matrix More...
#include <ETMatrixElemental.hpp>
Private Attributes | |
std::vector< Int > | M_rowIndices |
std::vector< Int > | M_columnIndices |
UInt | M_nbRow |
UInt | M_nbColumn |
Real ** | M_rawData |
Constructors & Destructor | |
ETMatrixElemental (const UInt &nbRow, const UInt &nbCol) | |
Constructor with the minimal interface: number of columns and of rows are provided. More... | |
ETMatrixElemental (const ETMatrixElemental &mat) | |
Copy constructor (including deep copy of the data) More... | |
virtual | ~ETMatrixElemental () |
Destructor. More... | |
Methods | |
void | zero () |
Put zero all the data stored. More... | |
template<typename MatrixType > | |
void | pushToGlobal (MatrixType &mat) |
Assembly procedure for a matrix or a block of a matrix. More... | |
template<typename MatrixType > | |
void | pushToClosedGlobal (MatrixType &mat) |
Assembly procedure for a matrix or a block of a matrix. More... | |
template<typename MatrixType > | |
void | pushToGlobal (std::shared_ptr< MatrixType > mat) |
Assembly procedure for a matrix or a block of a matrix passed in a shared_ptr. More... | |
template<typename MatrixType > | |
void | pushToClosedGlobal (std::shared_ptr< MatrixType > mat) |
Assembly procedure for a matrix or a block of a matrix passed in a shared_ptr. More... | |
void | showMe (std::ostream &out=std::cout) const |
Ouput method for the sizes and the stored values. More... | |
Set Methods | |
Real & | element (const UInt &iloc, const UInt &jloc) |
Setter for the value in the local position (iloc,jloc) More... | |
void | setRowIndex (const UInt &iloc, const UInt &iglobal) |
Setter for the global index corresponding to the iloc row of the local matrix. More... | |
void | setRowIndex (const std::vector< Int > &indicesVector) |
Setter for the global index of the rows of the local matrix. More... | |
void | setColumnIndex (const UInt &jloc, const UInt &jglobal) |
Setter for the global index corresponding to the jloc column of the local matrix. More... | |
void | setColumnIndex (const std::vector< Int > &indicesVector) |
Setter for the global index of the columns of the local matrix. More... | |
Get Methods | |
const Real & | element (const UInt &iloc, const UInt &jloc) const |
Getter for the data stored in the given elemental position. More... | |
Real *const * | rawData () const |
Getter for the full set of data. More... | |
const std::vector< Int > & | rowIndices () const |
Getter for the global indices of the rows. More... | |
const std::vector< Int > & | columnIndices () const |
Getter for the global indices of the columns. More... | |
Private Methods | |
ETMatrixElemental () | |
No empty constructor, as we want at least the sizes to be defined. More... | |
ETMatrixElemental | operator= (const ETMatrixElemental &) |
No need for an assignement operator. More... | |
class ETMatrixElemental A class for describing an elemental matrix
This class is meant to represent an ETMatrixElemental. It contains mainly:
Definition at line 65 of file ETMatrixElemental.hpp.
ETMatrixElemental | ( | const UInt & | nbRow, |
const UInt & | nbCol | ||
) |
Constructor with the minimal interface: number of columns and of rows are provided.
Definition at line 45 of file ETMatrixElemental.cpp.
ETMatrixElemental | ( | const ETMatrixElemental & | mat | ) |
Copy constructor (including deep copy of the data)
Definition at line 61 of file ETMatrixElemental.cpp.
|
virtual |
Destructor.
Definition at line 79 of file ETMatrixElemental.cpp.
|
private |
No empty constructor, as we want at least the sizes to be defined.
|
inline |
Put zero all the data stored.
Definition at line 96 of file ETMatrixElemental.hpp.
|
inline |
Assembly procedure for a matrix or a block of a matrix.
This method puts the values stored in this elemental matrix into the global matrix passed as argument, using the positions given in the global indices stored.
Definition at line 116 of file ETMatrixElemental.hpp.
|
inline |
Assembly procedure for a matrix or a block of a matrix.
This method puts the values stored in this elemental matrix into the global matrix passed as argument, using the positions given in the global indices stored. The method is used when the global matrix is closed
Definition at line 133 of file ETMatrixElemental.hpp.
|
inline |
Assembly procedure for a matrix or a block of a matrix passed in a shared_ptr.
This method puts the values stored in this elemental matrix into the global matrix passed as argument, using the positions given in the global indices stored.
This is a partial specialization of the other assembly procedure of this class.
Definition at line 151 of file ETMatrixElemental.hpp.
|
inline |
Assembly procedure for a matrix or a block of a matrix passed in a shared_ptr.
This method puts the values stored in this elemental matrix into the global matrix passed as argument, using the positions given in the global indices stored. The method is used when the global matrix is closed
This is a partial specialization of the other assembly procedure of this class.
Definition at line 170 of file ETMatrixElemental.hpp.
void showMe | ( | std::ostream & | out = std::cout | ) | const |
Ouput method for the sizes and the stored values.
Definition at line 94 of file ETMatrixElemental.cpp.
Setter for the value in the local position (iloc,jloc)
Definition at line 186 of file ETMatrixElemental.hpp.
Setter for the global index corresponding to the iloc row of the local matrix.
Definition at line 194 of file ETMatrixElemental.hpp.
|
inline |
Setter for the global index of the rows of the local matrix.
Definition at line 201 of file ETMatrixElemental.hpp.
Setter for the global index corresponding to the jloc column of the local matrix.
Definition at line 207 of file ETMatrixElemental.hpp.
|
inline |
Setter for the global index of the columns of the local matrix.
Definition at line 214 of file ETMatrixElemental.hpp.
Getter for the data stored in the given elemental position.
Definition at line 227 of file ETMatrixElemental.hpp.
|
inline |
Getter for the full set of data.
Definition at line 235 of file ETMatrixElemental.hpp.
|
inline |
Getter for the global indices of the rows.
Definition at line 241 of file ETMatrixElemental.hpp.
|
inline |
Getter for the global indices of the columns.
Definition at line 247 of file ETMatrixElemental.hpp.
|
private |
No need for an assignement operator.
|
private |
Definition at line 269 of file ETMatrixElemental.hpp.
|
private |
Definition at line 270 of file ETMatrixElemental.hpp.
|
private |
Definition at line 273 of file ETMatrixElemental.hpp.
|
private |
Definition at line 275 of file ETMatrixElemental.hpp.
|
private |
Definition at line 278 of file ETMatrixElemental.hpp.