[][src]Function arrayfire::sum_by_key_nan

pub fn sum_by_key_nan<KeyType, ValueType>(
    keys: &Array<KeyType>,
    vals: &Array<ValueType>,
    dim: i32,
    replace_value: f64
) -> (Array<KeyType>, Array<ValueType::AggregateOutType>) where
    KeyType: ReduceByKeyInput,
    ValueType: HasAfEnum,
    ValueType::AggregateOutType: HasAfEnum

Compute sum of all values with similar keys along a given dimension

This version of sum by key can replaced all NaN values in the input with a user provided value before performing the reduction operation.

Parameters

Return Values

Tuple of Arrays, with output keys and values after reduction