Iterators.Product<T>(IList<T>, Int 32) Method
Enumerates the Cartesian product of the specified length from a set of items.
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A sequence of arrays that contain all selections of length elements with replacement from items.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static IEnumerable<T[]> Product<T>(
IList<T> items,
int length
)
Parameters
Type Parameters
- T
- The type of the items.
Return Value
IEnumerable<T[]>A sequence of arrays that contain all selections of length elements with replacement from items.
Exceptions
Argument | items is null. |
Argument | length is less than zero. |