ILNumerics - Technical Application Development
Assembly: ILNumerics.numpy (in ILNumerics.numpy.dll) Version: 5.5.0.0 (5.5.7503.3146)
Array of the same shape as A.
[numpy API] Computes the cumulative sum of elements of A along dimension axis.
[ILNumerics numpy Module]
Namespace: ILNumerics
Assembly: ILNumerics.numpy (in ILNumerics.numpy.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax
public static RetArray<ulong> cumsum<IndT>( this ConcreteArray<ulong, Array<ulong>, InArray<ulong>, OutArray<ulong>, RetArray<ulong>, Storage<ulong>> A, IndT axis ) where IndT : struct, new(), IConvertible
Parameters
- A
- Type: ILNumerics.Core.ArraysConcreteArrayUInt64, ArrayUInt64, InArrayUInt64, OutArrayUInt64, RetArrayUInt64, StorageUInt64
The source array. This will not be altered. - axis
- Type: IndT
Dimension of A to compute the cumulative sum along. A negative value counts from the last dimension.
Type Parameters
- IndT
- Element type for axis parameter. Must be numeric.
Return Value
Type: RetArrayUInt64Array of the same shape as A.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type ConcreteArrayUInt64, ArrayUInt64, InArrayUInt64, OutArrayUInt64, RetArrayUInt64, StorageUInt64. 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).Exceptions
Exception | Condition |
---|---|
ArgumentException | if elements of axis are smaller than -A.S.NumberOfDimensions; |
Remarks
axis must lay in the range of existing dimension indices.
Elements of axis may be negative. Corresponding dimension indices are considered as counting from the end of the range of existing dimensions in A.
Empty arrays A produce empty arrays of the same shape.
[ILNumerics numpy Module]
See Also