Cypress
1.0
C++ Spiking Neural Network Simulation Framework
|
#include <matrix.hpp>
Public Member Functions | |
Vector () | |
Vector (size_t s, MatrixFlags flags=MatrixFlags::NONE) | |
Vector (std::initializer_list< T > init) | |
void | resize (size_t s) |
operator std::vector< T > () const | |
bool | operator== (const Matrix< T > &o) const |
Matrix< T > & | fill (const T &val) |
T * | begin (size_t row=0) |
const T * | begin (size_t row=0) const |
T * | end () |
const T * | end () const |
const T * | cbegin (size_t row=0) const |
const T * | cend () const |
T & | operator() (size_t row, size_t col) |
const T & | operator() (size_t row, size_t col) const |
T & | operator() (size_t i) |
const T & | operator() (size_t i) const |
T & | operator[] (size_t i) |
const T & | operator[] (size_t i) const |
size_t | rows () const |
size_t | cols () const |
size_t | size () const |
void | resize (size_t rows, size_t cols) |
void | reshape (size_t rows, size_t cols) |
T * | data () |
const T * | data () const |
bool | empty () const |
Matrix | submatrix (size_t row, size_t col) const |
Returns the submatrix not containing specified row and column. More... | |
T | determinant () const |
Calculate the determinant of this matrix. Note that the type of the returned value is of the same type as the matrix, which might be a problem for unsigned types! Only valid for squared matrices! More... | |
Matrix | adjugate () const |
Calculates the adjugate/adjunct matrix. As for the determinant, this runs into issues with unsigned types and works only for squared matrices! More... | |
Matrix< double > | inverse () const |
Calculates the inverse of the matrix. As for the determinant, this runs into issues with unsigned types and works only for squared matrices! Note that the type of the returned matrix is always double! Throws if matrix is not invertible! More... | |
|
inline |
|
inline |
|
inline |
|
inlineinherited |
Calculates the adjugate/adjunct matrix. As for the determinant, this runs into issues with unsigned types and works only for squared matrices!
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Returns the height of the matrix.
|
inlineinherited |
Returns a pointer at the raw data buffer.
|
inlineinherited |
Returns a const pointer at the raw data.
|
inlineinherited |
Calculate the determinant of this matrix. Note that the type of the returned value is of the same type as the matrix, which might be a problem for unsigned types! Only valid for squared matrices!
|
inlineinherited |
Returns true if the matrix contains no data.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Fills the matrix with the given value.
|
inlineinherited |
Calculates the inverse of the matrix. As for the determinant, this runs into issues with unsigned types and works only for squared matrices! Note that the type of the returned matrix is always double! Throws if matrix is not invertible!
|
inlineinherited |
Conversion to a std::vector
|
inlineinherited |
Returns a reference at the element at position row and col.
|
inlineinherited |
Returns a const reference at the element at position row and col.
|
inlineinherited |
Returns a reference at the i-th element.
|
inlineinherited |
Returns a const reference at the i-th element.
|
inlineinherited |
Tests equality between two matrices.
o | is the matrix to which this matrix should be compared. |
|
inlineinherited |
Returns a copy of the i-th element.
|
inlineinherited |
Returns a copy of the i-th element.
|
inlineinherited |
Reshapes the matrix if rows * cols does not change. Otherwise flushes all previously stored data, does nothing if the dimensions do not change.
|
inlineinherited |
Resizes the matrix, flushes all previously stored data, does nothing if the dimensions do not change.
|
inline |
|
inlineinherited |
Returns the width of the matrix.
|
inlineinherited |
Returns the size of the matrix.
|
inlineinherited |
Returns the submatrix not containing specified row and column.
row | row to delete |
col | column to delete |