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

SymMatrix Class Reference
[MatrixAnalysis]

A class that supports matrix operation and storage for symmetric matrices. More...

#include <SymMatrix.hh>

Inheritance diagram for SymMatrix:

LinearOperator IotrRefCount DenseSymMatrix SparseSymMatrix List of all members.

Public Methods

virtual void mult (double alpha, const IotrVector &x, double beta, IotrVector &y) const=0
 y = beta * y + alpha * M * x

int size () const
 return the size of the matrix

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

virtual void symCopyFromSparseCols (const int irow[], const int kcol[], const double M[], int &has_upper)=0
 Set some of the diagonal elements of a matrix.


Detailed Description

A class that supports matrix operation and storage for symmetric matrices.


Member Function Documentation

virtual void SymMatrix::symCopyFromSparseCols const int    irow[],
const int    kcol[],
const double    M[],
int &    has_upper
[pure virtual]
 

Set some of the diagonal elements of a matrix.

Parameters:
ielement  the first diagonal element to be set.
v  a vector of new diagonal elements.

Implemented in DenseSymMatrix, and SparseSymMatrix.

virtual void SymMatrix::writefToStream std::ostream &    out,
const char    format[]
const [pure 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 substrings %{irow}, %{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}" );

Implemented in DenseSymMatrix, and SparseSymMatrix.


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