

Public Member Functions | |
| def | __init__ |
| def | Set |
| def | GetMatrix |
| def | GetMatrixRef |
| def | GetExactSolution |
| def | GetStartingSolution |
| def | GetRHS |
| def | GetMap |
| def | GetMapRef |
| def | GetLinearProblem |
| def | ComputeResidual |
| def | ComputeDiffBetweenStartingAndExactSolutions |
| def | PrintMatrixAndVectors |
| def | GetCartesianCoordinates |
| def | WriteMatrix |
| def | __init__ |
| def | Set |
| def | GetMatrix |
| def | GetMatrixRef |
| def | GetExactSolution |
| def | GetStartingSolution |
| def | GetRHS |
| def | GetMap |
| def | GetMapRef |
| def | GetLinearProblem |
| def | ComputeResidual |
| def | ComputeDiffBetweenStartingAndExactSolutions |
| def | PrintMatrixAndVectors |
| def | GetCartesianCoordinates |
| def | WriteMatrix |
Public Attributes | |
| this | |
Proxy of C++ Trilinos_Util::CrsMatrixGallery class
| def PyTrilinos::TriUtils::CrsMatrixGallery::__init__ | ( | self, | ||
| args | ||||
| ) |
__init__(self, string name, Comm comm) -> CrsMatrixGallery __init__(self, string name, Map map) -> CrsMatrixGallery Trilinos_Util::CrsMatrixGallery::CrsMatrixGallery(const string name, const Epetra_Map &map) Creates an Triutils_Gallery object using a given map. Create a Triutils_Gallery object using an Epetra_Map. Problem size must match the elements in map. Parameters: ----------- In: name - definition of the problem to be created. In: map - Epetra_Map
Reimplemented in PyTrilinos::TriUtils::VbrMatrixGallery, and PyTrilinos::TriUtils::VbrMatrixGallery.
| def PyTrilinos::TriUtils::CrsMatrixGallery::__init__ | ( | self, | ||
| args | ||||
| ) |
__init__(self, string name, Comm comm) -> CrsMatrixGallery __init__(self, string name, Map map) -> CrsMatrixGallery Trilinos_Util::CrsMatrixGallery::CrsMatrixGallery(const string name, const Epetra_Map &map) Creates an Triutils_Gallery object using a given map. Create a Triutils_Gallery object using an Epetra_Map. Problem size must match the elements in map. Parameters: ----------- In: name - definition of the problem to be created. In: map - Epetra_Map
Reimplemented in PyTrilinos::TriUtils::VbrMatrixGallery, and PyTrilinos::TriUtils::VbrMatrixGallery.
| def PyTrilinos::TriUtils::CrsMatrixGallery::ComputeDiffBetweenStartingAndExactSolutions | ( | self, | ||
| args | ||||
| ) |
ComputeDiffBetweenStartingAndExactSolutions(self, double residual) void Trilinos_Util::CrsMatrixGallery::ComputeDiffBetweenStartingAndExactSolutions(double *residual) Computes the 2-norm of the difference between the starting solution and the exact solution.
| def PyTrilinos::TriUtils::CrsMatrixGallery::ComputeDiffBetweenStartingAndExactSolutions | ( | self, | ||
| args | ||||
| ) |
ComputeDiffBetweenStartingAndExactSolutions(self, double residual) void Trilinos_Util::CrsMatrixGallery::ComputeDiffBetweenStartingAndExactSolutions(double *residual) Computes the 2-norm of the difference between the starting solution and the exact solution.
| def PyTrilinos::TriUtils::CrsMatrixGallery::ComputeResidual | ( | self, | ||
| args | ||||
| ) |
ComputeResidual(self, double residual) void Trilinos_Util::CrsMatrixGallery::ComputeResidual(double *residual) Computes the 2-norm of the residual.
| def PyTrilinos::TriUtils::CrsMatrixGallery::ComputeResidual | ( | self, | ||
| args | ||||
| ) |
ComputeResidual(self, double residual) void Trilinos_Util::CrsMatrixGallery::ComputeResidual(double *residual) Computes the 2-norm of the residual.
| def PyTrilinos::TriUtils::CrsMatrixGallery::GetCartesianCoordinates | ( | self, | ||
| args | ||||
| ) |
GetCartesianCoordinates(self, double x, double y, double z) void Trilinos_Util::CrsMatrixGallery::GetCartesianCoordinates(double *&x, double *&y, double *&z) Get pointers to double vectors containing coordinates of points.
| def PyTrilinos::TriUtils::CrsMatrixGallery::GetCartesianCoordinates | ( | self, | ||
| args | ||||
| ) |
GetCartesianCoordinates(self, double x, double y, double z) void Trilinos_Util::CrsMatrixGallery::GetCartesianCoordinates(double *&x, double *&y, double *&z) Get pointers to double vectors containing coordinates of points.
| def PyTrilinos::TriUtils::CrsMatrixGallery::GetExactSolution | ( | self, | ||
| args | ||||
| ) |
GetExactSolution(self) -> Epetra_MultiVector
Epetra_MultiVector
* Trilinos_Util::CrsMatrixGallery::GetExactSolution()
Returns a pointer to the exact solution.
Returns a pointer to the exact solution.
Some choices are available to define the exact solution, using
Set("exact solution", value). value can be: constant: the exact
solution vector is made up of 1's.
random: a random solution vector
linear: value at node i is defined as alpha*i. The double value alpha
can be set via Set("alpha",DoubleVal).
| def PyTrilinos::TriUtils::CrsMatrixGallery::GetExactSolution | ( | self, | ||
| args | ||||
| ) |
GetExactSolution(self) -> Epetra_MultiVector
Epetra_MultiVector
* Trilinos_Util::CrsMatrixGallery::GetExactSolution()
Returns a pointer to the exact solution.
Returns a pointer to the exact solution.
Some choices are available to define the exact solution, using
Set("exact solution", value). value can be: constant: the exact
solution vector is made up of 1's.
random: a random solution vector
linear: value at node i is defined as alpha*i. The double value alpha
can be set via Set("alpha",DoubleVal).
| def PyTrilinos::TriUtils::CrsMatrixGallery::GetLinearProblem | ( | self, | ||
| args | ||||
| ) |
GetLinearProblem(self) -> LinearProblem Epetra_LinearProblem * Trilinos_Util::CrsMatrixGallery::GetLinearProblem() Returns a pointer to Epetra_LinearProblem.
| def PyTrilinos::TriUtils::CrsMatrixGallery::GetLinearProblem | ( | self, | ||
| args | ||||
| ) |
GetLinearProblem(self) -> LinearProblem Epetra_LinearProblem * Trilinos_Util::CrsMatrixGallery::GetLinearProblem() Returns a pointer to Epetra_LinearProblem.
| def PyTrilinos::TriUtils::CrsMatrixGallery::GetMap | ( | self, | ||
| args | ||||
| ) |
GetMap(self) -> Map const Epetra_Map * Trilinos_Util::CrsMatrixGallery::GetMap() Returns a pointer the internally stored Map.
| def PyTrilinos::TriUtils::CrsMatrixGallery::GetMap | ( | self, | ||
| args | ||||
| ) |
GetMap(self) -> Map const Epetra_Map * Trilinos_Util::CrsMatrixGallery::GetMap() Returns a pointer the internally stored Map.
| def PyTrilinos::TriUtils::CrsMatrixGallery::GetMapRef | ( | self, | ||
| args | ||||
| ) |
GetMapRef(self) -> Map const Epetra_Map & Trilinos_Util::CrsMatrixGallery::GetMapRef()
| def PyTrilinos::TriUtils::CrsMatrixGallery::GetMapRef | ( | self, | ||
| args | ||||
| ) |
GetMapRef(self) -> Map const Epetra_Map & Trilinos_Util::CrsMatrixGallery::GetMapRef()
| def PyTrilinos::TriUtils::CrsMatrixGallery::GetMatrix | ( | self, | ||
| args | ||||
| ) |
GetMatrix(self) -> CrsMatrix Epetra_CrsMatrix * Trilinos_Util::CrsMatrixGallery::GetMatrix() Returns a pointer to the CrsMatrix.
| def PyTrilinos::TriUtils::CrsMatrixGallery::GetMatrix | ( | self, | ||
| args | ||||
| ) |
GetMatrix(self) -> CrsMatrix Epetra_CrsMatrix * Trilinos_Util::CrsMatrixGallery::GetMatrix() Returns a pointer to the CrsMatrix.
| def PyTrilinos::TriUtils::CrsMatrixGallery::GetMatrixRef | ( | self, | ||
| args | ||||
| ) |
GetMatrixRef(self) -> CrsMatrix Epetra_CrsMatrix & Trilinos_Util::CrsMatrixGallery::GetMatrixRef()
| def PyTrilinos::TriUtils::CrsMatrixGallery::GetMatrixRef | ( | self, | ||
| args | ||||
| ) |
GetMatrixRef(self) -> CrsMatrix Epetra_CrsMatrix & Trilinos_Util::CrsMatrixGallery::GetMatrixRef()
| def PyTrilinos::TriUtils::CrsMatrixGallery::GetRHS | ( | self, | ||
| args | ||||
| ) |
GetRHS(self) -> Epetra_MultiVector Epetra_MultiVector * Trilinos_Util::CrsMatrixGallery::GetRHS() Returns a pointer to the rhs corresponding to the selected exact solution.
| def PyTrilinos::TriUtils::CrsMatrixGallery::GetRHS | ( | self, | ||
| args | ||||
| ) |
GetRHS(self) -> Epetra_MultiVector Epetra_MultiVector * Trilinos_Util::CrsMatrixGallery::GetRHS() Returns a pointer to the rhs corresponding to the selected exact solution.
| def PyTrilinos::TriUtils::CrsMatrixGallery::GetStartingSolution | ( | self, | ||
| args | ||||
| ) |
GetStartingSolution(self) -> Epetra_MultiVector
Epetra_MultiVector *
Trilinos_Util::CrsMatrixGallery::GetStartingSolution()
Returns a pointer to the starting solution (typically, for HB
problems).
Returns a pointer to the starting solution. This is typically used
while reading a HB problem. However, the user can set a starting
solution using Set("starting solution", "value"). Value can be
zero
random
| def PyTrilinos::TriUtils::CrsMatrixGallery::GetStartingSolution | ( | self, | ||
| args | ||||
| ) |
GetStartingSolution(self) -> Epetra_MultiVector
Epetra_MultiVector *
Trilinos_Util::CrsMatrixGallery::GetStartingSolution()
Returns a pointer to the starting solution (typically, for HB
problems).
Returns a pointer to the starting solution. This is typically used
while reading a HB problem. However, the user can set a starting
solution using Set("starting solution", "value"). Value can be
zero
random
| def PyTrilinos::TriUtils::CrsMatrixGallery::PrintMatrixAndVectors | ( | self, | ||
| args | ||||
| ) |
PrintMatrixAndVectors(self, ostream os) PrintMatrixAndVectors(self) void Trilinos_Util::CrsMatrixGallery::PrintMatrixAndVectors()
| def PyTrilinos::TriUtils::CrsMatrixGallery::PrintMatrixAndVectors | ( | self, | ||
| args | ||||
| ) |
PrintMatrixAndVectors(self, ostream os) PrintMatrixAndVectors(self) void Trilinos_Util::CrsMatrixGallery::PrintMatrixAndVectors()
| def PyTrilinos::TriUtils::CrsMatrixGallery::Set | ( | self, | ||
| args | ||||
| ) |
Set(self, string parameter, int value) -> int Set(self, string parameter, string value) -> int Set(self, string parameter, double value) -> int Set(self, string parameter, Epetra_Vector value) -> int Set(self, Trilinos_Util::CommandLineParser CLP) -> int int Trilinos_Util::CrsMatrixGallery::Set(Trilinos_Util::CommandLineParser &CLP) Sets gallery options using values passed from the shell.
| def PyTrilinos::TriUtils::CrsMatrixGallery::Set | ( | self, | ||
| args | ||||
| ) |
Set(self, string parameter, int value) -> int Set(self, string parameter, string value) -> int Set(self, string parameter, double value) -> int Set(self, string parameter, Epetra_Vector value) -> int Set(self, Trilinos_Util::CommandLineParser CLP) -> int int Trilinos_Util::CrsMatrixGallery::Set(Trilinos_Util::CommandLineParser &CLP) Sets gallery options using values passed from the shell.
| def PyTrilinos::TriUtils::CrsMatrixGallery::WriteMatrix | ( | self, | ||
| args | ||||
| ) |
WriteMatrix(self, string FileName, bool UseSparse = True) -> int int Trilinos_Util::CrsMatrixGallery::WriteMatrix(const string &FileName, const bool UseSparse=true) Print matrix on file in MATLAB format.
| def PyTrilinos::TriUtils::CrsMatrixGallery::WriteMatrix | ( | self, | ||
| args | ||||
| ) |
WriteMatrix(self, string FileName, bool UseSparse = True) -> int int Trilinos_Util::CrsMatrixGallery::WriteMatrix(const string &FileName, const bool UseSparse=true) Print matrix on file in MATLAB format.
1.5.9