Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members

# SymMatrix Class Reference [AbstractLinearAlgebra]

`#include <DoubleMatrix.h>`

Inheritance diagram for SymMatrix:

List of all members.

## Public Methods

virtual void symAtPutSubmatrix (int destRow, int destCol, DoubleMatrix &M, int srcRow, int srcCol, int rowExtent, int colExtent)=0
virtual void randomizePSD (double *seed)=0
virtual void symAtPutSpRow (int col, double A[], int lenA, int irowA[], int &info)=0
virtual int size ()=0

## Detailed Description

Parent of all Symmetric matrices.

## Member Function Documentation

 virtual void SymMatrix::randomizePSD ( double * seed ) ` [pure virtual]`
 Randomize the elements of this matrix in a manner that makes the matrix positive semi-definite. Implemented in DenseSymMatrix, and SparseSymMatrix.

 virtual int SymMatrix::size ( ) ` [pure virtual]`
 the size of this square matrix Implemented in DenseSymMatrix, and SparseSymMatrix.

 virtual void SymMatrix::symAtPutSpRow ( int col, double A[], int lenA, int irowA[], int & info ) ` [pure virtual]`
 Put a sparse row into this matrix symmetrically. Elements of the row that would lie above the diagonal are ignored. The matrix is symmetrized by reflection across the diagonal. The meaning of the parmameters is the same as in fromGetSpRow. See also: DoubleMatrix::fromGetSpRow Implemented in DenseSymMatrix, and SparseSymMatrix.

 virtual void SymMatrix::symAtPutSubmatrix ( int destRow, int destCol, DoubleMatrix & M, int srcRow, int srcCol, int rowExtent, int colExtent ) ` [pure virtual]`

Put a submatrix of M into this matrix.

The submatrix is placed into this matrix in a manner that preserves the symmetry of this matrix. The element of M whose destination is in the lower triangle of this matrix are placed there without change, and the upper triangle is taken to be the reflection across the diagonal.

Parameters:
 destRow The top row of the submatrix of M is placed at destRow. destCol The leftmost column of the submatrix of M is placed at destCol. srcRow The first row of the submatrix of M is srcRow. srcCol The first column of the submatrix of M is srcCol. rowExtent rowExtent rows are copied from M. colExtent colExtent columns are copied from M.

Implemented in DenseSymMatrix, and SparseSymMatrix.

The documentation for this class was generated from the following file:
Generated on Mon May 24 17:40:47 2004 for OOQP by 1.2.18