OpenLB 1.7
|
Matrix with a defined number of ROWS and columns (COLS) More...
#include <matrix.h>
Public Member Functions | |
constexpr | Matrix () |
constexpr | Matrix (T data[ROWS][COLS]) |
template<unsigned V_SIZE> | |
constexpr | Matrix (const Vector< T, V_SIZE > &vector) |
Create matrix from olb::Vector. | |
constexpr | Matrix (const Matrix< T, ROWS, COLS > &matrix) |
constexpr Matrix & | operator= (const Matrix &matrix) |
constexpr | Matrix (Matrix &&matrix) |
constexpr Matrix & | operator= (Matrix &&matrix) |
constexpr T * | data () |
constexpr const T * | data () const |
constexpr Vector< T, COLS > & | operator[] (const unsigned row) |
constexpr const Vector< T, COLS > & | operator[] (const unsigned row) const |
template<unsigned C> | |
constexpr Matrix | operator* (const Matrix< T, COLS, C > &matrix) const |
constexpr Vector< T, COLS > | operator* (const Vector< T, COLS > &vector) const |
constexpr Matrix< T, COLS, ROWS > | transpose () const |
Static Public Attributes | |
static constexpr unsigned | rows = ROWS |
number of rows | |
static constexpr unsigned | cols = COLS |
number of columns | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Matrix &matrix) |
Matrix with a defined number of ROWS and columns (COLS)
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 42 of file matrix.h.
References olb::Matrix< T, ROWS, COLS >::data().
|
inlineconstexpr |
Create matrix from olb::Vector.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 80 of file matrix.h.
References olb::Vector< T, D >::data().
|
inlineconstexpr |
Definition at line 81 of file matrix.h.
References olb::Vector< T, D >::data().
|
inlineconstexpr |
Definition at line 101 of file matrix.h.
References olb::Matrix< T, ROWS, COLS >::operator[]().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
friend |
|
staticconstexpr |
|
staticconstexpr |