|
CppNoddy
0.92
|
Example of a simple "banded" inear solver using 
#include <cassert>#include <Timer.h>#include <Types.h>#include <Utility.h>#include <DenseLinearSystem.h>#include <BandedLinearSystem.h>#include "../Utils_Fill.h"Go to the source code of this file.
Functions | |
| int | main () |
Example of a simple "banded" inear solver using 
Then a penta-diagonal problem is solved using the dense, banded and sparse containers. The native linear Gaussian elimination solvers are used unless the PETSC_D/Z compiler options are used, in which case the linear solver phase calls the PETSc library as appropriate.
Definition in file MatrixBandedSolves.cpp.
| int main | ( | ) |
Definition at line 24 of file MatrixBandedSolves.cpp.
References Utils_Fill::fill_band(), CppNoddy::BandedMatrix< _Type >::noffdiag(), CppNoddy::BandedLinearSystem< _Type >::solve(), CppNoddy::DenseLinearSystem< _Type >::solve(), CppNoddy::DenseVector< _Type >::sub(), and CppNoddy::DenseVector< _Type >::two_norm().
1.9.5
© 2012
R.E. Hewitt