13#ifndef OPTIMIST_TESTSET_BOOTH_HH
14#define OPTIMIST_TESTSET_BOOTH_HH
35 template <
typename Real>
51 for (Real x{-10.0}; x < 10.0 + EPSILON; x += 5.0) {
52 for (Real y{-10.0}; y < 10.0 + EPSILON; y += 5.0) {
71 out << x(0) + 2.0*x(1) - 7.0, 2.0*x(0) + x(1) - 5.0;
80 out << 1.0, 2.0, 2.0, 1.0;
91 std::for_each(out.begin(), out.end(), [] (
Matrix& m) {m.setZero();});
#define OPTIMIST_BASIC_CONSTANTS(Real)
Definition Optimist.hh:70
std::vector< InputType > m_guesses
Definition Function.hh:63
std::vector< InputType > m_solutions
Definition Function.hh:62
constexpr Integer output_dimension() const
Definition Function.hh:117
typename FunctionBase< Real, N, M, Booth< Real >, false >::InputType InputVector
Definition Function.hh:193
Function()
Definition Function.hh:203
void first_derivative_impl(const Vector &, Matrix &out) const
Definition Booth.hh:78
void second_derivative_impl(const Vector &, Tensor &out) const
Definition Booth.hh:88
Booth()
Definition Booth.hh:48
void evaluate_impl(const Vector &x, Vector &out) const
Definition Booth.hh:69
typename Function< Real, 2, 2, Booth< Real > >::InputVector Vector
Definition Booth.hh:41
std::string name_impl() const
Definition Booth.hh:62
typename Function< Real, 2, 2, Booth< Real > >::Tensor Tensor
Definition Booth.hh:43
typename Function< Real, 2, 2, Booth< Real > >::Matrix Matrix
Definition Booth.hh:42
Namespace for the Optimist library.
Definition Optimist.hh:87