Reducing functions¶
absmaxof
function¶
template <typename E1,
typename T = expression_value_type<E1>,
KFR_ENABLE_IF(is_input_expression<E1>)>
T absmaxof(const E1 &x)
Returns the greatest in magnitude of all the elements in x.
x must have its size and type specified.
absminof
function¶
template <typename E1,
typename T = expression_value_type<E1>,
KFR_ENABLE_IF(is_input_expression<E1>)>
T absminof(const E1 &x)
Returns the smallest in magnitude of all the elements in x.
x must have its size and type specified.
dotproduct
function¶
template <
typename E1, typename E2,
typename T = expression_value_type<
decltype(std::declval<E1>() * std::declval<E2>())>,
KFR_ACCEPT_EXPRESSIONS(E1, E2)>
T dotproduct(E1 &&x, E2 &&y)
Returns the dot product of two vectors.
x and y must have their sizes and types specified.
histogram
function¶
template <typename E, typename TCount = uint32_t>
histogram_data<0, TCount> histogram(E &&expr, size_t bins)
Returns histogram of the expression data. Number of bins defined at runtime
template <size_t Bins, typename E,
typename TCount = uint32_t>
histogram_data<Bins, TCount> histogram(E &&expr)
Returns histogram of the expression data. Number of bins defined at compile time
histogram_expression
function¶
template <typename E, typename TCount = uint32_t>
expression_histogram<0, E, TCount>
histogram_expression(E &&expr, size_t bins)
Returns expression that computes histogram as data flows through it. Number of bins defined at runtime
template <size_t Bins, typename E,
typename TCount = uint32_t>
expression_histogram<Bins, E, TCount>
histogram_expression(E &&expr)
Returns expression that computes histogram as data flows through it. Number of bins defined at compile time
maxof
function¶
template <typename E1,
typename T = expression_value_type<E1>,
KFR_ENABLE_IF(is_input_expression<E1>)>
T maxof(const E1 &x)
Returns the greatest of all the elements in x.
x must have its size and type specified.
mean
function¶
template <typename E1,
typename T = expression_value_type<E1>,
KFR_ENABLE_IF(is_input_expression<E1>)>
T mean(const E1 &x)
Returns the arithmetic mean of all the elements in x.
x must have its size and type specified.
minof
function¶
template <typename E1,
typename T = expression_value_type<E1>,
KFR_ENABLE_IF(is_input_expression<E1>)>
T minof(const E1 &x)
Returns the smallest of all the elements in x.
x must have its size and type specified.
product
function¶
template <typename E1,
typename T = expression_value_type<E1>,
KFR_ENABLE_IF(is_input_expression<E1>)>
T product(const E1 &x)
Returns the product of all the elements in x.
x must have its size and type specified.
rms
function¶
template <typename E1,
typename T = expression_value_type<E1>,
KFR_ENABLE_IF(is_input_expression<E1>)>
T rms(const E1 &x)
Returns the root mean square of all the elements in x.
x must have its size and type specified.
sum
function¶
template <typename E1,
typename T = expression_value_type<E1>,
KFR_ENABLE_IF(is_input_expression<E1>)>
T sum(const E1 &x)
Returns the sum of all the elements in x.
x must have its size and type specified.
sumsqr
function¶
template <typename E1,
typename T = expression_value_type<E1>,
KFR_ENABLE_IF(is_input_expression<E1>)>
T sumsqr(const E1 &x)
Returns the sum of squares of all the elements in x.
x must have its size and type specified.
Auto-generated from sources, Revision 6aea976a464de59d522d0c629e64bf0c044e6777, https://github.com/kfrlib/kfr/blob/6aea976a464de59d522d0c629e64bf0c044e6777/include/kfr/