Public Member Functions
SymSparseMat Class Reference

Interfaces matrix-vector operations tailored to symmetric sparse matrices. More...

#include <Matrices.hpp>

Inheritance diagram for SymSparseMat:
Inheritance graph
[legend]

List of all members.

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 Matrixduplicate () 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)

Detailed Description

Interfaces matrix-vector operations tailored to symmetric sparse matrices.

Symmetric sparse matrix class (column compressed format).

Author:
Andreas Potschka, Christian Kirches, Hans Joachim Ferreau
Version:
3.0beta
Date:
2011

Definition at line 586 of file Matrices.hpp.


Constructor & Destructor Documentation

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.

Parameters:
nrNumber of rows.
ncNumber of columns.
rRow indices (length).
cIndices to first entry of columns (nCols+1).
vVector of entries (length).
dIndices 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.

Parameters:
nrNumber of rows.
ncNumber of columns.
ldLeading dimension.
vRow major stored matrix elements.

Definition at line 603 of file Matrices.hpp.


Member Function Documentation

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.

Returns:
SUCCESSFUL_RETURN
Parameters:
icolsIndex list specifying columns of x.
xNNumber of vectors to multiply.
xInput vector to be multiplied (uncompressed).
xLDLeading dimension of input x.
yOutput vector of results (compressed).
yLDLeading 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.

Returns:
Deep-copy of Matrix object

Reimplemented from SparseMatrix.

Definition at line 1085 of file Matrices.cpp.


The documentation for this class was generated from the following files:


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Sat Jun 8 2019 19:40:26