Loading [MathJax]/extensions/tex2jax.js
Go to the documentation of this file.
23 #ifndef CONDITIONAL_PRECOMPUTE_HPP_INCLUDED
24 #define CONDITIONAL_PRECOMPUTE_HPP_INCLUDED
27 #include <type_traits>
33 namespace matrix_function_complexity
49 template <
class Complexity,
class Func,
class ...Args>
63 return Func::eval(args...);
69 template <
class Func,
class...Args>
78 typedef typename std::add_lvalue_reference<
92 template <
class Func,
class...Args>
106 return functor_ret_type::Zero();
111 template <
class Complexity,
class Func,
class ...Args>
122 template <class...ConstrArgs>
130 return Func::eval(args...);
135 template <
class Func,
class...Args>
144 typedef typename std::add_lvalue_reference<
149 : m_stored(Func::eval(args...))
154 template <
class...EvalArgs>
165 template <
class Func,
class...Args>
181 template <
class...EvalArgs>
184 return functor_ret_type::Zero();
190 #endif // CONDITIONAL_PRECOMPUTE_HPP_INCLUDED
functor_ret_type return_type
the return type of the static function eval
std::add_lvalue_reference< typename std::add_const< functor_ret_type >::type >::type return_type
the return type of the static function eval
conditional_precompute type
self-returning
return_type operator()(Args const &...args) const
return object computed by the function class
Conditionally precompute and store objects.
decltype(Func::eval(std::declval< Args >()...)) typedef functor_ret_type
the return type of the function class
decltype(Func::eval(std::declval< Args >()...)) typedef functor_ret_type
the return type of the Func function class
global constants governing some accuracy parameters
std::add_lvalue_reference< typename std::add_const< functor_ret_type >::type >::type return_type
the return type of the static function eval
static return_type eval(Args const &...args)
return object computed by the function class
conditional_precompute type
self-returning
the returned matrix is a zero expression
return_type operator()(EvalArgs const &...) const
return object computed by the function class
constexpr return_type operator()(EvalArgs const &...) const
return object computed by the function class
conditional_precompute type
self-returning
the returned matrix should be computed on the fly
the returned matrix is constant and can be stored
functor_ret_type return_type
the return type of the static function eval
conditional_precompute_instance type
self-returning
conditional_precompute_instance type
self-returning
conditional_precompute_instance type
self-returning