13 private readonly
int dimension;
44 if (this.zero is
null)
45 this.zero =
new DoubleVector(
new double[this.dimension]);
61 return v.Dimension == this.dimension;
69 public override bool Equals(
object obj)
71 return (obj is
DoubleVectors v && v.dimension ==
this.dimension);
80 return this.dimension.GetHashCode();
Base class for all types of elements.
Base class for all types of vector spaces.
Pseudo-field of double numbers, as an approximation of the field of real numbers.
static readonly DoubleNumbers Instance
Instance of the set of complex numbers.
Pseudo-vector space of Double-valued vectors.
override bool Equals(object obj)
Compares the element to another.
override bool Contains(IElement Element)
Checks if the set contains an element.
int Dimension
Dimension of vector space.
override IField ScalarField
Scalar field.
override int GetHashCode()
Calculates a hash code of the element.
DoubleVectors(int Dimension)
Pseudo-vector space of Double-valued vectors.
override IAbelianGroupElement Zero
Returns the zero element of the group.
Basic interface for all types of abelian group elements.
Basic interface for all types of elements.
Basic interface for all types of fields.