Click or drag to resize

Product Constructor (Int32, Int64)

Initializes a new product of the supplied rankwith the supplied sizes of columns.

Namespace:  Kaos.Combinatorics
Assembly:  KaosCombinatorics (in KaosCombinatorics.dll) Version: 6.0.0.0
Syntax
C#
public Product(
	int[] sizes,
	long rank
)

Parameters

sizes
Type: SystemInt32
Size of each column.
rank
Type: SystemInt64
Row index in the ordered Product table.
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen sizes is null.
ArgumentOutOfRangeExceptionWhen any column size less than 0.
Remarks
If the supplied rank is out of the range (0..RowCount-1), it will be normalized to the valid range. For example, a value of -1 will produce the last row in the ordered table.
See Also