Class container for the generic function.
More...
#include <Function.hh>
Inherited by Optimist::Function< Input, Output, DerivedFunction >.
- Template Parameters
-
| Input | Function input type. |
| Output | Function output type. |
| DerivedFunction | Derived function class. |
◆ FirstDerivative
template<typename Input, typename Output, typename DerivedFunction>
Initial value:std::conditional_t<
InputTrait::IsEigen || OutputTrait::IsEigen,
std::conditional_t<InputTrait::IsSparse || OutputTrait::IsSparse,
Eigen::SparseMatrix<Scalar>,
OutputTrait::Dimension,
InputTrait::Dimension>>,
typename InputTrait::Scalar Scalar
Definition Function.hh:53
◆ InputTrait
template<typename Input, typename Output, typename DerivedFunction>
◆ OutputTrait
template<typename Input, typename Output, typename DerivedFunction>
◆ Scalar
template<typename Input, typename Output, typename DerivedFunction>
◆ SecondDerivative
template<typename Input, typename Output, typename DerivedFunction>
Initial value:std::conditional_t<
InputTrait::IsEigen || OutputTrait::IsEigen,
std::conditional_t<InputTrait::IsSparse || OutputTrait::IsSparse,
std::vector<Eigen::SparseMatrix<Scalar>>,
std::vector<Eigen::Matrix<
Scalar,
OutputTrait::Dimension,
InputTrait::Dimension>>>,
◆ FunctionBase()
template<typename Input, typename Output, typename DerivedFunction>
Class constructor for the function.
◆ evaluate()
template<typename Input, typename Output, typename DerivedFunction>
| bool Optimist::FunctionBase< Input, Output, DerivedFunction >::evaluate |
( |
const Input & | x, |
|
|
Output & | out ) const |
|
inline |
Compute the function value at the input point.
- Parameters
-
| [in] | x | Input point. |
| [out] | out | The function value. |
- Returns
- The boolean flag for successful evaluation.
◆ first_derivative()
template<typename Input, typename Output, typename DerivedFunction>
Compute the function first derivative at the input point.
- Parameters
-
| [in] | x | Input point. |
| [out] | out | The function first derivative. |
- Returns
- The boolean flag for successful evaluation.
◆ guess()
template<typename Input, typename Output, typename DerivedFunction>
Retrieve the initial guess at the index.
- Parameters
-
| [in] | i | The index of the initial guess. |
- Returns
- The initial guess.
◆ guesses()
template<typename Input, typename Output, typename DerivedFunction>
Get the vector of initial guesses.
- Returns
- The vector of initial guesses.
◆ input_dimension()
template<typename Input, typename Output, typename DerivedFunction>
Get the input dimension of the function.
- Returns
- The input dimension of the function.
◆ is_solution()
template<typename Input, typename Output, typename DerivedFunction>
Check if the input point is a known solution.
- Parameters
-
| [in] | x | Input point. |
| [in] | tol | Tolerance. |
- Returns
- True if the input point is a known solution, false otherwise.
◆ name()
template<typename Input, typename Output, typename DerivedFunction>
Get the function name.
- Returns
- The function name.
◆ output_dimension()
template<typename Input, typename Output, typename DerivedFunction>
Get the output dimension of the function.
- Returns
- The output dimension of the function.
◆ second_derivative()
template<typename Input, typename Output, typename DerivedFunction>
Compute the function second derivative at the input point.
- Parameters
-
| [in] | x | Input point. |
| [out] | out | The function second derivative. |
- Returns
- The boolean flag for successful evaluation.
◆ solution()
template<typename Input, typename Output, typename DerivedFunction>
Retrieve the known solution at the index.
- Parameters
-
| [in] | i | The index of the known solution. |
- Returns
- The known solution.
◆ solutions()
template<typename Input, typename Output, typename DerivedFunction>
Get the vector of known solutions.
- Returns
- The vector of known solutions.
◆ m_guesses
template<typename Input, typename Output, typename DerivedFunction>
Suggested initial guess used for testing.
◆ m_solutions
template<typename Input, typename Output, typename DerivedFunction>
Known solutions used for test purposes.
The documentation for this class was generated from the following file: