13#ifndef OPTIMIST_VECTOR_FUNCTION_BOOTH_HH
14#define OPTIMIST_VECTOR_FUNCTION_BOOTH_HH
36 template <
typename Real>
52 for (Real x{-10.0}; x < 10.0 + EPSILON; x += 5.0) {
53 for (Real y{-10.0}; y < 10.0 + EPSILON; y += 5.0) {
72 out << x(0) + 2.0*x(1) - 7.0, 2.0*x(0) + x(1) - 5.0;
81 out << 1.0, 2.0, 2.0, 1.0;
92 std::for_each(out.begin(), out.end(), [] (
Matrix& m) {m.setZero();});
#define OPTIMIST_BASIC_CONSTANTS(Real)
Definition Optimist.hh:70
std::vector< InputType > m_solutions
Definition Function.hh:52
std::vector< InputType > m_guesses
Definition Function.hh:53
constexpr Integer output_dimension() const
Definition Function.hh:107
void first_derivative_impl(const Vector &, Matrix &out) const
Definition Booth.hh:79
void second_derivative_impl(const Vector &, Tensor &out) const
Definition Booth.hh:89
Booth()
Definition Booth.hh:49
void evaluate_impl(const Vector &x, Vector &out) const
Definition Booth.hh:70
std::string name_impl() const
Definition Booth.hh:63
typename VectorFunction< Real, 2, 2, Booth< Real > >::InputVector Vector
Definition Booth.hh:42
typename VectorFunction< Real, 2, 2, Booth< Real > >::Matrix Matrix
Definition Booth.hh:43
typename VectorFunction< Real, 2, 2, Booth< Real > >::Tensor Tensor
Definition Booth.hh:44
VectorFunction()
Definition VectorFunction.hh:55
typename Function< Real, N, M, Booth< Real > >::InputType InputVector
Definition VectorFunction.hh:45
Namespace for the Optimist library.
Definition Optimist.hh:87