Iterators.Product(Int 32[]) Method
Enumerates the indexes of the Cartesian product of the specified length
from a set of the specified size.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A sequence of integer arrays that contain the indexes of all selections of elements from sets of size counts.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static IEnumerable<int[]> Product(
int[] counts
)
Parameters
- counts Int32[]
- An array containing the length of each dimension.
Return Value
IEnumerable<Int32[]>A sequence of integer arrays that contain the indexes of all selections of elements from sets of size counts.
Exceptions
Argument | counts is null. |