|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
#include <GIDI_data.hpp>
Public Member Functions | |
| Matrix (std::size_t a_rows, std::size_t a_columns) | |
| Matrix (Matrix const &a_gidi_matrix) | |
| ~Matrix () | |
| Matrix & | operator= (Matrix const &a_rhs) |
| std::size_t | size () const |
| Vector & | operator[] (std::size_t a_index) |
| Vector const & | operator[] (std::size_t a_index) const |
| void | operator() (std::size_t a_row, std::size_t a_column, double a_value) |
| std::vector< Vector > const & | matrix () const |
| Matrix | operator+ (double a_value) const |
| Matrix & | operator+= (double a_value) |
| Matrix | operator+ (Matrix const &a_rhs) const |
| Matrix & | operator+= (Matrix const &a_rhs) |
| Matrix | operator- (double a_value) const |
| Matrix & | operator-= (double a_value) |
| Matrix | operator- (Matrix const &a_rhs) const |
| Matrix & | operator-= (Matrix const &a_rhs) |
| Matrix | operator* (double a_value) const |
| Matrix & | operator*= (double a_value) |
| Matrix | operator/ (double a_value) const |
| Matrix & | operator/= (double a_value) |
| std::size_t | numberOfColumns () const |
| void | set (std::size_t a_row, std::size_t a_column, double a_value) |
| void | set (std::size_t a_row, Vector const &a_vector) |
| void | push_back (Vector const &a_vector) |
| Matrix | transpose () |
| void | reverse () |
| void | print (std::string const &a_prefixForRow) const |
This class stores a mathematical matrix and has methods that perform several matrix operations (e.g., addition, subtraction).
Definition at line 116 of file GIDI_data.hpp.
| GIDI::Matrix::Matrix | ( | std::size_t | a_rows, |
| std::size_t | a_columns ) |
| a_rows | [in] Number of rows of the matrix. |
| a_columns | [in] Number of columns of the matrix. |
Definition at line 24 of file GIDI_matrix.cc.
Referenced by Matrix(), operator*(), operator*=(), operator+(), operator+(), operator+=(), operator+=(), operator-(), operator-(), operator-=(), operator-=(), operator/(), operator/=(), operator=(), and transpose().
| GIDI::Matrix::Matrix | ( | Matrix const & | a_matrix | ) |
| a_matrix | [in] Matrix to copy. |
Definition at line 36 of file GIDI_matrix.cc.
| GIDI::Matrix::~Matrix | ( | ) |
Definition at line 48 of file GIDI_matrix.cc.
|
inline |
| std::size_t GIDI::Matrix::numberOfColumns | ( | ) | const |
Returns the number of columns of this.
Definition at line 274 of file GIDI_matrix.cc.
Referenced by operator+=(), operator-=(), and transpose().
|
inline |
Sets the cell at row a_row and column a_column to a_value.
| a_row | The cell's row. |
| a_column | The cell's row. |
| a_value | The value to put in the cell. |
Definition at line 133 of file GIDI_data.hpp.
| Matrix GIDI::Matrix::operator* | ( | double | a_value | ) | const |
Returns a new Matrix whose cells are this multiplied by a_value.
| a_value | [in] The value to multiply each cell by. |
Definition at line 216 of file GIDI_matrix.cc.
| Matrix & GIDI::Matrix::operator*= | ( | double | a_value | ) |
Multiplies each cell of this by a_value.
| a_value | [in] The value to multiply each cell by. |
Definition at line 231 of file GIDI_matrix.cc.
| Matrix GIDI::Matrix::operator+ | ( | double | a_value | ) | const |
Returns a new Matrix whose cells are this plus a_value.
| a_value | [in] The value to add to each cell. |
Definition at line 76 of file GIDI_matrix.cc.
Adds two Matrices.
| a_rhs | [in] Matrix to add to this. |
Definition at line 105 of file GIDI_matrix.cc.
| Matrix & GIDI::Matrix::operator+= | ( | double | a_value | ) |
Adds a_value to each cell of this.
| a_value | [in] The value to add to each cell. |
Definition at line 91 of file GIDI_matrix.cc.
Adds a_rhs to this.
| a_rhs | [in] Matrix to add to this. |
Definition at line 120 of file GIDI_matrix.cc.
| Matrix GIDI::Matrix::operator- | ( | double | a_value | ) | const |
Returns a new Matrix whose cells are this minus a_value.
| a_value | [in] The value to subtract from each cell. |
Definition at line 146 of file GIDI_matrix.cc.
Subtracts a_rhs from this.
| a_rhs | [in] Matrix to subtract from this. |
Definition at line 175 of file GIDI_matrix.cc.
| Matrix & GIDI::Matrix::operator-= | ( | double | a_value | ) |
Subtracts a_value from each cell of this.
| a_value | [in] The value to subtract from each cell. |
Definition at line 161 of file GIDI_matrix.cc.
Subtracts a_rhs to this.
| a_rhs | [in] Matrix to subtract from this. |
Definition at line 190 of file GIDI_matrix.cc.
| Matrix GIDI::Matrix::operator/ | ( | double | a_value | ) | const |
Returns a new Matrix whose cells are this divided by a_value.
| a_value | [in] The value to divide each cell by. |
Definition at line 245 of file GIDI_matrix.cc.
| Matrix & GIDI::Matrix::operator/= | ( | double | a_value | ) |
Divides each cell of this by a_value.
| a_value | [in] The value to divide each cell by. |
Definition at line 260 of file GIDI_matrix.cc.
The assignment operator. This method sets the members of this to those of a_rhs.
| a_rhs | [in] Instance whose member are used to set the members of this. |
Definition at line 60 of file GIDI_matrix.cc.
|
inline |
Returns a reference to the (a_index-1)th row.
Definition at line 129 of file GIDI_data.hpp.
|
inline |
Returns a reference to the (a_index-1)th row.
Definition at line 130 of file GIDI_data.hpp.
| void GIDI::Matrix::print | ( | std::string const & | a_prefixForRow | ) | const |
Prints the contents of this by calling the print method of each row with a_prefixForRow as an argument.
| a_prefixForRow | [in] Argument passed to each row's print method. |
Definition at line 333 of file GIDI_matrix.cc.
| void GIDI::Matrix::push_back | ( | Vector const & | a_vector | ) |
Adds a row to this.
| a_vector | [in] The Vector to add to this as another row. |
Definition at line 286 of file GIDI_matrix.cc.
Referenced by GIDI::collapse().
| void GIDI::Matrix::reverse | ( | ) |
Reverse the rows of this.
Definition at line 313 of file GIDI_matrix.cc.
Referenced by reverse().
|
inline |
Sets the cell at row a_row and column a_column to a_value.
| a_row | The cell's row. |
| a_column | The cell's row. |
| a_value | The value to put in the cell. |
Definition at line 158 of file GIDI_data.hpp.
Referenced by GIDI::Reaction::multiGroupProductMatrix().
|
inline |
Sets the row at a_row to a_vector.
| a_row | The row to set. |
| a_vector | The Vector to set at row a_row. |
Definition at line 163 of file GIDI_data.hpp.
|
inline |
Returns the number of rows or this.
Definition at line 127 of file GIDI_data.hpp.
Referenced by GIDI::collapse(), GIDI::ProtareTNSL::combineMatrices(), Matrix(), GIDI::ProtareSingle::multiGroupTransportCorrection(), GIDI::ProtareTNSL::multiGroupTransportCorrection(), numberOfColumns(), operator+=(), operator-=(), push_back(), reverse(), GIDI::transportCorrect(), and transpose().
| Matrix GIDI::Matrix::transpose | ( | ) |
Transposes the cells of this.
Definition at line 298 of file GIDI_matrix.cc.
Referenced by GIDI::collapse().