Enumerates the indexes of the Cartesian product of the specified length
from a set of the specified size.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static IEnumerable<int[]> Product(
int[] counts,
int[] result
)
Public Shared Function Product (
counts As Integer(),
result As Integer()
) As IEnumerable(Of Integer())
public:
static IEnumerable<array<int>^>^ Product(
array<int>^ counts,
array<int>^ result
)
static member Product :
counts : int[] *
result : int[] -> IEnumerable<int[]>
Parameters
- counts
- Type: SystemInt32
An array containing the length of each dimension. - result
- Type: SystemInt32
An array that is to hold the result.
Return Value
Type:
IEnumerableInt32A sequence of integer arrays that contain the indexes of
all selections of elements from sets of size
counts.
The indexes are returned each time in the same array,
result. Its elements should not be modified.
If they are modified, the results are unpredictable.
Reference