Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

SparseSymMatrix Class Reference
[SparseMatrixAnalysis]

A subclass of the class SymMatrix which stores a Symmetric matrix and supports matrix operations for sparse symmetric matrices. More...

#include <SparseSymMatrix.hh>

Inheritance diagram for SparseSymMatrix:

SymMatrix LinearOperator IotrRefCount List of all members.

Public Methods

 SparseSymMatrix (int n, int mz)
 Constructor.

 SparseSymMatrix (double *v, int *irow, int *kcol, int n, int mz)
 Constructor.

virtual ~SparseSymMatrix ()
 Destructor.

int leadingDimension () const
 Return mLeadingDimension.

virtual int rows () const
 return the number of rows.

virtual int columns () const
 return the number of columns.

int maxNonZeros () const
 return the size of this square matrix

virtual void setToZero ()
 Set all elements of this XXX_Matrix to zero.

virtual void writefToStream (std::ostream &out, const char format[]) const
 Write the components of this OOQP_Matrix to a stream, subject to a format.

virtual void mult (double alpha, const IotrVector &x, double beta, IotrVector &y) const
 mult

virtual void symMaskedMult (double alpha, const IotrMask &mask, const IotrVector &x, double beta, IotrVector &y) const
virtual void symCopyFromSparseCols (const int irow[], const int kcol[], const double M[], int &has_upper)
 Copies lower triangular entries of sparsely stored matrix described by (irow, kcol, M) into this.

virtual void symCopyToSparseCols (int irow[], int len, int kcol[], double M[], int &morei) const
virtual void inspect (const char *name_in=0, const char *filename=0) const
virtual void inspectAsMatlab (const char *name_in=0, const char *filename=0) const
virtual double lowerBoundEigenvalue () const

Protected Attributes

SimpleArrayDataHandle mDataArray
 data will be used to store matrix

double * mElements
 mMat will be an array of pointers whose elements point to the rows of the matrix


Detailed Description

A subclass of the class SymMatrix which stores a Symmetric matrix and supports matrix operations for sparse symmetric matrices.


Member Function Documentation

virtual void SparseSymMatrix::writefToStream std::ostream &    out,
const char    format[]
const [virtual]
 

Write the components of this OOQP_Matrix to a stream, subject to a format.

Parameters:
out  a C++-style output stream
format  a string used to format the output with respect to mH. The substrings %{irow} and %{jcol} will be substituted by the index of the current element and the string %{value} will be substituted with the element's value.
// Example 
  H->writefToStream( cout, "H[%{irow}, %{jcol}] = %{value}" );

Implements SymMatrix.


The documentation for this class was generated from the following file:
Generated on Wed Aug 27 10:03:42 2003 for iotr by doxygen1.2.18