#include <matrix_diagonal.h>
◆ codomain_function_type
template<typename M , typename X , typename Y = X>
◆ domain_function_type
template<typename M , typename X , typename Y = X>
◆ matrix_type
template<typename M , typename X , typename Y = X>
◆ mo_type
template<typename M , typename X , typename Y = X>
◆ MatrixDiagonal()
template<typename M , typename X , typename Y = X>
◆ apply()
template<typename M , typename X , typename Y = X>
This method applies the operator, i.e. f = L*u (or d = J(u)*c in iterative schemes). Note, that the operator must have been initialized once before this method can be used.
- Parameters
-
[in] | u | domain function |
[out] | f | codomain function |
- Returns
- bool success flag
Implements ug::ILinearOperator< X, Y >.
References ug::MatrixDiagonal< M, X, Y >::m_mo.
◆ apply_sub()
template<typename M , typename X , typename Y = X>
This method applies the operator and subracts the result from the input codomain function, i.e. f -= L*u (or d -= J(u)*c in iterative schemes). Note, that the operator must have been initialized once before this method can be used.
- Parameters
-
[in] | u | domain function |
[in,out] | f | codomain function |
- Returns
- bool success flag
Implements ug::ILinearOperator< X, Y >.
References ug::MatrixDiagonal< M, X, Y >::m_mo.
◆ init() [1/2]
template<typename M , typename X , typename Y = X>
◆ init() [2/2]
template<typename M , typename X , typename Y = X>
init operator depending on a function u
This method initializes the operator. Once initialized the 'apply'-method can be called. The function u is passed here, since the linear operator may be the linearization of some non-linear operator. Thus, the operator depends on the linearization point. If the operator is not a linearization, this method can be implemented by simply calling init() and forgetting about the linearization point.
- Parameters
-
[in] | u | function (linearization point) |
- Returns
- bool success flag
Implements ug::ILinearOperator< X, Y >.
References ug::MatrixDiagonal< M, X, Y >::m_mo.
◆ m_mo
template<typename M , typename X , typename Y = X>
Referenced by ug::MatrixDiagonal< M, X, Y >::apply(), ug::MatrixDiagonal< M, X, Y >::apply_sub(), ug::MatrixDiagonal< M, X, Y >::init(), ug::MatrixDiagonal< M, X, Y >::init(), and ug::MatrixDiagonal< M, X, Y >::MatrixDiagonal().
The documentation for this class was generated from the following file: