Skip to main content

reduce

Overloads

NameDescription
reduce(const ComplexMatrix lhs, const Function<complex(complex, complex)> fun, const List axes) -> ComplexMatrixReduces the elements of the ComplexMatrix to a single value using a custom function fun along the given dimensions.
reduce(const BoolArray lhs, const Function<bool(bool, bool)> fun) -> boolReduces the elements of the BoolArray to a single value using a custom function fun.
reduce(const ComplexArray lhs, const Function<complex(complex, complex)> fun, const List axes) -> ComplexArrayReduces the elements of the ComplexArray to a single value using a custom function fun along the given dimensions.
reduce(const ComplexArray lhs, const Function<complex(complex, complex)> fun) -> complexReduces the elements of the ComplexArray to a single value using a custom function fun.
reduce(const IntegerArray lhs, const Function<integer(integer, integer)> fun) -> integerReduces the elements of the IntegerArray to a single value using a custom function fun.
reduce(const RealMatrix lhs, const Function<real(real, real)> fun) -> realReduces the elements of the RealMatrix to a single value using a custom function fun.
reduce(const RealMatrix lhs, const Function<real(real, real)> fun, const List axes) -> RealMatrixReduces the elements of the RealMatrix to a single value using a custom function fun along the given dimensions.
reduce(const IntegerArray lhs, const Function<integer(integer, integer)> fun, const List axes) -> IntegerArrayReduces the elements of the IntegerArray to a single value using a custom function fun along the given dimensions.
reduce(const RealArray lhs, const Function<real(real, real)> fun, const List axes) -> RealArrayReduces the elements of the RealArray to a single value using a custom function fun along the given dimensions.
reduce(const RealArray lhs, const Function<real(real, real)> fun) -> realReduces the elements of the RealArray to a single value using a custom function fun.
reduce(const BoolArray lhs, const Function<bool(bool, bool)> fun, const List axes) -> BoolArrayReduces the elements of the BoolArray to a single value using a custom function fun along the given dimensions.
reduce(const ComplexMatrix lhs, const Function<complex(complex, complex)> fun) -> complexReduces the elements of the ComplexMatrix to a single value using a custom function fun.

reduce(const ComplexMatrix lhs, const Function<complex(complex, complex)> fun, const List axes) -> ComplexMatrix

Reduces the elements of the ComplexMatrix to a single value using a custom function fun along the given dimensions.

Parameters

  • lhs: The ComplexMatrix to analyze.
  • fun: A function that takes two elements and returns a single value.
  • axes: Axes to reduce over.

reduce(const BoolArray lhs, const Function<bool(bool, bool)> fun) -> bool

Reduces the elements of the BoolArray to a single value using a custom function fun.

Parameters

  • lhs: The BoolArray to reduce.
  • fun: A function that takes two elements and returns a single value.

reduce(const ComplexArray lhs, const Function<complex(complex, complex)> fun, const List axes) -> ComplexArray

Reduces the elements of the ComplexArray to a single value using a custom function fun along the given dimensions.

Parameters

  • lhs: The ComplexArray to analyze.
  • fun: A function that takes two elements and returns a single value.
  • axes: Axes to reduce over.

reduce(const ComplexArray lhs, const Function<complex(complex, complex)> fun) -> complex

Reduces the elements of the ComplexArray to a single value using a custom function fun.

Parameters

  • lhs: The ComplexArray to reduce.
  • fun: A function that takes two elements and returns a single value.

reduce(const IntegerArray lhs, const Function<integer(integer, integer)> fun) -> integer

Reduces the elements of the IntegerArray to a single value using a custom function fun.

Parameters

  • lhs: The IntegerArray to reduce.
  • fun: A function that takes two elements and returns a single value.

reduce(const RealMatrix lhs, const Function<real(real, real)> fun) -> real

Reduces the elements of the RealMatrix to a single value using a custom function fun.

Parameters

  • lhs: The RealMatrix to reduce.
  • fun: A function that takes two elements and returns a single value.

reduce(const RealMatrix lhs, const Function<real(real, real)> fun, const List axes) -> RealMatrix

Reduces the elements of the RealMatrix to a single value using a custom function fun along the given dimensions.

Parameters

  • lhs: The RealMatrix to analyze.
  • fun: A function that takes two elements and returns a single value.
  • axes: Axes to reduce over.

reduce(const IntegerArray lhs, const Function<integer(integer, integer)> fun, const List axes) -> IntegerArray

Reduces the elements of the IntegerArray to a single value using a custom function fun along the given dimensions.

Parameters

  • lhs: The IntegerArray to analyze.
  • fun: A function that takes two elements and returns a single value.
  • axes: Axes to reduce over.

reduce(const RealArray lhs, const Function<real(real, real)> fun, const List axes) -> RealArray

Reduces the elements of the RealArray to a single value using a custom function fun along the given dimensions.

Parameters

  • lhs: The RealArray to analyze.
  • fun: A function that takes two elements and returns a single value.
  • axes: Axes to reduce over.

reduce(const RealArray lhs, const Function<real(real, real)> fun) -> real

Reduces the elements of the RealArray to a single value using a custom function fun.

Parameters

  • lhs: The RealArray to reduce.
  • fun: A function that takes two elements and returns a single value.

reduce(const BoolArray lhs, const Function<bool(bool, bool)> fun, const List axes) -> BoolArray

Reduces the elements of the BoolArray to a single value using a custom function fun along the given dimensions.

Parameters

  • lhs: The BoolArray to analyze.
  • fun: A function that takes two elements and returns a single value.
  • axes: Axes to reduce over.

reduce(const ComplexMatrix lhs, const Function<complex(complex, complex)> fun) -> complex

Reduces the elements of the ComplexMatrix to a single value using a custom function fun.

Parameters

  • lhs: The ComplexMatrix to reduce.
  • fun: A function that takes two elements and returns a single value.