|
MiniTensor Version of the Day
|
#include <MiniTensor_Solvers.h>
Public Member Functions | |
| Function_Base () | |
| template<typename T , Index N> | |
| T | value (FunctionDerived &f, Vector< T, N > const &x) |
| template<typename T , Index N> | |
| Vector< T, N > | gradient (FunctionDerived &f, Vector< T, N > const &x) |
| template<typename T , Index N> | |
| Vector< T, N > | residual (FunctionDerived &f, Vector< T, N > const &x) |
| template<typename T , Index N> | |
| Tensor< T, N > | hessian (FunctionDerived &f, Vector< T, N > const &x) |
| void | set_failed (char const *const msg=nullptr) |
| bool | get_failed () |
| void | clear_failed () |
| void | set_failure_message (char const *const msg=nullptr) |
| char const * | get_failure_message () |
Static Public Attributes | |
| static constexpr Index | DIMENSION {M} |
Protected Attributes | |
| bool | failed {false} |
| char const * | failure_message {nullptr} |
| Keep a message to inform what went wrong above. | |
Function base class that defines the interface to Mini Solvers. The dimensions M and N are different in case vectors are passed to the methods that have different capacity. They must have dimension N.
Definition at line 36 of file MiniTensor_Solvers.h.