|
CppNoddy
0.92
|
A linear system class for vector right-hand sides. More...
#include <SparseLinearSystem.h>
Public Member Functions | |
| SparseLinearSystem (SparseMatrix< _Type > *Aptr, DenseVector< _Type > *Bptr, std::string which="native") | |
| Constructor for a sparse linear system object. More... | |
| ~SparseLinearSystem () | |
| Destructor for a linear system object. More... | |
| void | cleanup () |
| deallocates some objects More... | |
| void | solve () |
| Solve the sparse system. More... | |
| void | factorise () |
| Factorise the Ax=B system. More... | |
| void | solve_using_factorisation () |
| Resolve the same system using the same factorisation. More... | |
| void | temp_solve () |
| void | factorise () |
| void | solve_using_factorisation () |
| void | factorise () |
| void | solve_using_factorisation () |
A linear system class for vector right-hand sides.
The class is constructed for SPARSE problems of the form
![\[ A_{NxN} \,{\underline x}_i = B_{1xN} \]](form_0.png)
.
Definition at line 20 of file SparseLinearSystem.h.
| CppNoddy::SparseLinearSystem< _Type >::SparseLinearSystem | ( | SparseMatrix< _Type > * | Aptr, |
| DenseVector< _Type > * | Bptr, | ||
| std::string | which = "native" |
||
| ) |
Constructor for a sparse linear system object.
| Aptr | A pointer to the 'A matrix', an NxN double/complex sparse matrix |
| Bptr | A pointer to the 'B vector' a size N double/complex dense vector |
| which | A string that indicates which solver to use: native (default) pr petsc |
Definition at line 21 of file SparseLinearSystem.cpp.
| CppNoddy::SparseLinearSystem< _Type >::~SparseLinearSystem |
Destructor for a linear system object.
Definition at line 57 of file SparseLinearSystem.cpp.
| void CppNoddy::SparseLinearSystem< _Type >::cleanup |
deallocates some objects
Definition at line 62 of file SparseLinearSystem.cpp.
Referenced by main().
| void CppNoddy::SparseLinearSystem< _Type >::factorise | ( | ) |
Factorise the Ax=B system.
Referenced by main().
| void CppNoddy::SparseLinearSystem< double >::factorise | ( | ) |
Definition at line 93 of file SparseLinearSystem.cpp.
| void CppNoddy::SparseLinearSystem< std::complex< double > >::factorise | ( | ) |
Definition at line 301 of file SparseLinearSystem.cpp.
| void CppNoddy::SparseLinearSystem< _Type >::solve |
Solve the sparse system.
Definition at line 75 of file SparseLinearSystem.cpp.
Referenced by main().
| void CppNoddy::SparseLinearSystem< _Type >::solve_using_factorisation | ( | ) |
Resolve the same system using the same factorisation.
Referenced by main().
| void CppNoddy::SparseLinearSystem< double >::solve_using_factorisation | ( | ) |
Definition at line 242 of file SparseLinearSystem.cpp.
| void CppNoddy::SparseLinearSystem< std::complex< double > >::solve_using_factorisation | ( | ) |
Definition at line 432 of file SparseLinearSystem.cpp.
| void CppNoddy::SparseLinearSystem< _Type >::temp_solve | ( | ) |
1.9.5
© 2012
R.E. Hewitt