Public Member Functions | |
Constructors | |
Vector () | |
Vector (IVSparse::SparseMatrix< T, indexT, 1, columnMajor > &mat, uint32_t vec) | |
Vector (IVSparse::SparseMatrix< T, indexT, 1, columnMajor >::Vector &vec) | |
~Vector () | |
Getters | |
T | coeff (uint32_t index) |
size_t | byteSize () |
uint32_t | innerSize () |
uint32_t | outerSize () |
uint32_t | nonZeros () |
uint32_t | getLength () |
T * | getValues () const |
indexT * | getInnerIndices () const |
Utility Methods | |
void | print () |
CSC Vector Class
The CSC Vector class is a vector class that is used to work with CSC matrices. It works with the same logic as the corresponding matrix compression level and is useful when working with these matrices.
|
inline |
Default Vector Constructor
Creates an empty vector with everything set to null/zero.
Vector | ( | IVSparse::SparseMatrix< T, indexT, 1, columnMajor > & | mat, |
uint32_t | vec | ||
) |
IVSparse Matrix to Vector Constructor
Creates a vector from a CSC Matrix at the given vector index.
Vector | ( | IVSparse::SparseMatrix< T, indexT, 1, columnMajor >::Vector & | vec | ) |
Deep Copy Vector Constructor
Creates a deep copy of the given vector.
Destroys the vector.
T coeff | ( | uint32_t | index | ) |
size_t byteSize |
uint32_t innerSize |
uint32_t outerSize |
uint32_t nonZeros |
uint32_t getLength |
T * getValues |
indexT * getInnerIndices |
void print |
Prints the vector dense to the console.