#include <MPITridiagLinearOp.hpp>
Inheritance diagram for MPITridiagLinearOp< Scalar >:
Public Member Functions | |
| MPITridiagLinearOp () | |
| Construct to uninitialized. | |
| MPITridiagLinearOp (MPI_Comm mpiComm, const Thyra::Index localDim, const Scalar lower[], const Scalar diag[], const Scalar upper[]) | |
Calls initialize(). | |
| void | initialize (MPI_Comm mpiComm, const Thyra::Index localDim, const Scalar lower[], const Scalar diag[], const Scalar upper[]) |
This subclass represents a linear operator for tridiagonal matrices of the global form:
If there is only
processor the arrays lower[], diag[], and upper[] of dimension localDim-1, localDim and localDim-1 respectively are stored (see initialize()).
If there
processors then locally this class stores slightly different arrays of data depending on which processor this is and processor-to-processor communication is required.
local vector elements the following sub-matrix is stored:
In this case, arrays lower[], diag[], and upper[] of dimension localDim-1, localDim and localDim respectively are stored (see initialize()).
, where
, with local offset
and
local vector elements the following sub-matrix is stored:
In this case, arrays lower[], diag[], and upper[] of dimension localDim, localDim and localDim respectively are stored (see initialize()).
with local offset
and
local vector elements the following sub-matrix is stored:
In this case, arrays lower[], diag[], and upper[] of dimension localDim, localDim and localDim-1 respectively are stored (see initialize()).
Note, this is just an example class and for the sake of simplified presentation the private members are listed first and in-class declarations are used which are not a good idea in production code. However, in this case, they make the example code easier to read and maintaining encapsulation and a well defined interface are unnecessary here.
See the source code for this simple example by clicking on the link to the definition below.
Definition at line 134 of file MPITridiagLinearOp.hpp.
|
|||||||||
|
Construct to uninitialized.
Definition at line 153 of file MPITridiagLinearOp.hpp. |
|
||||||||||||||||||||||||||||
|
Calls
Definition at line 156 of file MPITridiagLinearOp.hpp. |
|
||||||||||||||||||||||||||||
|
Initialize given lower, diagonal and upper arrays of data.
Postconditions:
Definition at line 176 of file MPITridiagLinearOp.hpp. |
1.3.9.1