#include <matrixop.h>
template<class T>
class mcl::Matrix< T >
Matrix class
Default constructor with empty (0x0) matrix
Constructs a matrix with default entries
Constructs a matrix from a vector of vectors (outer vector represents rows)
template<class T>
std::vector<std::vector<T> > mcl::Matrix< T >::data |
( |
| ) |
|
|
inlinenoexcept |
Accesses an entire column
template<class T>
T mcl::Matrix< T >::GetElement |
( |
const Int & |
index_row, |
|
|
const Int & |
index_column |
|
) |
| const |
|
inlinenoexcept |
Accesses an element in given row and column
Reads a matrix. Elements have to be separated by tabs and there must be no ending empty line (e.g. 5 lines == 5 rows).
Returns the number of columns
Returns the number of rows
Constructs a matrix of all ones. Equivalent to Matlab's ones(N,M).
Constructs a matrix of all ones. Equivalent to Matlab's ones(N).
Writes the matrix to a file. The optional parameter precision
sets the number of decimal positions in the output file
Returns the serialised matrix. Equivalent to Matlab's matrix(:)
template<class T>
void mcl::Matrix< T >::SetColumn |
( |
Int |
index_column, |
|
|
std::vector< T > |
column |
|
) |
| |
|
inlinenoexcept |
template<class T>
void mcl::Matrix< T >::SetElement |
( |
const Int & |
index_row, |
|
|
const Int & |
index_column, |
|
|
const T & |
element |
|
) |
| |
|
inlinenoexcept |
Sets element in given row and column
The documentation for this class was generated from the following file: