43 #include "HYPRE_IJ_mv.h"
81 for(
int i = 0; i < Matrix->
NumMyRows(); i++){
88 ierr += Matrix->
ExtractMyRowCopy(i, entries, numentries, &Values[0], &Indices[0]);
91 for(
int j = 0; j < numentries; j++){
108 ierr += Matrix->
Multiply(
false, X, Y);
127 ierr += Matrix->
Multiply(
false, X, Y1);
128 ierr += TestMat->
Multiply(
false, X, Y2);
132 ierr += Matrix->
Multiply(
false, Y1, X);
133 ierr += TestMat->
Multiply(
false, Y1, Y2);
137 ierr += Matrix->
Multiply(
false, Y2, X);
138 ierr += TestMat->
Multiply(
false, Y2, Y1);
158 ierr += Matrix->
Multiply(
true, X, Y1);
159 ierr += TestMat->
Multiply(
true, X, Y2);
261 double norm1 = Matrix->
NormInf();
262 double norm2 = TestMat->
NormInf();
273 double norm1 = Matrix->
NormOne();
274 double norm2 = TestMat->
NormOne();
464 Matrix->
Solve(
false,
false,
false, RHS, X);
virtual const Epetra_Map & RowMatrixRowMap() const
virtual int InvColSums(Epetra_Vector &x) const
virtual double NormOne() const
virtual int NumMyDiagonals() const
int ExtractDiagonalCopy(Epetra_Vector &Diagonal) const
virtual int ExtractDiagonalCopy(Epetra_Vector &Diagonal) const
int Multiply(bool TransA, const Epetra_Vector &x, Epetra_Vector &y) const
int LeftScale(const Epetra_Vector &X)
Scales the EpetraExt_HypreIJMatrix on the left with a Epetra_Vector x.
#define TEST_EQUALITY_CONST(v1, v2)
int NumGlobalRows() const
virtual bool Filled() const
int Solve(bool Upper, bool Trans, bool UnitDiagonal, const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Returns the result of a EpetraExt_HypreIJMatrix solving a Epetra_MultiVector X in Y...
int NumGlobalDiagonals() const
const Epetra_Map & RowMatrixRowMap() const
bool EquivalentVectors(Epetra_MultiVector &Y1, Epetra_MultiVector &Y2, const double tol)
virtual int InvRowSums(Epetra_Vector &x) const
virtual int NumGlobalNonzeros() const
int NumMyDiagonals() const
bool EquivalentMatrices(Epetra_RowMatrix &HypreMatrix, Epetra_RowMatrix &CrsMatrix, const double tol)
int Multiply(bool TransA, const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Returns the result of a EpetraExt_HypreIJMatrix multiplied by a Epetra_MultiVector X in Y...
int InvColSums(Epetra_Vector &x) const
int NumMyRowEntries(int MyRow, int &NumEntries) const
Return the current number of values stored for the specified local row.
virtual int MaxNumEntries() const
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 double NormInf() const
virtual int NumMyNonzeros() const
int MaxNumEntries() const
Epetra_CrsMatrix * newCrsMatrix(EpetraExt_HypreIJMatrix &Matrix)
virtual int NumGlobalRows() const
int InvRowSums(Epetra_Vector &x) const
int NumGlobalNonzeros() const
int NumGlobalCols() const
virtual const Epetra_Map & RowMatrixColMap() const
void resize(size_type new_size, const value_type &x=value_type())
int RightScale(const Epetra_Vector &X)
Scales the EpetraExt_HypreIJMatrix on the right with a Epetra_Vector x.
int LeftScale(const Epetra_Vector &x)
virtual int NumGlobalCols() const
#define TEST_FLOATING_EQUALITY(v1, v2, tol)
const Epetra_Map & RowMatrixColMap() const
TEUCHOS_UNIT_TEST(EpetraExt_hypre, Construct)
virtual int NumMyRows() const
virtual int NumMyCols() const
int ApplyInverse(const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
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.
EpetraExt_HypreIJMatrix * newHypreMatrix(const int N, const int type)
#define TEST_EQUALITY(v1, v2)
int SetParameter(Hypre_Chooser chooser, int(*pt2Func)(HYPRE_Solver, int), int parameter)
Set a parameter that takes a single int.
int RightScale(const Epetra_Vector &x)
virtual int NumGlobalDiagonals() const
int NumMyNonzeros() const