Browse Source

LA: change builder visibility (now only publicly accessible through Matrix/Vector)

optimization-1
Christoph Ruegg 13 years ago
parent
commit
c2910f2aa0
  1. 2
      src/Numerics/LinearAlgebra/Builder.cs
  2. 2
      src/Numerics/LinearAlgebra/Matrix.cs
  3. 2
      src/Numerics/LinearAlgebra/Vector.cs

2
src/Numerics/LinearAlgebra/Builder.cs

@ -234,7 +234,7 @@ namespace MathNet.Numerics.LinearAlgebra
Vector<T> SparseVector(int size); Vector<T> SparseVector(int size);
} }
public static class Builder<T> where T : struct, IEquatable<T>, IFormattable internal static class Builder<T> where T : struct, IEquatable<T>, IFormattable
{ {
static Lazy<IGenericBuilder<T>> _singleton = new Lazy<IGenericBuilder<T>>(Create); static Lazy<IGenericBuilder<T>> _singleton = new Lazy<IGenericBuilder<T>>(Create);

2
src/Numerics/LinearAlgebra/Matrix.cs

@ -58,7 +58,7 @@ namespace MathNet.Numerics.LinearAlgebra
ColumnCount = storage.ColumnCount; ColumnCount = storage.ColumnCount;
} }
static readonly IGenericBuilder<T> Builder = Builder<T>.Instance; public static readonly IGenericBuilder<T> Builder = Builder<T>.Instance;
/// <summary> /// <summary>
/// Gets the raw matrix data storage. /// Gets the raw matrix data storage.

2
src/Numerics/LinearAlgebra/Vector.cs

@ -58,7 +58,7 @@ namespace MathNet.Numerics.LinearAlgebra
Count = storage.Length; Count = storage.Length;
} }
static readonly IGenericBuilder<T> Builder = Builder<T>.Instance; public static readonly IGenericBuilder<T> Builder = Builder<T>.Instance;
/// <summary> /// <summary>
/// Gets the raw vector data storage. /// Gets the raw vector data storage.

Loading…
Cancel
Save