//==---- numeric.h --------------------------------*- C++ -*----------------==// // // Copyright (C) Intel Corporation // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // See https://llvm.org/LICENSE.txt for license information. // //===----------------------------------------------------------------------===// #ifndef __DPCT_NUMERIC_H__ #define __DPCT_NUMERIC_H__ namespace dpct { template T inner_product(Policy &&policy, InputIt1 first1, InputIt1 last1, InputIt2 first2, T init) { return std::transform_reduce(std::forward(policy), first1, last1, first2, init); } template T inner_product(Policy &&policy, InputIt1 first1, InputIt1 last1, InputIt2 first2, T init, BinaryOperation1 op1, BinaryOperation2 op2) { return std::transform_reduce(std::forward(policy), first1, last1, first2, init, op1, op2); } } // end namespace dpct #endif