Interfaces matrix-vector operations tailored to symmetric sparse matrices. More...
#include <Matrices.hpp>
Public Member Functions | |
virtual returnValue | bilinear (const Indexlist *const icols, int xN, const real_t *x, int xLD, real_t *y, int yLD) const |
virtual Matrix * | duplicate () const |
SymSparseMat () | |
SymSparseMat (long nr, long nc, long *r, long *c, real_t *v, long *d=0) | |
SymSparseMat (int nr, int nc, int ld, const real_t *const v) |
Interfaces matrix-vector operations tailored to symmetric sparse matrices.
Symmetric sparse matrix class (column compressed format).
Definition at line 586 of file Matrices.hpp.
SymSparseMat::SymSparseMat | ( | ) | [inline] |
Default constructor.
Definition at line 590 of file Matrices.hpp.
SymSparseMat::SymSparseMat | ( | long | nr, |
long | nc, | ||
long * | r, | ||
long * | c, | ||
real_t * | v, | ||
long * | d = 0 |
||
) | [inline] |
Constructor with arguments.
nr | Number of rows. |
nc | Number of columns. |
r | Row indices (length). |
c | Indices to first entry of columns (nCols+1). |
v | Vector of entries (length). |
d | Indices to first entry of lower triangle (including diagonal) (nCols). |
Definition at line 593 of file Matrices.hpp.
SymSparseMat::SymSparseMat | ( | int | nr, |
int | nc, | ||
int | ld, | ||
const real_t *const | v | ||
) | [inline] |
Constructor from dense matrix.
nr | Number of rows. |
nc | Number of columns. |
ld | Leading dimension. |
v | Row major stored matrix elements. |
Definition at line 603 of file Matrices.hpp.
returnValue SymSparseMat::bilinear | ( | const Indexlist *const | icols, |
int | xN, | ||
const real_t * | x, | ||
int | xLD, | ||
real_t * | y, | ||
int | yLD | ||
) | const [virtual] |
Compute bilinear form y = x'*H*x using submatrix given by index list.
icols | Index list specifying columns of x. |
xN | Number of vectors to multiply. |
x | Input vector to be multiplied (uncompressed). |
xLD | Leading dimension of input x. |
y | Output vector of results (compressed). |
yLD | Leading dimension of output y. |
Implements SymmetricMatrix.
Definition at line 1108 of file Matrices.cpp.
Matrix * SymSparseMat::duplicate | ( | ) | const [virtual] |
Returns a deep-copy of the Matrix object.
Reimplemented from SparseMatrix.
Definition at line 1085 of file Matrices.cpp.