#include <matrix.hpp>
Inheritance diagram for ReallocatableMatrix:
This class contains matrix which stored by columns so you can easy add columns.
Definition at line 122 of file matrix.hpp.
Public Member Functions | |
ReallocatableMatrix (unsigned rows, unsigned start_cols) | |
Initialize matrix with sizes rows x start_cols. | |
unsigned | GetNumRows () const |
Get number of rows. | |
unsigned | GetNumCols () const |
Get number of columns. | |
void | Resize (unsigned needsize) |
Add new columns two matrix if needed. | |
double & | elem (unsigned i, unsigned j) |
Get a reference to matrix in position i,j; so you can change it. | |
double | elem (unsigned i, unsigned j) const |
Get element in position i,j. | |
~ReallocatableMatrix () | |
The destructor. | |
Row | GetRow (unsigned i) const |
Get view of i row of matrix. | |
Column | GetCol (unsigned j) const |
Get view of j column of matrix. |
|
Initialize matrix with sizes rows x start_cols.
Definition at line 111 of file matrix.cpp. References Resize(). |
|
The destructor.
Definition at line 166 of file matrix.cpp. |
|
Get number of rows.
Implements Matrix. Definition at line 136 of file matrix.cpp. |
|
Get number of columns.
Implements Matrix. Definition at line 141 of file matrix.cpp. |
|
Add new columns two matrix if needed.
Definition at line 117 of file matrix.cpp. References ReallocatableMatrix_add_allocsize. Referenced by Cross::Approximate(), and ReallocatableMatrix(). |
|
Get a reference to matrix in position i,j; so you can change it.
Definition at line 146 of file matrix.cpp. Referenced by Cross::Approximate(). |
|
Get element in position i,j.
Implements Matrix. Definition at line 156 of file matrix.cpp. |
|
Get view of i row of matrix.
Definition at line 19 of file matrix.cpp. Referenced by Cross::Approximate(). |
|
Get view of j column of matrix.
Definition at line 39 of file matrix.cpp. Referenced by Cross::Approximate(). |