13 private readonly
int rows;
14 private readonly
int columns;
30 public int Rows => this.rows;
42 get {
throw new ScriptException(
"Zero element not defined for generic object matrices."); }
50 get {
return this.columns == 1 && this.rows == 1; }
61 return M.Rows == this.rows && M.Columns == this.columns;
71 public override bool Equals(
object obj)
73 return (obj is
ObjectMatrices S && S.rows ==
this.rows && S.columns ==
this.columns);
82 return this.rows.GetHashCode() ^ (this.columns.GetHashCode() << 16);
Base class for all types of elements.
Base class for all types of rings.
Base class for script exceptions.
Pseudo-ring of Object-valued matrices.
ObjectMatrices(int Rows, int Columns)
Pseudo-ring of Object-valued matrices.
override bool Contains(IElement Element)
Checks if the set contains an element.
int Columns
Number of columns.
override int GetHashCode()
Calculates a hash code of the element.
override IAbelianGroupElement Zero
Returns the zero element of the group.
override bool Equals(object obj)
Compares the element to another.
override bool IsCommutative
If the ring * operator is commutative or not.
Basic interface for all types of abelian group elements.
Basic interface for all types of elements.