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

SparseGenMatrix Class Reference
[SparseMatrixAnalysis]

An implementation of GenMatrix that supports matrix operations for sparse matrices with no special structure. More...

#include <SparseGenMatrix.hh>

Inheritance diagram for SparseGenMatrix:

GenMatrix LinearOperator IotrRefCount List of all members.

Public Methods

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

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

virtual int maxNonZeros () const
 return number of nonzeros possible for this

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
 y := beta * y + alpha * this * x

virtual void filteredMult (double alpha, const ElementGather &filter, const IotrVector &x, double beta, IotrVector &y) const
virtual void transposeMult (double alpha, const IotrVector &x, double beta, IotrVector &y) const
 Transpose multiply y := beta * y + alpha * this^T * x.

virtual void filteredTransposeMult (double alpha, const IotrVector &x, double beta, const ElementGather &filt, IotrVector &y) const
virtual void copyFromSparseCols (const int irow[], const int kcol[], const double M[])
 y := beta * y + alpha * this * iequality * x

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

Protected Attributes

SimpleArrayDataHandle mDataArray
 data will be used to store matrix.


Detailed Description

An implementation of GenMatrix that supports matrix operations for sparse matrices with no special structure.


Member Function Documentation

virtual void SparseGenMatrix::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. The substring %{irow} and %{jcol} will be substituted by the indices of the current element and the string %{value} will be substituted with the element's value.

Implements GenMatrix.


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