#include <Epetra_SerialSymDenseMatrix.h>
Inheritance diagram for Epetra_SerialSymDenseMatrix:
Public Member Functions | |
void | CopyUPLOMat (bool Upper, double *A, int LDA, int NumRows) |
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 two-dimensional 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. | |
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 scalar-matrix product A = a A. | |
double | NormOne () const |
Computes the 1-Norm of the this matrix. | |
double | NormInf () const |
Computes the Infinity-Norm of the this matrix. | |
Deprecated methods (will be removed in later versions of this class). | |
double | OneNorm () const |
Computes the 1-Norm of the this matrix (identical to NormOne() method). | |
double | InfNorm () const |
Computes the Infinity-Norm of the this matrix (identical to NormInf() method). |
The Epetra_SerialSymDenseMatrix class enables the construction and use of real-valued, symmetric positive definite, double-precision 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 full-featured 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 ill-conditioned 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 zero-sized 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.
|
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. |
|
Set object values from two-dimensional array.
|
|
Computes the 1-Norm of the this matrix.
Reimplemented from Epetra_SerialDenseMatrix. |
|
Computes the 1-Norm of the this matrix (identical to NormOne() method).
Reimplemented from Epetra_SerialDenseMatrix. |
|
Reshape a Epetra_SerialSymDenseMatrix object.
|
|
Inplace scalar-matrix product A = a A. Scale a matrix, entry-by-entry using the value ScalarA. This method is sensitive to the UPLO() parameter.
Reimplemented from Epetra_SerialDenseMatrix. |
|
Set dimensions of a Epetra_SerialSymDenseMatrix object; init values to zero.
|