Class that treats a std::vector as a matrix and implements simple operations.
More...
|
| | Matrix ()=default |
| |
| | ~Matrix ()=default |
| |
| | Matrix (size_t rows, size_t cols) |
| |
| | Matrix (size_t rows, size_t cols, std::vector< float > data) |
| |
| float & | operator() (size_t i, size_t j) |
| |
| float | operator() (size_t i, size_t j) const |
| |
| Matrix | transpose () const |
| | Gets the transpose of the matrix.
|
| |
| Matrix | T () const |
| | Alias for transpose()
|
| |
| std::vector< float > | operator* (const std::vector< float > &v) const |
| | Overloaded multiplication operator for matrix-matrix multiplication.
|
| |
| std::vector< float > | getData () const |
| | Gets the data vector of the matrix.
|
| |
| bool | operator== (const Matrix &rhs) const |
| | Overloaded equality operator that returns true if matrices are equal value-wise.
|
| |
Class that treats a std::vector as a matrix and implements simple operations.
Definition at line 7 of file matrix.hpp.
◆ Matrix() [1/3]
◆ ~Matrix()
◆ Matrix() [2/3]
| Matrix::Matrix |
( |
size_t | rows, |
|
|
size_t | cols ) |
|
inline |
◆ Matrix() [3/3]
| Matrix::Matrix |
( |
size_t | rows, |
|
|
size_t | cols, |
|
|
std::vector< float > | data ) |
|
inline |
◆ getData()
| std::vector< float > Matrix::getData |
( |
| ) |
const |
|
inline |
◆ operator()() [1/2]
| float & Matrix::operator() |
( |
size_t | i, |
|
|
size_t | j ) |
|
inline |
◆ operator()() [2/2]
| float Matrix::operator() |
( |
size_t | i, |
|
|
size_t | j ) const |
|
inline |
◆ operator*()
| std::vector< float > Matrix::operator* |
( |
const std::vector< float > & | v | ) |
const |
|
inline |
Overloaded multiplication operator for matrix-matrix multiplication.
Definition at line 54 of file matrix.hpp.
◆ operator==()
| bool Matrix::operator== |
( |
const Matrix & | rhs | ) |
const |
|
inline |
Overloaded equality operator that returns true if matrices are equal value-wise.
Definition at line 78 of file matrix.hpp.
References getData().
◆ T()
◆ transpose()
| Matrix Matrix::transpose |
( |
| ) |
const |
|
inline |
Gets the transpose of the matrix.
Definition at line 36 of file matrix.hpp.
Referenced by T().
The documentation for this class was generated from the following file:
- C:/Users/vrim/Desktop/Coding/alpha-design-bilateral/src/utils/matrix.hpp