Skip to main content

sum

Overloads​

NameDescription
sum(const IntegerArray lhs, const List axes) -> IntegerArrayReturns the sum value of the elements in the IntegerArray along the given dimensions.
sum(const ComplexMatrix lhs) -> complexReturns the sum of the elements in the ComplexMatrix.
sum(const ComplexMatrix lhs, const List axes) -> ComplexMatrixReturns the sum value of the elements in the ComplexMatrix along the given dimensions.
sum(const IntegerArray lhs) -> integerReturns the sum of the elements in the IntegerArray.
sum(const RealArray lhs, const List axes) -> RealArrayReturns the sum value of the elements in the RealArray along the given dimensions.
sum(const RealArray lhs) -> realReturns the sum of the elements in the RealArray.
sum(const BoolArray lhs, const List axes) -> BoolArrayReturns the sum value of the elements in the BoolArray along the given dimensions.
sum(const BoolArray lhs) -> boolReturns the sum of the elements in the BoolArray.
sum(const ComplexArray lhs, const List axes) -> ComplexArrayReturns the sum value of the elements in the ComplexArray along the given dimensions.
sum(const ComplexArray lhs) -> complexReturns the sum of the elements in the ComplexArray.
sum(const RealSparseMatrix lhs) -> realReturns the sum of the elements in the RealSparseMatrix.
sum(const ComplexSparseMatrix lhs) -> complexReturns the sum of the elements in the ComplexSparseMatrix.
sum(const RealMatrix lhs) -> realReturns the sum of the elements in the RealMatrix.
sum(const RealMatrix lhs, const List axes) -> RealMatrixReturns the sum value of the elements in the RealMatrix along the given dimensions.

sum(const IntegerArray lhs, const List axes) -> IntegerArray​

Returns the sum value of the elements in the IntegerArray along the given dimensions.

Parameters​

  • lhs: The IntegerArray to analyze.
  • axes: Axes to reduce over.

sum(const ComplexMatrix lhs) -> complex​

Returns the sum of the elements in the ComplexMatrix.

Parameters​

sum(const ComplexMatrix lhs, const List axes) -> ComplexMatrix​

Returns the sum value of the elements in the ComplexMatrix along the given dimensions.

Parameters​

sum(const IntegerArray lhs) -> integer​

Returns the sum of the elements in the IntegerArray.

Parameters​

sum(const RealArray lhs, const List axes) -> RealArray​

Returns the sum value of the elements in the RealArray along the given dimensions.

Parameters​

  • lhs: The RealArray to analyze.
  • axes: Axes to reduce over.

sum(const RealArray lhs) -> real​

Returns the sum of the elements in the RealArray.

Parameters​

sum(const BoolArray lhs, const List axes) -> BoolArray​

Returns the sum value of the elements in the BoolArray along the given dimensions.

Parameters​

  • lhs: The BoolArray to analyze.
  • axes: Axes to reduce over.

sum(const BoolArray lhs) -> bool​

Returns the sum of the elements in the BoolArray.

Parameters​

sum(const ComplexArray lhs, const List axes) -> ComplexArray​

Returns the sum value of the elements in the ComplexArray along the given dimensions.

Parameters​

  • lhs: The ComplexArray to analyze.
  • axes: Axes to reduce over.

sum(const ComplexArray lhs) -> complex​

Returns the sum of the elements in the ComplexArray.

Parameters​

sum(const RealSparseMatrix lhs) -> real​

Returns the sum of the elements in the RealSparseMatrix.

Parameters​

sum(const ComplexSparseMatrix lhs) -> complex​

Returns the sum of the elements in the ComplexSparseMatrix.

Parameters​

sum(const RealMatrix lhs) -> real​

Returns the sum of the elements in the RealMatrix.

Parameters​

sum(const RealMatrix lhs, const List axes) -> RealMatrix​

Returns the sum value of the elements in the RealMatrix along the given dimensions.

Parameters​

  • lhs: The RealMatrix to analyze.
  • axes: Axes to reduce over.