#include <ExampleTridiagSerialLinearOp.hpp>
Inheritance diagram for ExampleTridiagSerialLinearOp< Scalar >:
Public Member Functions | |
| ExampleTridiagSerialLinearOp () | |
| Construct to uninitialized. | |
| ExampleTridiagSerialLinearOp (const Thyra::Index dim, const Scalar lower[], const Scalar diag[], const Scalar upper[]) | |
Calls initialize(). | |
| void | initialize (const Thyra::Index dim, const Scalar lower[], const Scalar diag[], const Scalar upper[]) |
This subclass form a linear operator for tridiagonal matrices of the form:
given the arrays lower[], diag[], and upper[] of dimension dim-1, dim and dim-1 respectively (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.
ExampleTridiagSerialLinearOp.hpp, sillyCgSolve_serial.cpp, and sillyPowerMethod_serial.cpp.
Definition at line 69 of file ExampleTridiagSerialLinearOp.hpp.
|
|||||||||
|
Construct to uninitialized.
Definition at line 83 of file ExampleTridiagSerialLinearOp.hpp. |
|
||||||||||||||||||||||||
|
Calls
Definition at line 86 of file ExampleTridiagSerialLinearOp.hpp. |
|
||||||||||||||||||||||||
|
Initialize given lower, diagonal and upper arrays of data.
Postconditions:
Definition at line 105 of file ExampleTridiagSerialLinearOp.hpp. |
1.3.9.1