ILNumerics Ultimate VSExtensionMethodssum Method (ConcreteArrayByte, ArrayByte, InArrayByte, OutArrayByte, RetArrayByte, StorageByte, Boolean)ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
[numpy API] Create a scalar array with the sum of all elements of A.

[ILNumerics numpy Module]

Namespace: ILNumerics
Assembly: ILNumerics.numpy (in ILNumerics.numpy.dll) Version: 5.3.0.0 (5.3.7131.2749)
Syntax

public static RetArray<byte> sum(
	this ConcreteArray<byte, Array<byte>, InArray<byte>, OutArray<byte>, RetArray<byte>, Storage<byte>> A,
	bool keepdims = false
)

Parameters

A
Type: ILNumerics.Core.ArraysConcreteArrayByte, ArrayByte, InArrayByte, OutArrayByte, RetArrayByte, StorageByte
The source array. This will not be altered.
keepdims (Optional)
Type: SystemBoolean
[Optional] accumulated dimensions remain in the resulting array. Default: (false) accumulated singleton dimensions are removed.

Return Value

Type: RetArrayByte
A scalar array with the sum of all elements of A.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ConcreteArrayByte, ArrayByte, InArrayByte, OutArrayByte, RetArrayByte, StorageByte. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks

Depending on the value of keepdims the array returned will have the same number of dimensions as A (keepdims = true) or with a number of dimensions according to MinNumberOfArrayDimensions.

Empty arrays A produce a scalar array with the default element value for the element data type.

[ILNumerics numpy Module]

See Also

Reference

ExtensionMethodssum(ConcreteArrayByte, ArrayByte, InArrayByte, OutArrayByte, RetArrayByte, StorageByte, Boolean)