3#ifndef pRC_ALGORITHMS_OPTIMIZER_LINE_SEARCH_FIXED_H
4#define pRC_ALGORITHMS_OPTIMIZER_LINE_SEARCH_FIXED_H
14 static constexpr Float<> defaultStepSize()
25 template<
class T = Float<>>
31 template<IsTensor X, IsFloat T = Value<X>,
class F,
class FC>
48 template<IsTensor X, IsFloat T = Value<X>,
class F>
57 x, f, g, d, forward<F>(function),
58 [](
auto &&
x) ->
decltype(
auto)
60 return forward<decltype(x)>(
x);
62 p, alpha, alphaMin, alphaMax);
Definition concepts.hpp:43
Definition concepts.hpp:31
int x
Definition gmock-matchers-containers_test.cc:376
const char * p
Definition gmock-matchers-containers_test.cc:379
Definition bracketing.hpp:11
static constexpr auto cast(T const &a)
Definition cast.hpp:11
std::invoke_result_t< F, Args... > ResultOf
Definition basics.hpp:59
static constexpr auto identity()
Definition identity.hpp:13
static constexpr auto zero()
Definition zero.hpp:12
constexpr Fixed(Float<> const stepSize=defaultStepSize())
Definition fixed.hpp:20
constexpr decltype(auto) stepSize() const
Definition fixed.hpp:26
constexpr auto operator()(X &x, ResultOf< F, X const &, X & > &f, X &g, typename ResultOf< ScalarProduct, X, X >::Type &d, F &&function, FC &&constraint, X const &p, T alpha=identity< T >(), T const alphaMin=zero< T >(), T const alphaMax=identity< T >(NumericLimits< T >::max())) const
Definition fixed.hpp:36
constexpr auto operator()(X &x, ResultOf< F, X const &, X & > &f, X &g, typename ResultOf< ScalarProduct, X, X >::Type &d, F &&function, X const &p, T alpha=identity< T >(), T const alphaMin=zero< T >(), T const alphaMax=identity< T >(NumericLimits< T >::max())) const
Definition fixed.hpp:51