-
#include "tensorstore/strided_layout.h"
-
template <typename T0, typename T1>
Index tensorstore::IndexInnerProduct(DimensionIndex n,
const T0* a,
const T1* b); -
template <DimensionIndex N, typename T0, typename T1>
Index tensorstore::IndexInnerProduct(const T0* a, const T1* b); -
template <DimensionIndex Rank, typename T0, typename T1>
Index tensorstore::IndexInnerProduct(span<T0, Rank> a,
span<T1, Rank> b); Returns the inner product of
a
andb
, wrapping on overflow.The elements of
a
andb
are converted toIndex
prior to multiplying.