Helper base class for nonlinear systems \( \mathbf{F} :
\mathbb{R}^N \to \mathbb{R}^M \) written once in terms of dense vectors (square by default).
More...
|
| bool | evaluate_impl (const Vector &x, OutVector &out) const |
| bool | first_derivative_impl (const Vector &x, FirstDerivative &out) const |
| bool | second_derivative_impl (const Vector &x, SecondDerivative &out) const |
| | Function () |
| constexpr std::string | name () const |
| bool | evaluate (const Vector &x, Vector &out) const |
| bool | jacobian (const Vector &x, FirstDerivative &out) const |
| bool | hessian (const Vector &x, SecondDerivative &out) const |
| | FunctionBase () |
| constexpr std::string | name () const |
| bool | evaluate (const Vector &x, Vector &out) const |
| bool | first_derivative (const Vector &x, FirstDerivative &out) const |
| bool | second_derivative (const Vector &x, SecondDerivative &out) const |
| constexpr Integer | input_dimension () const |
| constexpr Integer | output_dimension () const |
| const std::vector< Vector > & | solutions () const |
| const std::vector< Vector > & | guesses () const |
| const Vector & | solution (const Integer i) const |
| const Vector & | guess (const Integer i) const |
| bool | is_solution (const Vector &x, const Scalar tol=FunctionBase::SQRT_EPSILON) const |
template<typename Vector,
Integer N, typename Derived, typename OutVector = Vector,
Integer M = N>
requires
TypeTrait<Vector>::IsEigen &&
TypeTrait<OutVector>::IsEigen && (!
TypeTrait<Vector>::IsFixed ||
TypeTrait<Vector>::Dimension == N) && (!
TypeTrait<OutVector>::IsFixed ||
TypeTrait<OutVector>::Dimension == M)
class Optimist::TestSet::DenseSystemFunction< Vector, N, Derived, OutVector, M >
The derived class implements
- void residual(const Dense &x, Dense &F) const,
- void jacobian(const Dense &x, DenseMatrix &J) const,
- void hessian(const Dense &x, Integer i, DenseMatrix &H) const, the Hessian of the \( i \)-th component.
- Template Parameters
-
| Vector | Eigen input vector type. |
| N | Number of unknowns. |
| Derived | Derived function class. |
| OutVector | Eigen output vector type. |
| M | Number of equations. |