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 DoubleMatrix(
new double[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
DoubleMatrices 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 Double-valued matrices.
override bool IsCommutative
If the ring * operator is commutative or not.
DoubleMatrices(int Rows, int Columns)
Pseudo-ring of Double-valued matrices.
int Columns
Number of columns.
override int GetHashCode()
Calculates a hash code of the element.
override bool Equals(object obj)
Compares the element to another.
override IAbelianGroupElement Zero
Returns the zero element of the group.
override bool Contains(IElement Element)
Checks if the set contains an element.
Basic interface for all types of abelian group elements.
Basic interface for all types of elements.