ILNumerics Ultimate VS

ExtensionMethods.prod<IndT> Method (ConcreteArray<Int32, Array<Int32>, InArray<Int32>, OutArray<Int32>, RetArray<Int32>, Storage<Int32>>, BaseArray<IndT>, Boolean)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
[numpy API] Creates an array based on the products of elements of A.

[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<int> prod<IndT>(
	this ConcreteArray<int, Array<int>, InArray<int>, OutArray<int>, RetArray<int>, Storage<int>> A,
	BaseArray<IndT> axes = null,
	bool keepdims = false
)
where IndT : struct, new(), IConvertible

Parameters

A
Type: ILNumerics.Core.Arrays.ConcreteArray<Int32, Array<Int32>, InArray<Int32>, OutArray<Int32>, RetArray<Int32>, Storage<Int32>>
The source array. This will not be altered.
axes (Optional)
Type: ILNumerics.BaseArray<IndT>
[Optional] Dimensions of A to build the products along. Default: (null) factorize all elements.
keepdims (Optional)
Type: System.Boolean
[Optional] accumulated dimensions remain in the resulting array. Default: (false) accumulated singleton dimensions are removed.

Type Parameters

IndT
Element type for axes parameter. Must be numeric.

Return Value

Type: RetArray<Int32>
Array with the result of factorizing elements of A accordingly.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ConcreteArray<Int32, Array<Int32>, InArray<Int32>, OutArray<Int32>, RetArray<Int32>, Storage<Int32>>. 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

ExceptionCondition
ArgumentExceptionif elements of axes are smaller than -A.S.NumberOfDimensions;
Remarks

Factorizing over virtual dimensions is allowed. The result corresponds to A and has the same shape and the same elements.

Elements of axes 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 a scalar array with the default element value for the element data type.

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.

[ILNumerics numpy Module]

See Also

Reference