Normalize a linear system. More...
#include <core/alien/expression/normalization/NormalizeOpt.h>
Classes | |
| class | LU |
| LU normalization. More... | |
| class | Op |
| Normalize operator. More... | |
| class | Op2 |
| Normalize operator for composite matrices. More... | |
Public Types | |
| enum | eAlgoType { StdLU , EigenLU } |
| Type of algorithm. More... | |
| enum | eOptType { SumFirstEq } |
| Type of the options. More... | |
| enum | eErrorType { NoError , PivotError , WithErrors } |
| Type of the error. More... | |
| typedef SimpleCSRMatrix< Arccore::Real > | MatrixImpl |
| Type of the matrix implementation. | |
| typedef SimpleCSRVector< Arccore::Real > | VectorImpl |
| Type of the vector implementation. | |
Public Member Functions | |
| NormalizeOpt () | |
| Constructor. | |
| virtual | ~NormalizeOpt () |
| Free resources. | |
| void | setAlgo (eAlgoType algo) |
| Set the type of algorithm. | |
| void | setOpt (eOptType opt, bool flag) |
| Set the options. | |
| eErrorType | normalize (IMatrix &matrix, IVector &vector) const |
| Normalize the linear system. | |
| eErrorType | normalize (CompositeMatrix &matrix, CompositeVector &vector, ConstArrayView< Integer > eq_ids) const |
| Normalize a composite linear system. | |
Private Member Functions | |
| eErrorType | _normalize (MatrixImpl &matrix, VectorImpl &vector) const |
| Normalize a linear system. | |
| eErrorType | _normalize (MatrixImpl &matrix, MatrixImpl &matrix2, bool trans, ConstArrayView< Integer > eq_ids, VectorImpl &vector) const |
| Normalize a linear system. | |
| eErrorType | _normalize (MatrixImpl &matrix, Arccore::ConstArrayView< Arccore::Integer > eq_ids, MatrixImpl &matrix2, bool trans, VectorImpl &vector) const |
| Normalize a linear system. | |
Private Attributes | |
| eAlgoType | m_algo |
| The algorithm. | |
| bool | m_sum_first_eq |
| Flag to sum the fist equation. | |
Normalize a linear system.
Definition at line 32 of file NormalizeOpt.h.
| typedef SimpleCSRMatrix<Arccore::Real> Alien::NormalizeOpt::MatrixImpl |
Type of the matrix implementation.
Definition at line 57 of file NormalizeOpt.h.
| typedef SimpleCSRVector<Arccore::Real> Alien::NormalizeOpt::VectorImpl |
Type of the vector implementation.
Definition at line 59 of file NormalizeOpt.h.
Type of algorithm.
Definition at line 36 of file NormalizeOpt.h.
Type of the error.
Definition at line 49 of file NormalizeOpt.h.
Type of the options.
Definition at line 43 of file NormalizeOpt.h.
| Alien::NormalizeOpt::NormalizeOpt | ( | ) |
|
inlinevirtual |
Free resources.
Definition at line 65 of file NormalizeOpt.h.
|
private |
Normalize a linear system.
| [in] | matrix | The first submatrix |
| [in] | eq_ids | The ids of the equations |
| [in] | matrix2 | The second submatrix |
| [in] | trans | Whether or not the matrix is transposed |
| [in] | vector | The vector |
|
private |
Normalize a linear system.
| [in] | matrix | The first submatrix |
| [in] | matrix2 | The second submatrix |
| [in] | trans | Whether or not the matrix is transposed |
| [in] | eq_ids | The ids of the equations |
| [in] | vector | The vector |
Definition at line 599 of file NormalizeOpt.cc.
References Alien::IVectorImpl::block(), m_algo, m_sum_first_eq, Alien::NormalizeOpt::Op2::multInvDiag(), and Alien::Block::size().
|
private |
Normalize a linear system.
| [in] | matrix | The matrix |
| [in] | vector | The vector |
Definition at line 280 of file NormalizeOpt.cc.
References Alien::IMatrixImpl::block(), m_algo, m_sum_first_eq, Alien::NormalizeOpt::Op::multInvDiag(), and Alien::Block::size().
Referenced by normalize(), and normalize().
| NormalizeOpt::eErrorType Alien::NormalizeOpt::normalize | ( | CompositeMatrix & | matrix, |
| CompositeVector & | vector, | ||
| ConstArrayView< Integer > | eq_ids ) const |
Normalize a composite linear system.
| [in] | matrix | The composite matrix |
| [in] | vector | The composite vector |
| [in] | eq_ids | The ids of the equations |
Definition at line 75 of file NormalizeOpt.cc.
References _normalize(), Alien::MultiMatrixImpl::get(), Alien::MultiVectorImpl::get(), Alien::CompositeMatrix::impl(), and Alien::CompositeVector::impl().
| NormalizeOpt::eErrorType Alien::NormalizeOpt::normalize | ( | IMatrix & | matrix, |
| IVector & | vector ) const |
Normalize the linear system.
| [in] | matrix | The matrix |
| [in] | vector | The vector |
Definition at line 64 of file NormalizeOpt.cc.
References _normalize(), Alien::MultiMatrixImpl::get(), Alien::MultiVectorImpl::get(), Alien::IMatrix::impl(), and Alien::IVector::impl().
| void Alien::NormalizeOpt::setAlgo | ( | eAlgoType | algo | ) |
Set the type of algorithm.
| [in] | algo | The type of algorithm |
Definition at line 40 of file NormalizeOpt.cc.
References m_algo.
| void Alien::NormalizeOpt::setOpt | ( | eOptType | opt, |
| bool | flag ) |
Set the options.
| [in] | opt | The option |
| [in] | flag | Whether or not the option is activated |
Definition at line 48 of file NormalizeOpt.cc.
References m_sum_first_eq.
|
private |
The algorithm.
Definition at line 138 of file NormalizeOpt.h.
Referenced by _normalize(), _normalize(), NormalizeOpt(), and setAlgo().
|
private |
Flag to sum the fist equation.
Definition at line 140 of file NormalizeOpt.h.
Referenced by _normalize(), _normalize(), NormalizeOpt(), and setOpt().