|
C3D Toolkit
Kernel - 118069, Vision - 2.16.7.1844
|
Two-dimensional sparse array of objects. More...
#include <templ_sparse_array2.h>
Public Member Functions | |
| SparseArray2 () | |
| Constructor. | |
| SparseArray2 (const uint16 &lsz, const uint16 &csz) | |
| The constructor of restricted dimension. | |
| SparseArray2 (const SparseArray2< Type > &src) | |
| Copy-constructor. | |
| virtual | ~SparseArray2 () |
| Destructor. | |
| size_t | Lines () const |
| Count of rows. | |
| size_t | Columns () const |
| Count of columns. | |
| size_t | Count () const |
| Count of elements. | |
| c3d::IndicesPair | GetSize () const |
| Give the size of the array. | |
| bool | SetSize (c3d::IndicesPair sz) |
| Set size. | |
| bool | SetSize (size_t lsz, size_t csz) |
| Set size. | |
| bool | SetSize (size_t sz) |
| Set size. | |
| const Type & | GetElem (size_t ln, size_t cn) const |
| Get an element of the array. | |
| bool | SetElem (size_t ln, size_t cn, const Type &) |
| Set an element of the array. | |
| const Type & | operator() (size_t ln, size_t cn) const |
| Access by indices operator. | |
| SparseMatrix & | SetZero () |
| Assign zeros to array. | |
| bool | Init (const SparseMatrix &) |
| An assignment function. | |
| SparseMatrix & | operator= (const SparseMatrix &src) |
| The assignment operator. | |
| bool | SwapLines (size_t ln1, size_t ln2) |
| Swap lines. | |
| bool | SetLine (size_t ln, std::vector< NumberType > &) |
| Set nonzero elements of the row. | |
| size_t | NzBegin (size_t ln) const |
| Index of the first nonzero element. | |
| size_t | NzEnd (size_t ln) const |
| The final index of the sequence of non-zero elements. | |
| bool | NzIndices (size_t ln, const NumberRange &searchRange, std::vector< size_t > &) const |
| Get indices of nonzero elements of the row. | |
| void | NzUpdate () |
| Update the row (delete zero elements as far as possible). | |
Static Public Member Functions | |
| static SparseMatrix * | Create (size_t lsz, size_t csz) |
| The constructor by a given dimension. | |
Protected Member Functions | |
| SparseArray2 (size_t lsz, size_t csz) | |
| The constructor by a given dimension. | |
Protected Attributes | |
| SparseData | data |
| Data. | |
| size_t | nColumns |
| Count of columns of array. | |
Two-dimensional sparse array of objects.
Two-dimensional sparse array of objects.