#include <Epetra_MsrMatrix.h>
Inheritance diagram for Epetra_MsrMatrix:
Public Member Functions | |
Constructors/Destructor | |
| Epetra_MsrMatrix (int *proc_config, AZ_MATRIX *Amat) | |
| Epetra_MsrMatrix constuctor using existing Aztec DMSR matrix. | |
| virtual | ~Epetra_MsrMatrix () |
| Epetra_MsrMatrix Destructor. | |
Extraction methods | |
| int | ExtractMyRowCopy (int MyRow, int Length, int &NumEntries, double *Values, int *Indices) const |
| Returns a copy of the specified local row in user-provided arrays. | |
| int | ExtractDiagonalCopy (Epetra_Vector &Diagonal) const |
| Returns a copy of the main diagonal in a user-provided vector. | |
Computational methods | |
| int | Multiply (bool TransA, const Epetra_MultiVector &X, Epetra_MultiVector &Y) const |
| Returns the result of a Epetra_MsrMatrix multiplied by a Epetra_MultiVector X in Y. | |
| int | Solve (bool Upper, bool Trans, bool UnitDiagonal, const Epetra_MultiVector &X, Epetra_MultiVector &Y) const |
| Returns the result of a Epetra_MsrMatrix multiplied by a Epetra_MultiVector X in Y. | |
| int | InvRowSums (Epetra_Vector &x) const |
| Computes the sum of absolute values of the rows of the Epetra_MsrMatrix, results returned in x. | |
| int | LeftScale (const Epetra_Vector &x) |
| Scales the Epetra_MsrMatrix on the left with a Epetra_Vector x. | |
| int | InvColSums (Epetra_Vector &x) const |
| Computes the sum of absolute values of the columns of the Epetra_MsrMatrix, results returned in x. | |
| int | RightScale (const Epetra_Vector &x) |
| Scales the Epetra_MsrMatrix on the right with a Epetra_Vector x. | |
Matrix Properties Query Methods | |
| bool | Filled () const |
| If FillComplete() has been called, this query returns true, otherwise it returns false. | |
| bool | LowerTriangular () const |
| If matrix is lower triangular, this query returns true, otherwise it returns false. | |
| bool | UpperTriangular () const |
| If matrix is upper triangular, this query returns true, otherwise it returns false. | |
Atribute access functions | |
| AZ_MATRIX * | Amat () const |
| Returns a pointer to the Aztec Msr matrix used to create this object. | |
| double | NormInf () const |
| Returns the infinity norm of the global matrix. | |
| double | NormOne () const |
| Returns the one norm of the global matrix. | |
| int | NumGlobalNonzeros () const |
| Returns the number of nonzero entries in the global matrix. | |
| int | NumGlobalRows () const |
| Returns the number of global matrix rows. | |
| int | NumGlobalCols () const |
| Returns the number of global matrix columns. | |
| int | NumGlobalDiagonals () const |
| Returns the number of global nonzero diagonal entries. | |
| int | NumMyNonzeros () const |
| Returns the number of nonzero entries in the calling processor's portion of the matrix. | |
| int | NumMyRows () const |
| Returns the number of matrix rows owned by the calling processor. | |
| int | NumMyCols () const |
| Returns the number of matrix columns owned by the calling processor. | |
| int | NumMyDiagonals () const |
| Returns the number of local nonzero diagonal entries. | |
| const Epetra_Map & | OperatorDomainMap () const |
| Returns the Epetra_Map object associated with the domain of this operator. | |
| const Epetra_Map & | OperatorRangeMap () const |
| Returns the Epetra_Map object associated with the range of this operator (same as domain). | |
| const Epetra_BlockMap & | Map () const |
| Implement the Epetra_SrcDistObjec::Map() function. | |
| const Epetra_Map & | RowMatrixRowMap () const |
| Returns the Row Map object needed for implementing Epetra_RowMatrix. | |
| const Epetra_Map & | RowMatrixColMap () const |
| Returns the Column Map object needed for implementing Epetra_RowMatrix. | |
| virtual const Epetra_Import * | RowMatrixImporter () const |
| Returns the Epetra_Import object that contains the import operations for distributed operations. | |
| const Epetra_Comm & | Comm () const |
| Returns a pointer to the Epetra_Comm communicator associated with this matrix. | |
I/O Methods | |
| virtual void | Print (ostream &os) const |
| Print method. | |
Additional methods required to support the Epetra_Operator interface | |
| const char * | Label () const |
| Returns a character string describing the operator. | |
| int | SetUseTranspose (bool UseTranspose) |
| If set true, transpose of this operator will be applied. | |
| int | Apply (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const |
| Returns the result of a Epetra_Operator applied to a Epetra_MultiVector X in Y. | |
| int | ApplyInverse (const Epetra_MultiVector &X, Epetra_MultiVector &Y) const |
| Returns the result of a Epetra_Operator inverse applied to an Epetra_MultiVector X in Y. | |
| virtual bool | HasNormInf () const |
| Returns true because this class can compute an Inf-norm. | |
| virtual bool | UseTranspose () const |
| Returns the current UseTranspose setting. | |
Additional methods required to implement RowMatrix interface | |
| int | NumMyRowEntries (int MyRow, int &NumEntries) const |
| Return the current number of values stored for the specified local row. | |
| int | MaxNumEntries () const |
| Returns the maximum of NumMyRowEntries() over all rows. | |
The Epetra_MsrMatrix provides basic support for existing Aztec users who have an investment in the Aztec DMSR matrix format. A user may pass an existing Aztec DMSR matrix to the constructor for this class. The data from the DMSR matrix will not be copied. Thus, any changes the user makes to the DMSR matrix data will be reflected in the associated Epetra_MsrMatrix object.
|
||||||||||||
|
Epetra_MsrMatrix constuctor using existing Aztec DMSR matrix. Creates a Epetra_MsrMatrix object by encapsulating an existing Aztec DMSR matrix. The Aztec matrix must come in as an AZ_MATRIX pointer, and AZ_transform must have called. Also, the AZ_matrix_type must be AZ_MSR_MATRIX. (If the matrix is stored in Amat, this information is contained in Amat->data_org[AZ_matrix_type].)
|
|
||||||||||||
|
Returns the result of a Epetra_Operator applied to a Epetra_MultiVector X in Y.
Implements Epetra_Operator. |
|
||||||||||||
|
Returns the result of a Epetra_Operator inverse applied to an Epetra_MultiVector X in Y. In this implementation, we use several existing attributes to determine how virtual method ApplyInverse() should call the concrete method Solve(). We pass in the UpperTriangular(), the Epetra_MsrMatrix::UseTranspose(), and NoDiagonal() methods. The most notable warning is that if a matrix has no diagonal values we assume that there is an implicit unit diagonal that should be accounted for when doing a triangular solve.
Implements Epetra_Operator. |
|
|
Returns a copy of the main diagonal in a user-provided vector.
Implements Epetra_RowMatrix. |
|
||||||||||||||||||||||||
|
Returns a copy of the specified local row in user-provided arrays.
Implements Epetra_RowMatrix. |
|
|
Computes the sum of absolute values of the columns of the Epetra_MsrMatrix, results returned in x. The vector x will return such that x[j] will contain the inverse of sum of the absolute values of the this matrix will be sca such that A(i,j) = x(j)*A(i,j) where i denotes the global row number of A and j denotes the global column number of A. Using the resulting vector from this function as input to RighttScale() will make the one norm of the resulting matrix exactly 1.
Implements Epetra_RowMatrix. |
|
|
Computes the sum of absolute values of the rows of the Epetra_MsrMatrix, results returned in x. The vector x will return such that x[i] will contain the inverse of sum of the absolute values of the this matrix will be scaled such that A(i,j) = x(i)*A(i,j) where i denotes the global row number of A and j denotes the global column number of A. Using the resulting vector from this function as input to LeftScale() will make the infinity norm of the resulting matrix exactly 1.
Implements Epetra_RowMatrix. |
|
|
Scales the Epetra_MsrMatrix on the left with a Epetra_Vector x. The this matrix will be scaled such that A(i,j) = x(i)*A(i,j) where i denotes the row number of A and j denotes the column number of A.
Implements Epetra_RowMatrix. |
|
||||||||||||||||
|
Returns the result of a Epetra_MsrMatrix multiplied by a Epetra_MultiVector X in Y.
Implements Epetra_RowMatrix. |
|
||||||||||||
|
Return the current number of values stored for the specified local row. Similar to NumMyEntries() except NumEntries is returned as an argument and error checking is done on the input value MyRow.
Implements Epetra_RowMatrix. |
|
|
Scales the Epetra_MsrMatrix on the right with a Epetra_Vector x. The this matrix will be scaled such that A(i,j) = x(j)*A(i,j) where i denotes the global row number of A and j denotes the global column number of A.
Implements Epetra_RowMatrix. |
|
|
If set true, transpose of this operator will be applied. This flag allows the transpose of the given operator to be used implicitly. Setting this flag affects only the Apply() and ApplyInverse() methods. If the implementation of this interface does not support transpose use, this method should return a value of -1.
Implements Epetra_Operator. |
|
||||||||||||||||||||||||
|
Returns the result of a Epetra_MsrMatrix multiplied by a Epetra_MultiVector X in Y.
Implements Epetra_RowMatrix. |
1.3.9.1