|
| | Residual (std::string name="", INMOST_DATA_ENUM_TYPE start=0, INMOST_DATA_ENUM_TYPE end=0, INMOST_MPI_Comm _comm=INMOST_MPI_COMM_WORLD) |
| | Constructor. More...
|
| |
| | Residual (const Residual &other) |
| | Copy constructor. More...
|
| |
| Residual & | operator= (Residual const &other) |
| | Assignment operator. More...
|
| |
|
INMOST_DATA_ENUM_TYPE | GetFirstIndex () const |
| | Retrieve the first index of the equations in the local partition.
|
| |
|
INMOST_DATA_ENUM_TYPE | GetLastIndex () const |
| | Retrieve the last index of the equations in the local partition.
|
| |
| void | GetInterval (INMOST_DATA_ENUM_TYPE &start, INMOST_DATA_ENUM_TYPE &end) const |
| | Retrieve the first and the last indices of the equations in the local partition. More...
|
| |
| void | SetInterval (INMOST_DATA_ENUM_TYPE beg, INMOST_DATA_ENUM_TYPE end) |
| | Assign the new first and last indices of the equations in the local partition. More...
|
| |
| __INLINE multivar_expression_reference | operator[] (INMOST_DATA_ENUM_TYPE row) |
| | Retrieve a residual value and a jacobian row corresponding to certain equation. More...
|
| |
| __INLINE double | Value (INMOST_DATA_ENUM_TYPE row) const |
| | Retrieve a residual value corresponding to certain equation. More...
|
| |
| __INLINE double & | Value (INMOST_DATA_ENUM_TYPE row) |
| | Retrieve a residual value corresponding to certain equation. More...
|
| |
| Matrix< multivar_expression_reference > | operator[] (const AbstractMatrix< INMOST_DATA_INTEGER_TYPE > &rows) |
| | Retrieve a vector of entries in residual, corresponding to a set of equations. More...
|
| |
| rMatrix | Value (const AbstractMatrix< INMOST_DATA_INTEGER_TYPE > &rows) const |
| | Retrieve a vector of entries in residual, corresponding to a set of equations. More...
|
| |
| Matrix< value_reference > | Value (const AbstractMatrix< INMOST_DATA_INTEGER_TYPE > &rows) |
| | Retrieve a vector of entries in residual, corresponding to a set of equations. More...
|
| |
|
Sparse::HessianMatrix & | GetHessian () |
| | Retrieve hessian matrix. Use in nonlinear solver.
|
| |
|
const Sparse::HessianMatrix & | GetHessian () const |
| | Retrieve hessian matrix without right of modificaiton.
|
| |
|
Sparse::Matrix & | GetJacobian () |
| | Retrieve jacobian matrix. Use in Sparse::Solver::Solve function.
|
| |
|
const Sparse::Matrix & | GetJacobian () const |
| | Retrieve jacobian matrix without right of modificaiton.
|
| |
|
Sparse::Vector & | GetResidual () |
| | Retrieve right hand side vector. Use in Sparse::Solver::Solve function.
|
| |
|
const Sparse::Vector & | GetResidual () const |
| | Retrieve right hand side vector without right of modification.
|
| |
|
void | ClearResidual () |
| | Zero out right hand side vector.
|
| |
|
void | ClearJacobian () |
| | Remove all entries in jacobian matrix.
|
| |
|
void | ClearHessian () |
| | Remove all entries in hessian matrix.
|
| |
|
void | Clear () |
| | Zero out right hand side vector and remove all entries in jacobian matrix.
|
| |
|
INMOST_DATA_REAL_TYPE | Norm () |
| | Compute the second norm of the right hand side vector over all of the processors.
|
| |
| void | Rescale (INMOST_DATA_ENUM_TYPE p=2) |
| | Normalize jacobian rows to unit p-norms and scale right hand side accordingly. More...
|
| |
|
void | InitLocks () |
| | Initialize openmp locks.
|
| |
| __INLINE void | Lock (INMOST_DATA_ENUM_TYPE pos) |
| | Lock an equation to avoid simultaneous shared access. More...
|
| |
| __INLINE void | UnLock (INMOST_DATA_ENUM_TYPE pos) |
| | UnLock an equation to allow simultaneous shared access. More...
|
| |
| __INLINE bool | TestLock (INMOST_DATA_ENUM_TYPE pos) |
| | Try to lock the equation. More...
|
| |
The Residual class provides a representation for array of residuals of nonlinear equations.
By working with the residual class you automatically assemble right hand side and the jacobian of a nonlinear system of equation. Jacobian matrix has a sparse representation.
- Todo:
- Extend for hessian calculation.
Definition at line 17 of file inmost_residual.h.