[][src]Function arrayfire::sum_nan_all

pub fn sum_nan_all<T>(
    input: &Array<T>,
    val: f64
) -> (T::AggregateOutType, T::AggregateOutType) where
    T: HasAfEnum,
    T::AggregateOutType: HasAfEnum + Fromf64

Sum all values using user provided value for NAN

Sum all the values of the input Array after replacing any NAN values with val.

Parameters

  • input is the input Array
  • val is the val that replaces all NAN values of the Array before reduction operation is performed.

Return Values

A tuple of summation result.

Note: For non-complex data type Arrays, second value of tuple is zero.