#include <ExampleTridiagSpmdLinearOp.hpp>
Inheritance diagram for ExampleTridiagSpmdLinearOp< Scalar >:
Public Member Functions | |
| ExampleTridiagSpmdLinearOp () | |
| Construct to uninitialized. | |
| ExampleTridiagSpmdLinearOp (const Teuchos::RefCountPtr< const Teuchos::Comm< Thyra::Index > > &comm, const Thyra::Index localDim, const Scalar lower[], const Scalar diag[], const Scalar upper[]) | |
Calls initialize(). | |
| void | initialize (const Teuchos::RefCountPtr< const Teuchos::Comm< Thyra::Index > > &comm, 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
processes then the arrays lower[], diag[], and upper[] of dimension localDim-1, localDim and localDim-1 respectively are stored (see initialize()).
If there
processes then locally this class stores slightly different arrays of data depending on which process this is and process-to-process 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 133 of file ExampleTridiagSpmdLinearOp.hpp.
|
|||||||||
|
Construct to uninitialized.
Definition at line 152 of file ExampleTridiagSpmdLinearOp.hpp. |
|
||||||||||||||||||||||||||||
|
Calls
Definition at line 155 of file ExampleTridiagSpmdLinearOp.hpp. |
|
||||||||||||||||||||||||||||
|
Initialize given lower, diagonal and upper arrays of data.
Postconditions:
Definition at line 179 of file ExampleTridiagSpmdLinearOp.hpp. |
1.3.9.1