15 #include "Galeri_Maps.h"
16 #include "Galeri_CrsMatrices.h"
17 #include "Galeri_Utils.h"
19 using namespace Galeri;
25 int main(
int argc,
char *argv[])
28 MPI_Init(&argc, &argv);
35 GaleriList.
set(
"n", 5);
37 Epetra_Map* Map = CreateMap(
"Random", Comm, GaleriList);
59 double norm = ComputeNorm(Matrix, &x_exact, &b);
60 if (Comm.
MyPID() == 0)
61 std::cout <<
"norm = " << norm << std::endl;
Amesos_Klu: A serial, unblocked code ideal for getting started and for very sparse matrices...
int Solve()
Solves A X = B (or AT x = B)
Amesos_TestRowMatrix: a class to test Epetra_RowMatrix based codes.
ParameterList & set(std::string const &name, T &&value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
virtual int Multiply(bool TransA, const Epetra_MultiVector &X, Epetra_MultiVector &Y) const
Returns the result of a Epetra_RowMatrix multiplied by a Epetra_MultiVector X in Y.
#define AMESOS_CHK_ERR(a)
int main(int argc, char *argv[])
int NumericFactorization()
Performs NumericFactorization on the matrix A.
int CreateCrsMatrix(const char *in_filename, const Epetra_Comm &Comm, Epetra_Map *&readMap, const bool transpose, const bool distribute, bool &symmetric, Epetra_CrsMatrix *&Matrix)
int SymbolicFactorization()
Performs SymbolicFactorization on the matrix A.