NPL
Neurological Programs and Libraries
|
#include <matrix_deprecated.h>
Inherits npl::MatrixP.
Public Member Functions | |
Matrix () | |
Default constructor, sets the matrix to the identity matrix. More... | |
Matrix (double v) | |
Constructor, sets the entire matrix to the given constant. More... | |
Matrix (size_t l, const double *v) | |
Initialize a matrix from array of length l, made up of an array at v*. Missing values are assumed to be 0, extra values ignored. More... | |
Matrix (size_t l, const int64_t *v) | |
Initialize a matrix from array of length l, made up of an array at v*. Missing values are assumed to be 0, extra values ignored. More... | |
Matrix (std::initializer_list< double > v) | |
Initialize matrix with vector, any missing values will be assumed zero, extra values are ignored. More... | |
Matrix (const std::vector< double > &v) | |
Initialize matrix with vector, any missing values will be assumed zero, extra values are ignored. More... | |
Matrix (const std::vector< size_t > &v) | |
Initialize matrix with vector, any missing values will be assumed zero, extra values are ignored. More... | |
Matrix (const std::vector< int64_t > &v) | |
Initialize matrix with vector, any missing values will be assumed zero, extra values are ignored. More... | |
Matrix (const Matrix &m) | |
Copy constructor, copies all the elements of the other vector. More... | |
double & | operator[] (size_t row) |
Returns row in column 0. More... | |
double & | operator() (size_t row, size_t col=0) |
Returns value at given row/column. More... | |
const double & | operator[] (size_t row) const |
Returns row in column 0. More... | |
const double & | operator() (size_t row, size_t col=0) const |
Returns value at given row/column. More... | |
void | mvproduct (const MatrixP *rhs, MatrixP *out) const |
Performs matrix-vector product of right hand side (rhs) and the current matrix, writing the result in out. RHS and OUT are cast to the appropriate types (dimensions). Will throw if the dimension requirements are not met. More... | |
void | mvproduct (const MatrixP &rhs, MatrixP &out) const |
Performs matrix-vector product of right hand side (rhs) and the current matrix, writing the result in out. RHS and OUT are cast to the appropriate types (dimensions). Will throw if the dimension requirements are not met. More... | |
virtual double | det () const |
virtual double | norm () const |
virtual double | sum () const |
size_t | rows () const |
size_t | cols () const |
bool | operator== (const MatrixP &rhs) |
bool | operator!= (const MatrixP &rhs) |
Definition at line 119 of file matrix_deprecated.h.
|
inline |
Default constructor, sets the matrix to the identity matrix.
Definition at line 126 of file matrix_deprecated.h.
|
inline |
Constructor, sets the entire matrix to the given constant.
v | constant to set all elements to |
Definition at line 140 of file matrix_deprecated.h.
|
inline |
Initialize a matrix from array of length l, made up of an array at v*. Missing values are assumed to be 0, extra values ignored.
l | length of v |
v | vector of data |
Definition at line 155 of file matrix_deprecated.h.
|
inline |
Initialize a matrix from array of length l, made up of an array at v*. Missing values are assumed to be 0, extra values ignored.
l | length of v |
v | vector of data |
Definition at line 174 of file matrix_deprecated.h.
|
inline |
Initialize matrix with vector, any missing values will be assumed zero, extra values are ignored.
v | Input data vector |
Definition at line 192 of file matrix_deprecated.h.
|
inline |
Initialize matrix with vector, any missing values will be assumed zero, extra values are ignored.
v | Input data vector |
Definition at line 212 of file matrix_deprecated.h.
|
inline |
Initialize matrix with vector, any missing values will be assumed zero, extra values are ignored.
v | Input data vector |
Definition at line 230 of file matrix_deprecated.h.
|
inline |
Initialize matrix with vector, any missing values will be assumed zero, extra values are ignored.
v | Input data vector |
Definition at line 248 of file matrix_deprecated.h.
|
inline |
Copy constructor, copies all the elements of the other vector.
m |
Definition at line 265 of file matrix_deprecated.h.
|
inlinevirtual |
Implements npl::MatrixP.
Definition at line 361 of file matrix_deprecated.h.
|
virtual |
Implements npl::MatrixP.
Definition at line 708 of file matrix_deprecated.h.
|
virtual |
Performs matrix-vector product of right hand side (rhs) and the current matrix, writing the result in out. RHS and OUT are cast to the appropriate types (dimensions). Will throw if the dimension requirements are not met.
rhs | Right hand side of matrix-vector product |
out | Output of matrix-vector product |
Implements npl::MatrixP.
Definition at line 377 of file matrix_deprecated.h.
|
virtual |
Performs matrix-vector product of right hand side (rhs) and the current matrix, writing the result in out. RHS and OUT are cast to the appropriate types (dimensions). Will throw if the dimension requirements are not met.
rhs | Right hand side of matrix-vector product |
out | Output of matrix-vector product |
Implements npl::MatrixP.
Definition at line 398 of file matrix_deprecated.h.
|
virtual |
Implements npl::MatrixP.
Definition at line 702 of file matrix_deprecated.h.
|
inlineinherited |
Definition at line 112 of file matrix_deprecated.h.
|
inlinevirtual |
Returns value at given row/column.
row | Row to lookup |
col | Col to lookup |
Implements npl::MatrixP.
Definition at line 295 of file matrix_deprecated.h.
|
inlinevirtual |
Returns value at given row/column.
row | Row to lookup |
col | Col to lookup |
Implements npl::MatrixP.
Definition at line 322 of file matrix_deprecated.h.
|
inlineinherited |
Definition at line 98 of file matrix_deprecated.h.
|
inlinevirtual |
Returns row in column 0.
row | Row to lookup |
Implements npl::MatrixP.
Definition at line 281 of file matrix_deprecated.h.
|
inlinevirtual |
Returns row in column 0.
row | Row to lookup |
Implements npl::MatrixP.
Definition at line 308 of file matrix_deprecated.h.
|
inlinevirtual |
Implements npl::MatrixP.
Definition at line 360 of file matrix_deprecated.h.
|
virtual |
Implements npl::MatrixP.
Definition at line 722 of file matrix_deprecated.h.