| Product Constructor (Int32) |
Initializes a new product of
Rank 0 with the supplied
sizes of columns.
Namespace:
Kaos.Combinatorics
Assembly:
KaosCombinatorics (in KaosCombinatorics.dll) Version: 5.0.0.6
Syntax public Product(
int[] sizes
)
Parameters
- sizes
- Type: SystemInt32
Size of each column.
Exceptions Examples using System;
using Kaos.Combinatorics;
namespace ExampleApp
{
class PtExample01
{
static void Main()
{
int[] sizes = { 2, 4, 3 };
var pt = new Product (sizes);
Console.WriteLine ($" ( {String.Join (", ", sizes)} )\n");
foreach (var row in pt.GetRows())
Console.WriteLine ($"{row.Rank,2}: {row}");
}
}
}
See Also