using System; namespace Science.Mathematics.LinearAlgebra { public class VectorSpace { public VectorSpace() { } public VectorSpace(int dimension) { d = dimension; } public VectorSpace(Vector[] basis) { d = basis.Length; v = basis; } private int d; public int Dimension { get { return d; } set { d = value; } } private Vector[] v; public Vector[] Basis { get { return v; } set { v = value; } } public override string ToString() { string res = ""; for (int i = 0; i < this.Dimension; i++) { for (int j = 0; j < this.Basis.Length; j++) res += this.Basis[j][i].ToString() + " "; res += "\r\n"; } res += "\r\n"; return res; } } }