#include <Epetra_SerialSymDenseMatrix.h>
Inheritance diagram for Epetra_SerialSymDenseMatrix:
Constructor/Destructor Methods  
Epetra_SerialSymDenseMatrix (void)  
Default constructor; defines a zero size object.  
Epetra_SerialSymDenseMatrix (Epetra_DataAccess CV, double *A, int LDA, int NumRowsCols)  
Set object values from twodimensional array.  
Epetra_SerialSymDenseMatrix (const Epetra_SerialSymDenseMatrix &Source)  
Epetra_SerialSymDenseMatrix copy constructor.  
virtual  ~Epetra_SerialSymDenseMatrix () 
Epetra_SerialSymDenseMatrix destructor.  
Set Methods  
int  Shape (int NumRowsCols) 
Set dimensions of a Epetra_SerialSymDenseMatrix object; init values to zero.  
int  Reshape (int NumRowsCols) 
Reshape a Epetra_SerialSymDenseMatrix object.  
void  SetLower () 
Specify that the lower triangle of the this matrix should be used.  
void  SetUpper () 
Specify that the upper triangle of the this matrix should be used.  
int  Shape (int NumRows, int NumCols) 
int  Reshape (int NumRows, int NumCols) 
Reshape a Epetra_SerialDenseMatrix object.  
Query methods  
bool  Upper () const 
Returns true if upper triangle of this matrix has and will be used.  
char  UPLO () const 
Returns character value of UPLO used by LAPACK routines.  
Mathematical Methods  
int  Scale (double ScalarA) 
Inplace scalarmatrix product A = a A.  
double  NormOne () const 
Computes the 1Norm of the this matrix.  
double  NormInf () const 
Computes the InfinityNorm of the this matrix.  
Deprecated methods (will be removed in later versions of this class)  
double  OneNorm () const 
Computes the 1Norm of the this matrix (identical to NormOne() method).  
double  InfNorm () const 
Computes the InfinityNorm of the this matrix (identical to NormInf() method).  
Public Member Functions  
void  CopyUPLOMat (bool Upper, double *A, int LDA, int NumRows) 
Private Attributes  
bool  Upper_ 
char  UPLO_ 
The Epetra_SerialSymDenseMatrix class enables the construction and use of realvalued, symmetric positive definite, doubleprecision dense matrices. It is built on the Epetra_SerialDenseMatrix class which in turn is built on the BLAS via the Epetra_BLAS class.
The Epetra_SerialSymDenseMatrix class is intended to provide fullfeatured support for solving linear and eigen system problems for symmetric positive definite matrices. It is written on top of BLAS and LAPACK and thus has excellent performance and numerical capabilities. Using this class, one can either perform simple factorizations and solves or apply all the tricks available in LAPACK to get the best possible solution for very illconditioned problems.
Epetra_SerialSymDenseMatrix vs. Epetra_LAPACK
The Epetra_LAPACK class provides access to most of the same functionality as Epetra_SerialSymDenseMatrix. The primary difference is that Epetra_LAPACK is a "thin" layer on top of LAPACK and Epetra_SerialSymDenseMatrix attempts to provide easy access to the more sophisticated aspects of solving dense linear and eigensystems.
Constructing Epetra_SerialSymDenseMatrix Objects
There are three Epetra_DenseMatrix constructors. The first constructs a zerosized object which should be made to appropriate length using the Shape() or Reshape() functions and then filled with the [] or () operators. The second is a constructor that accepts user data as a 2D array, the third is a copy constructor. The second constructor has two data access modes (specified by the Epetra_DataAccess argument):
Once a Epetra_SerialSymDenseMatrix is constructed, it is possible to view the data via access functions.
Once a Epetra_SerialSymDenseMatrix is constructed, several mathematical functions can be applied to the object. Specifically:
Counting floating point operations The Epetra_SerialSymDenseMatrix class has Epetra_CompObject as a base class. Thus, floating point operations are counted and accumulated in the Epetra_Flop object (if any) that was set using the SetFlopCounter() method in the Epetra_CompObject base class.
Definition at line 118 of file Epetra_SerialSymDenseMatrix.h.

Default constructor; defines a zero size object. Epetra_SerialSymDenseMatrix objects defined by the default constructor should be sized with the Shape() or Reshape() functions. Values should be defined by using the [] or ()operators. Note: By default the active part of the matrix is assumed to be in the lower triangle. To set the upper part as active, call SetUpper(). See Detailed Description section for further discussion. Definition at line 32 of file Epetra_SerialSymDenseMatrix.cpp. 

Set object values from twodimensional array.
Definition at line 40 of file Epetra_SerialSymDenseMatrix.cpp. 

Epetra_SerialSymDenseMatrix copy constructor.
Definition at line 48 of file Epetra_SerialSymDenseMatrix.cpp. 

Epetra_SerialSymDenseMatrix destructor.
Definition at line 55 of file Epetra_SerialSymDenseMatrix.cpp. 

Set dimensions of a Epetra_SerialSymDenseMatrix object; init values to zero.
Definition at line 180 of file Epetra_SerialSymDenseMatrix.h. 

Reshape a Epetra_SerialSymDenseMatrix object.
Definition at line 199 of file Epetra_SerialSymDenseMatrix.h. 

Specify that the lower triangle of the this matrix should be used.
Definition at line 203 of file Epetra_SerialSymDenseMatrix.h. 

Specify that the upper triangle of the this matrix should be used.
Definition at line 206 of file Epetra_SerialSymDenseMatrix.h. 

Returns true if upper triangle of this matrix has and will be used.
Definition at line 213 of file Epetra_SerialSymDenseMatrix.h. 

Returns character value of UPLO used by LAPACK routines.
Definition at line 216 of file Epetra_SerialSymDenseMatrix.h. 

Inplace scalarmatrix product A = a A. Scale a matrix, entrybyentry using the value ScalarA. This method is sensitive to the UPLO() parameter.
Reimplemented from Epetra_SerialDenseMatrix. Definition at line 130 of file Epetra_SerialSymDenseMatrix.cpp. 

Computes the 1Norm of the this matrix.
Reimplemented from Epetra_SerialDenseMatrix. Definition at line 87 of file Epetra_SerialSymDenseMatrix.cpp. 

Computes the InfinityNorm of the this matrix.
Reimplemented from Epetra_SerialDenseMatrix. Definition at line 92 of file Epetra_SerialSymDenseMatrix.cpp. 

Definition at line 59 of file Epetra_SerialSymDenseMatrix.cpp. 

Computes the 1Norm of the this matrix (identical to NormOne() method).
Reimplemented from Epetra_SerialDenseMatrix. Definition at line 255 of file Epetra_SerialSymDenseMatrix.h. 

Computes the InfinityNorm of the this matrix (identical to NormInf() method).
Reimplemented from Epetra_SerialDenseMatrix. Definition at line 258 of file Epetra_SerialSymDenseMatrix.h. 



Reshape a Epetra_SerialDenseMatrix object.


Definition at line 263 of file Epetra_SerialSymDenseMatrix.h. 

Definition at line 265 of file Epetra_SerialSymDenseMatrix.h. 