13 private readonly
int rows;
14 private readonly
int columns;
30 public int Rows => this.rows;
44 if (this.zero is
null)
45 this.zero =
new BooleanMatrix(
new bool[this.rows, this.columns]);
56 get {
return this.columns == 1 && this.rows == 1; }
67 return M.Rows == this.rows && M.Columns == this.columns;
77 public override bool Equals(
object obj)
79 return (obj is
BooleanMatrices S && S.rows ==
this.rows && S.columns ==
this.columns);
88 return this.rows.GetHashCode() ^ (this.columns.GetHashCode() << 16);
Base class for all types of elements.
Base class for all types of rings.
Pseudo-ring of Boolean-valued matrices.
override int GetHashCode()
Calculates a hash code of the element.
override bool Contains(IElement Element)
Checks if the set contains an element.
int Columns
Number of columns.
override bool Equals(object obj)
Compares the element to another.
override bool IsCommutative
If the ring * operator is commutative or not.
override IAbelianGroupElement Zero
Returns the zero element of the group.
BooleanMatrices(int Rows, int Columns)
Pseudo-ring of Boolean-valued matrices.
Basic interface for all types of abelian group elements.
Basic interface for all types of elements.