#include <csv.h>
Public Member Functions | |
void | axpy (compvect *x, double aa) |
void | axpy_known (compvect *x, double aa) |
compvect (long *ii, long nonz) | |
compvect () | |
void | copy (compvect *bc) |
double | dotprod (compvect *cv) |
void | reorder_components () |
void | setup_vector (double *b, long nc) |
void | test_ordering () |
~compvect () | |
Public Attributes | |
double * | a |
array containing nonzero components | |
long * | ind |
array containing indices of nonzero components | |
double | limit |
limit for components extraction | |
long | n |
number of all components (including zero components) of the stored vector | |
long | nz |
number of nonzero components of the stored vector | |
long | ordering |
indicator of reordering |
class deals with compressed sparse vector format
only nonzero vector components are stored in the array a corresponding indices are stored in the array ind
JK, 25.2.2007
Definition at line 13 of file csv.h.
compvect | ( | long * | ii, | |
long | nonz | |||
) |
void axpy | ( | compvect * | x, | |
double | aa | |||
) |
void axpy_known | ( | compvect * | x, | |
double | aa | |||
) |
void copy | ( | compvect * | bc | ) |
double dotprod | ( | compvect * | cv | ) |
void reorder_components | ( | ) |
void setup_vector | ( | double * | b, | |
long | nc | |||
) |
void test_ordering | ( | ) |
double* a |
array containing nonzero components
Definition at line 36 of file csv.h.
Referenced by axpy(), axpy_known(), compvect(), copy(), comprow::crxcv_cv(), dotprod(), reorder_components(), setup_vector(), and ~compvect().
long* ind |
array containing indices of nonzero components
Definition at line 38 of file csv.h.
Referenced by axpy(), compvect(), copy(), comprow::crxcv_cv(), dotprod(), reorder_components(), setup_vector(), test_ordering(), and ~compvect().
double limit |
limit for components extraction
Definition at line 43 of file csv.h.
Referenced by compvect(), and setup_vector().
long n |
number of all components (including zero components) of the stored vector
Definition at line 32 of file csv.h.
Referenced by compvect(), copy(), and setup_vector().
long nz |
number of nonzero components of the stored vector
Definition at line 34 of file csv.h.
Referenced by aggregator::assemble_smoothed_prol2(), axpy(), axpy_known(), compvect(), copy(), comprow::crxcv_cv(), dotprod(), reorder_components(), setup_vector(), and test_ordering().
long ordering |
indicator of reordering
Definition at line 41 of file csv.h.
Referenced by compvect(), comprow::crxcv_cv(), dotprod(), reorder_components(), setup_vector(), and test_ordering().