Esempio n. 1
0
 /// <summary>
 /// Constructs a bit matrix with a given number of columns and rowsd All bits are initially <i>false</i>.
 /// </summary>
 /// <param name="columns">the number of columns the matrix shall have.</param>
 /// <param name="rows">the number of rows the matrix shall have.</param>
 /// <exception cref="ArgumentException">if <i>columns &lt; 0 || rows &lt; 0</i>.</exception>
 public BitMatrix(int columns, int rows)
 {
     GetElements(QuickBitVector.MakeBitVector(columns * rows, 1), columns, rows);
 }
Esempio n. 2
0
 /// <summary>
 /// Constructs a bit vector that holds <i>size</i> bitsd All bits are initially <i>false</i>.
 /// </summary>
 /// <param name="size">the number of bits the bit vector shall have.</param>
 /// <exception cref="ArgumentException">if <i>size &lt; 0</i>.</exception>
 public BitVector(int size) : this(QuickBitVector.MakeBitVector(size, 1), size)
 {
 }