Constructors | |
Vector () | |
Vector (IVSparse::SparseMatrix< T, indexT, 2, columnMajor > &mat, uint32_t vec) | |
Vector (IVSparse::SparseMatrix< T, indexT, 2, 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 () |
indexT * | getCounts () |
indexT * | getIndices () |
indexT | uniqueVals () |
Utility Methods | |
void | print () |
Calculation Methods | |
double | norm () |
T | sum () |
double | dot (Eigen::Vector< T, -1 > &other) |
double | dot (Eigen::SparseVector< T, -1 > &other) |
VCSC Vector Class
The VCSC Vector class is a vector class that is used to work with VCSC 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, 2, columnMajor > & | mat, |
uint32_t | vec | ||
) |
IVSparse Matrix to Vector Constructor
Creates a vector from a VCSC Matrix at the given vector index.
Vector | ( | IVSparse::SparseMatrix< T, indexT, 2, 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 * getCounts |
indexT * getIndices |
indexT uniqueVals |
void print |
Prints the vector dense to the console.
|
inline |
|
inline |
double dot | ( | Eigen::Vector< T, -1 > & | other | ) |
double dot | ( | Eigen::SparseVector< T, -1 > & | other | ) |