Public Member Functions | |
Constructors | |
Vector () | |
Vector (uint32_t length) | |
Vector (IVSparse::SparseMatrix< T, indexT, compressionLevel, columnMajor > &mat, uint32_t vec) | |
Vector (IVSparse::SparseMatrix< T, indexT, compressionLevel, columnMajor >::Vector &vec) | |
~Vector () | |
Getters | |
T | coeff (uint32_t index) |
void * | begin () |
void * | end () |
size_t | byteSize () |
uint32_t | innerSize () |
uint32_t | outerSize () |
uint32_t | nonZeros () |
uint32_t | getLength () |
Utility Methods | |
void | print () |
Calculation Methods | |
double | norm () |
T | sum () |
double | dot (Eigen::Vector< T, -1 > &other) |
double | dot (Eigen::SparseVector< T, -1 > &other) |
T | Type of the values in the matrix |
indexT | Type of the indices in the matrix |
compressionLevel | Compression level of the matrix |
columnMajor | Storage order of the matrix |
IVCSC Vector Class
The IVCSC Vector class is a vector class that is used to work with IVCSC 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 | ( | uint32_t | length | ) |
Length Vector Constructor
Creates a vector of the given length with everything set to null/zero.
Vector | ( | IVSparse::SparseMatrix< T, indexT, compressionLevel, columnMajor > & | mat, |
uint32_t | vec | ||
) |
IVSparse Matrix to Vector Constructor
Creates a vector from a IVCSC Matrix at the given vector index.
Vector | ( | IVSparse::SparseMatrix< T, indexT, compressionLevel, columnMajor >::Vector & | vec | ) |
Deep Copy Vector Constructor
Creates a deep copy of the given vector.
Destroys the vector.
T coeff | ( | uint32_t | index | ) |
void * begin |
void * end |
size_t byteSize |
uint32_t innerSize |
uint32_t outerSize |
uint32_t nonZeros |
uint32_t getLength |
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 | ) |