A class used to hold basic parameters for a matrix. More...
#include <MatrixParametersBase.h>

Public Member Functions | |
| AMP::AMP_MPI & | getComm () |
| Get the communicator for the matrix. | |
| uint64_t | getID () const |
| Get a unique id hash. | |
| std::shared_ptr< Variable > | getLeftVariable () const |
| std::shared_ptr< Variable > | getRightVariable () const |
| MatrixParametersBase ()=delete | |
| MatrixParametersBase (const AMP_MPI &comm) | |
| Constructor, variable names set to default. | |
| MatrixParametersBase (const AMP_MPI &comm, AMP::Utilities::Backend backend) | |
| Constructor, variable names set to default. | |
| MatrixParametersBase (const AMP_MPI &comm, std::shared_ptr< Variable > varLeft, std::shared_ptr< Variable > varRight) | |
| Constructor, variable names provided. | |
| MatrixParametersBase (const AMP_MPI &comm, std::shared_ptr< Variable > varLeft, std::shared_ptr< Variable > varRight, AMP::Utilities::Backend backend) | |
| Constructor, variable names provided. | |
| MatrixParametersBase (const MatrixParametersBase &other)=default | |
| MatrixParametersBase (int64_t fid, AMP::IO::RestartManager *manager) | |
| Read restart data from file. | |
| virtual void | registerChildObjects (AMP::IO::RestartManager *manager) const |
| Register any child objects. | |
| void | setLeftVariable (std::shared_ptr< Variable > var) |
| void | setRightVariable (std::shared_ptr< Variable > var) |
| virtual std::string | type () const |
| type of this object | |
| virtual void | writeRestart (int64_t fid) const |
| Write restart data to file. | |
| virtual | ~MatrixParametersBase ()=default |
| Deconstructor. | |
Public Attributes | |
| AMP::Utilities::Backend | d_backend = AMP::Utilities::Backend::Serial |
| uint64_t | d_hash = 0 |
Protected Attributes | |
| AMP_MPI | d_comm |
| std::shared_ptr< Variable > | d_VariableLeft |
| std::shared_ptr< Variable > | d_VariableRight |
A class used to hold basic parameters for a matrix.
Definition at line 14 of file MatrixParametersBase.h.
|
delete |
|
default |
|
inlineexplicit |
Constructor, variable names set to default.
| [in] | comm | Communicator for the matrix |
Definition at line 24 of file MatrixParametersBase.h.
|
inlineexplicit |
Constructor, variable names set to default.
| [in] | comm | Communicator for the matrix |
| [in] | backend | Acceleration backend for matrix operations |
Definition at line 37 of file MatrixParametersBase.h.
|
inlineexplicit |
Constructor, variable names provided.
| [in] | comm | Communicator for the matrix |
| [in] | varLeft | pointer to left variable |
| [in] | varRight | pointer to right variable |
Definition at line 51 of file MatrixParametersBase.h.
|
inlineexplicit |
Constructor, variable names provided.
| [in] | comm | Communicator for the matrix |
| [in] | varLeft | pointer to left variable |
| [in] | varRight | pointer to right variable |
| [in] | backend | Acceleration backend for matrix operations |
Definition at line 68 of file MatrixParametersBase.h.
|
virtualdefault |
Deconstructor.
| AMP::LinearAlgebra::MatrixParametersBase::MatrixParametersBase | ( | int64_t | fid, |
| AMP::IO::RestartManager * | manager | ||
| ) |
Read restart data from file.
| fid | File identifier to write |
| manager | Restart manager |
|
inline |
Get the communicator for the matrix.
Definition at line 90 of file MatrixParametersBase.h.
References d_comm.
|
inline |
|
inline |
Definition at line 96 of file MatrixParametersBase.h.
References d_VariableLeft.
|
inline |
Definition at line 98 of file MatrixParametersBase.h.
References d_VariableRight.
|
virtual |
Register any child objects.
This function will register child objects with the manager
| manager | Restart manager |
Reimplemented in AMP::LinearAlgebra::AMPCSRMatrixParameters< Config >, AMP::LinearAlgebra::MatrixParameters, and AMP::LinearAlgebra::RawCSRMatrixParameters< Config >.
|
inline |
Definition at line 92 of file MatrixParametersBase.h.
References d_VariableLeft.
|
inline |
Definition at line 94 of file MatrixParametersBase.h.
References d_VariableRight.
|
inlinevirtual |
type of this object
Reimplemented in AMP::LinearAlgebra::AMPCSRMatrixParameters< Config >, AMP::LinearAlgebra::MatrixParameters, and AMP::LinearAlgebra::RawCSRMatrixParameters< Config >.
Definition at line 87 of file MatrixParametersBase.h.
|
virtual |
Write restart data to file.
This function will write the mesh to an HDF5 file
| fid | File identifier to write |
Reimplemented in AMP::LinearAlgebra::AMPCSRMatrixParameters< Config >, AMP::LinearAlgebra::MatrixParameters, and AMP::LinearAlgebra::RawCSRMatrixParameters< Config >.
| AMP::Utilities::Backend AMP::LinearAlgebra::MatrixParametersBase::d_backend = AMP::Utilities::Backend::Serial |
Definition at line 136 of file MatrixParametersBase.h.
|
protected |
Definition at line 124 of file MatrixParametersBase.h.
Referenced by getComm().
| uint64_t AMP::LinearAlgebra::MatrixParametersBase::d_hash = 0 |
Definition at line 139 of file MatrixParametersBase.h.
Referenced by getID().
|
protected |
The variable for the left vector ( For \(\mathbf{y}^T\mathbf{Ax}\), \(y\) is a left vector )
Definition at line 128 of file MatrixParametersBase.h.
Referenced by getLeftVariable(), and setLeftVariable().
|
protected |
The variable for the right vector ( For \(\mathbf{y}^T\mathbf{Ax}\), \(x\) is a right vector )
Definition at line 132 of file MatrixParametersBase.h.
Referenced by getRightVariable(), and setRightVariable().
|
Advanced Multi-Physics (AMP) Oak Ridge National Laboratory Idaho National Laboratory Los Alamos National Laboratory |
This page automatically produced from the source code by Last updated: Tue Mar 10 2026 13:06:42. Comments on this page |