7#ifndef INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_INNER_PRODUCT_HPP_
8#define INCLUDE_GUARD_ARENE_BASE_STDLIB_INCLUDE_STDLIB_DETAIL_INNER_PRODUCT_HPP_
17#include "arene/base/algorithm/detail/generalized_transform_reduce.hpp"
18#include "arene/base/algorithm/detail/reduce_policy_copy_assign.hpp"
19#include "arene/base/algorithm/detail/traits.hpp"
21#include "arene/base/stdlib_choice/enable_if.hpp"
22#include "arene/base/stdlib_choice/is_assignable.hpp"
23#include "arene/base/stdlib_choice/is_move_constructible.hpp"
24#include "arene/base/stdlib_choice/move.hpp"
25#include "arene/base/stdlib_choice/multiplies.hpp"
26#include "arene/base/stdlib_choice/plus.hpp"
96 arene::base::algorithm_detail::iter_reference_t<InputIt1>,
97 arene::base::algorithm_detail::iter_reference_t<InputIt2>
111 arene::base::algorithm_detail::generalized_transform_reduce,
112 arene::base::algorithm_detail::reduce_policy_copy_assign<Value>,
122 using arene::base::algorithm_detail::generalized_transform_reduce;
123 using policy = arene::base::algorithm_detail::reduce_policy_copy_assign<Value>;
125 return policy::access(
126 generalized_transform_reduce{}(
191 arene::base::algorithm_detail::iter_reference_t<InputIt1>,
192 arene::base::algorithm_detail::iter_reference_t<InputIt2>>>>
::value>> =
nullptr>
static constexpr value_type value
Definition integral_constant.hpp:34
Type trait to detect if an instance of To is assignable to from arguments of From.
Definition is_assignable.hpp:47
Function object for performing multiplication.
Definition multiplies.hpp:27
Function object for performing addition.
Definition plus.hpp:27
Public export header for the constraints subpackage.
typename invoke_result< Fn, Args... >::type invoke_result_t
The return type of a functor invoked with the specified arguments.
Definition is_invocable.hpp:271
constexpr bool is_nothrow_invocable_v
Determine if a functor type is no-throw invocable with the specified argument types.
typename constraints_impl::constraints< EnableIfs... >::type constraints
Helper used to express template constraints in a consistent way using std::enable_if_t.
Definition constraints.hpp:51
auto inner_product(InputIt1 first1, InputIt1 last1, InputIt2 first2, Value init, Plus plus, Multiplies multiplies) noexcept(//std::is_nothrow_move_constructible< Value >::value &&arene::base::is_nothrow_invocable_v< arene::base::algorithm_detail::generalized_transform_reduce, arene::base::algorithm_detail::reduce_policy_copy_assign< Value >, InputIt1 &, InputIt1 &, InputIt2 &, Value, Plus &, Multiplies & >) -> Value
computes the inner product of two ranges of elements
Definition inner_product.hpp:101
constexpr Type integral_constant< Type, Value >::value
Out-of-line definition for the value constant.
Definition integral_constant.hpp:64
constexpr auto move(T &&value) noexcept -> remove_reference_t< T > &&
Cast a value to an rvalue.
Definition move.hpp:30
typename enable_if< Condition, Type >::type enable_if_t
Type alias to support constraining templates. Is an alias for the specified type if the Condition is ...
Definition enable_if.hpp:41
auto declval() noexcept -> T &&
A dummy function that is declared but not defined, with a user-specified return type,...