Skip to content

Class libCalibGeom::Matrix

A general purpose fixed-size matrix class.

Constructors and destructors

Matrix()

Matrix()

Returns:

void

Matrix()

Matrix(const std::initializer_list< T > & init)

Returns:

void

Matrix()

Matrix(const std::array< std::array< T, cols >, rows > & init)

Returns:

void

Public member functions

getRows()

size_tgetRows() const

Returns:

size_t

getCols()

size_tgetCols() const

Returns:

size_t

operator()()

T &operator()(unsigned int row,unsigned int col)

Returns:

T &

operator()()

Toperator()(unsigned int row, unsigned int col) const

Returns:

T

operator*()

Matrix< T, rows, colsOther >operator*(const Matrix< T, cols, colsOther > &other) const

Returns:

Matrix< T, rows, colsOther >

operator*()

Matrix< T, rows, cols >operator*(const T scalar) const

Returns:

Matrix< T, rows, cols >

operator*=()

Matrix< T, rows, cols > &operator*=(const T scalar)

Returns:

Matrix< T, rows, cols > &

transpose()

Matrix< T, cols, rows >transpose()

Returns:

Matrix< T, cols, rows >

ptr()

double *ptr()

Returns:

double *

ptr()

double const *ptr() const

Returns:

double const *

cholesky()

Matrix< T, rows, cols >cholesky() const

Returns:

Matrix< T, rows, cols >

Friends

Friend: operator*(const T scalar, const Matrix< T, rows, cols > &m)