|
C3D Toolkit
Kernel - 118060, Vision - 2.15.0.1825
|
Square matrix of numbers N x N. More...
#include <mb_matrixnn.h>
Public Member Functions | |
| MatrixNN (const uint16 &dim) | |
| The constructor of restricted dimension. | |
| MatrixNN (const MatrixNN &) | |
| The copy constructor. | |
| ~MatrixNN () | |
| Destructor. | |
| size_t | Lines () const |
| Give the number of matrix rows. | |
| size_t | Columns () const |
| Give the number of matrix columns. | |
| size_t | Count () const |
| Give the number of matrix elements. | |
| c3d::IndicesPair | GetSize () const |
| Give the size of the matrix. | |
| bool | SetSize (c3d::IndicesPair sz) |
| Set size. | |
| bool | SetSize (size_t lsz, size_t csz, bool save_vals=false) |
| Set size. | |
| bool | SetSize (size_t dim, bool save_vals=false) |
| Set size. | |
| const double & | GetElem (size_t i, size_t j) const |
| Get an element of the matrix (i,j). | |
| void | SetElem (size_t i, size_t j, double v) |
| Set an element of the matrix (i,j). | |
| void | AddElem (size_t i, size_t j, double v) |
| Add an element of the matrix (i,j). | |
| const double & | operator() (size_t i, size_t j) const |
| Get an element of the matrix (i,j). | |
| MatrixNN & | SetZero () |
| Set the matrix to null. | |
| bool | Init (const MatrixNN &) |
| Initialize by elements of another matrix. | |
| MatrixNN & | operator= (const MatrixNN &mtr) |
| The assignment operator. | |
| bool | SwapLines (size_t ln1, size_t ln2) |
| Swap lines. | |
| double & | operator() (size_t i, size_t j) |
| Set an element of the matrix (i,j). | |
| const double * | GetLine (size_t i) const |
| Get an address of the matrix row start . | |
| double * | SetLine (size_t i) |
| Get an address of the matrix row start . | |
| void | Init (size_t i, size_t j, double v) |
| Initiate an element. | |
| void | SetLine (size_t i, double *p) |
| Set a row. | |
| double ** | SetParr () |
| Get an address of the matrix. | |
| void | SetSingle () |
| Set the matrix to unit. | |
| bool | Add () |
| Increase the dimension by adding a row and coloumn to the end. | |
| void | Delete (size_t i) |
| Remove a row and column. | |
Static Public Member Functions | |
| static MatrixNN * | Create (size_t m) |
| The constructor by a given dimension. | |
Protected Member Functions | |
| MatrixNN () | |
| Constructor. | |
| MatrixNN (size_t dim) | |
| The constructor by a given dimension. | |
Square matrix of numbers N x N.