A fixed size matrix in row major order
More...
#include <Zivid/Matrix.h>
|
using | ValueType = T |
| The type stored in the matrix More...
|
|
using | Iterator = typename Storage::iterator |
| The matrix iterator type for mutable access. It iterates over individual matrix elements in row major order. More...
|
|
using | ConstIterator = typename Storage::const_iterator |
| The matrix iterator type for immutable access. It iterates over individual matrix elements in row major order. More...
|
|
|
static constexpr size_t | rows { rowCount } |
| The number of rows in the matrix More...
|
|
static constexpr size_t | cols { colCount } |
| The number of columns in the matrix More...
|
|
template<typename T, size_t rowCount, size_t colCount>
class Zivid::Matrix< T, rowCount, colCount >
A fixed size matrix in row major order
◆ ConstIterator
template<typename T, size_t rowCount, size_t colCount>
The matrix iterator type for immutable access. It iterates over individual matrix elements in row major order.
◆ Iterator
template<typename T, size_t rowCount, size_t colCount>
The matrix iterator type for mutable access. It iterates over individual matrix elements in row major order.
◆ ValueType
template<typename T, size_t rowCount, size_t colCount>
The type stored in the matrix
◆ Matrix() [1/5]
template<typename T, size_t rowCount, size_t colCount>
◆ Matrix() [2/5]
template<typename T, size_t rowCount, size_t colCount>
Zivid::Matrix< T, rowCount, colCount >::Matrix |
( |
const std::array< T, colCount *rowCount > & |
arrArr | ) |
|
|
inlineexplicit |
◆ Matrix() [3/5]
template<typename T, size_t rowCount, size_t colCount>
template<typename Iterator >
◆ Matrix() [4/5]
template<typename T, size_t rowCount, size_t colCount>
◆ Matrix() [5/5]
template<typename T, size_t rowCount, size_t colCount>
Zivid::Matrix< T, rowCount, colCount >::Matrix |
( |
std::initializer_list< std::initializer_list< T >> |
values | ) |
|
|
inlineexplicit |
◆ at() [1/2]
template<typename T, size_t rowCount, size_t colCount>
T& Zivid::Matrix< T, rowCount, colCount >::at |
( |
size_t |
row, |
|
|
size_t |
col |
|
) |
| |
|
inline |
Access specified element with bounds checking
◆ at() [2/2]
template<typename T, size_t rowCount, size_t colCount>
const T& Zivid::Matrix< T, rowCount, colCount >::at |
( |
size_t |
row, |
|
|
size_t |
col |
|
) |
| const |
|
inline |
Access specified element with bounds checking
◆ begin()
template<typename T, size_t rowCount, size_t colCount>
Iterator to the beginning of the matrix
◆ cbegin()
template<typename T, size_t rowCount, size_t colCount>
Iterator to the beginning of the matrix
◆ cend()
template<typename T, size_t rowCount, size_t colCount>
Iterator to the end of the matrix
◆ end()
template<typename T, size_t rowCount, size_t colCount>
Iterator to the end of the matrix
◆ operator()() [1/2]
template<typename T, size_t rowCount, size_t colCount>
T& Zivid::Matrix< T, rowCount, colCount >::operator() |
( |
size_t |
row, |
|
|
size_t |
col |
|
) |
| |
|
inline |
Access specified element without bounds checking
◆ operator()() [2/2]
template<typename T, size_t rowCount, size_t colCount>
const T& Zivid::Matrix< T, rowCount, colCount >::operator() |
( |
size_t |
row, |
|
|
size_t |
col |
|
) |
| const |
|
inline |
Access specified element without bounds checking
◆ toString()
template<typename T, size_t rowCount, size_t colCount>
std::string Zivid::Matrix< T, rowCount, colCount >::toString |
( |
| ) |
const |
|
inline |
Get string representation of the Matrix
- Returns
- Matrix as string
◆ cols
template<typename T, size_t rowCount, size_t colCount>
constexpr size_t Zivid::Matrix< T, rowCount, colCount >::cols { colCount } |
|
staticconstexpr |
The number of columns in the matrix
◆ rows
template<typename T, size_t rowCount, size_t colCount>
constexpr size_t Zivid::Matrix< T, rowCount, colCount >::rows { rowCount } |
|
staticconstexpr |
The number of rows in the matrix
The documentation for this class was generated from the following file: