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

DenseSymMatrix Class Reference

An implementation of SymMatrix that supports matrix operations for dense symmetric matrices. More...

#include <DenseSymMatrix.hh>

Inheritance diagram for DenseSymMatrix:

SymMatrix LinearOperator IotrRefCount List of all members.

Public Methods

 DenseSymMatrix (int size)
 Constructor.

 DenseSymMatrix (double *v, int size)
 Constructor.

virtual ~DenseSymMatrix ()
 Destructor.

double * elements ()
 Return mMat[0].

double ** Mat ()
 Return mMat.

int leadingDimension () const
 Return mLeadingDimension.

virtual void clearRange (int istart, int jstart, int iextent, int jextent)
 Set all elements in range 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 data
 data will be used to store matrix

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


Detailed Description

An implementation of SymMatrix that supports matrix operations for dense symmetric matrices.


Member Function Documentation

virtual void DenseSymMatrix::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