Browse Source

Obsolete code: mention in reason text plan to drop in next major release

v2
Christoph Ruegg 14 years ago
parent
commit
5bfa641a07
  1. 18
      src/Numerics/Complex32.cs
  2. 26
      src/Numerics/Complex64.cs
  3. 2
      src/Numerics/LinearAlgebra/Complex/DenseMatrix.cs
  4. 2
      src/Numerics/LinearAlgebra/Complex/SparseMatrix.cs
  5. 2
      src/Numerics/LinearAlgebra/Complex/SparseVector.cs
  6. 2
      src/Numerics/LinearAlgebra/Complex32/DenseMatrix.cs
  7. 2
      src/Numerics/LinearAlgebra/Complex32/SparseMatrix.cs
  8. 2
      src/Numerics/LinearAlgebra/Complex32/SparseVector.cs
  9. 2
      src/Numerics/LinearAlgebra/Double/DenseMatrix.cs
  10. 2
      src/Numerics/LinearAlgebra/Double/SparseMatrix.cs
  11. 2
      src/Numerics/LinearAlgebra/Double/SparseVector.cs
  12. 2
      src/Numerics/LinearAlgebra/Generic/Vector.cs
  13. 2
      src/Numerics/LinearAlgebra/Single/DenseMatrix.cs
  14. 2
      src/Numerics/LinearAlgebra/Single/SparseMatrix.cs
  15. 2
      src/Numerics/LinearAlgebra/Single/SparseVector.cs
  16. 2
      src/Numerics/Statistics/DescriptiveStatistics.cs

18
src/Numerics/Complex32.cs

@ -103,13 +103,13 @@ namespace MathNet.Numerics
return new Complex32(magnitude * (float)Math.Cos(phase), magnitude * (float)Math.Sin(phase)); return new Complex32(magnitude * (float)Math.Cos(phase), magnitude * (float)Math.Sin(phase));
} }
[Obsolete("Use the public constructor instead.")] [Obsolete("Use the public constructor instead. Scheduled for removal in v3.0.")]
public static Complex32 WithRealImaginary(float real, float imaginary) public static Complex32 WithRealImaginary(float real, float imaginary)
{ {
return new Complex32(real, imaginary); return new Complex32(real, imaginary);
} }
[Obsolete("Use static FromPolarCoordinates instead.")] [Obsolete("Use static FromPolarCoordinates instead. Scheduled for removal in v3.0.")]
public static Complex32 WithModulusArgument(float modulus, float argument) public static Complex32 WithModulusArgument(float modulus, float argument)
{ {
if (modulus < 0.0f) if (modulus < 0.0f)
@ -144,7 +144,7 @@ namespace MathNet.Numerics
/// </summary> /// </summary>
public static readonly Complex32 PositiveInfinity = new Complex32(float.PositiveInfinity, float.PositiveInfinity); public static readonly Complex32 PositiveInfinity = new Complex32(float.PositiveInfinity, float.PositiveInfinity);
[Obsolete("Use PositiveInfinity instead")] [Obsolete("Use PositiveInfinity instead. Scheduled for removal in v3.0.")]
public static readonly Complex32 Infinity = PositiveInfinity; public static readonly Complex32 Infinity = PositiveInfinity;
/// <summary> /// <summary>
@ -668,13 +668,13 @@ namespace MathNet.Numerics
return new Complex32(dividend._real / divisor, dividend._imag / divisor); return new Complex32(dividend._real / divisor, dividend._imag / divisor);
} }
[Obsolete("No Operation")] [Obsolete("No Operation. Scheduled for removal in v3.0.")]
public Complex32 Plus() public Complex32 Plus()
{ {
return this; return this;
} }
[Obsolete("Use static Complex32.Negate or the unary - operator instead.")] [Obsolete("Use static Complex32.Negate or the unary - operator instead. Scheduled for removal in v3.0.")]
public Complex32 Negate() public Complex32 Negate()
{ {
return -this; return -this;
@ -701,25 +701,25 @@ namespace MathNet.Numerics
return 1.0f / this; return 1.0f / this;
} }
[Obsolete("Use static Complex32.Add or the + operator instead.")] [Obsolete("Use static Complex32.Add or the + operator instead. Scheduled for removal in v3.0.")]
public Complex32 Add(Complex32 other) public Complex32 Add(Complex32 other)
{ {
return this + other; return this + other;
} }
[Obsolete("Use static Complex32.Subtract or the - operator instead.")] [Obsolete("Use static Complex32.Subtract or the - operator instead. Scheduled for removal in v3.0.")]
public Complex32 Subtract(Complex32 other) public Complex32 Subtract(Complex32 other)
{ {
return this - other; return this - other;
} }
[Obsolete("Use static Complex32.Multiply or the * operator instead.")] [Obsolete("Use static Complex32.Multiply or the * operator instead. Scheduled for removal in v3.0.")]
public Complex32 Multiply(Complex32 multiplier) public Complex32 Multiply(Complex32 multiplier)
{ {
return this * multiplier; return this * multiplier;
} }
[Obsolete("Use static Complex32.Divide or the / operator instead.")] [Obsolete("Use static Complex32.Divide or the / operator instead. Scheduled for removal in v3.0.")]
public Complex32 Divide(Complex32 divisor) public Complex32 Divide(Complex32 divisor)
{ {
return this / divisor; return this / divisor;

26
src/Numerics/Complex64.cs

@ -102,13 +102,13 @@ namespace System.Numerics
return new Complex(magnitude * Math.Cos(phase), magnitude * Math.Sin(phase)); return new Complex(magnitude * Math.Cos(phase), magnitude * Math.Sin(phase));
} }
[Obsolete("Use the public constructor instead.")] [Obsolete("Use the public constructor instead. Scheduled for removal in v3.0.")]
public static Complex WithRealImaginary(double real, double imaginary) public static Complex WithRealImaginary(double real, double imaginary)
{ {
return new Complex(real, imaginary); return new Complex(real, imaginary);
} }
[Obsolete("Use static FromPolarCoordinates instead.")] [Obsolete("Use static FromPolarCoordinates instead. Scheduled for removal in v3.0.")]
public static Complex WithModulusArgument(double modulus, double argument) public static Complex WithModulusArgument(double modulus, double argument)
{ {
if (modulus < 0.0d) if (modulus < 0.0d)
@ -143,7 +143,7 @@ namespace System.Numerics
/// </summary> /// </summary>
public static readonly Complex PositiveInfinity = new Complex(float.PositiveInfinity, float.PositiveInfinity); public static readonly Complex PositiveInfinity = new Complex(float.PositiveInfinity, float.PositiveInfinity);
[Obsolete("Use PositiveInfinity instead")] [Obsolete("Use PositiveInfinity instead. Scheduled for removal in v3.0.")]
public static readonly Complex Infinity = PositiveInfinity; public static readonly Complex Infinity = PositiveInfinity;
/// <summary> /// <summary>
@ -383,7 +383,7 @@ namespace System.Numerics
return new Complex(dividend._real / divisor, dividend._imag / divisor); return new Complex(dividend._real / divisor, dividend._imag / divisor);
} }
#region IFormattable Members #region IFormattable Members
/// <summary> /// <summary>
/// A string representation of this complex number. /// A string representation of this complex number.
@ -452,9 +452,9 @@ namespace System.Numerics
return ret.ToString(); return ret.ToString();
} }
#endregion #endregion
#region IEquatable<Complex> Members #region IEquatable<Complex> Members
/// <summary> /// <summary>
/// Checks if two complex numbers are equal. Two complex numbers are equal if their /// Checks if two complex numbers are equal. Two complex numbers are equal if their
@ -516,9 +516,9 @@ namespace System.Numerics
return (obj is Complex) && Equals((Complex)obj); return (obj is Complex) && Equals((Complex)obj);
} }
#endregion #endregion
#region IPrecisionSupport<Complex> #region IPrecisionSupport<Complex>
/// <summary> /// <summary>
/// Returns a Norm of a value of this type, which is appropriate for measuring how /// Returns a Norm of a value of this type, which is appropriate for measuring how
@ -547,9 +547,9 @@ namespace System.Numerics
return (this - otherValue).MagnitudeSquared(); return (this - otherValue).MagnitudeSquared();
} }
#endregion #endregion
#region Parse Functions #region Parse Functions
/// <summary> /// <summary>
/// Creates a complex number based on a string. The string can be in the /// Creates a complex number based on a string. The string can be in the
@ -795,9 +795,9 @@ namespace System.Numerics
return ret; return ret;
} }
#endregion #endregion
#region Conversion #region Conversion
/// <summary> /// <summary>
/// Explicit conversion of a real decimal to a <c>Complex</c>. /// Explicit conversion of a real decimal to a <c>Complex</c>.
@ -932,7 +932,7 @@ namespace System.Numerics
return new Complex(_real, _imag); return new Complex(_real, _imag);
} }
#endregion #endregion
/// <summary> /// <summary>
/// Returns the additive inverse of a specified complex number. /// Returns the additive inverse of a specified complex number.

2
src/Numerics/LinearAlgebra/Complex/DenseMatrix.cs

@ -173,7 +173,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex
/// Gets the matrix's data. /// Gets the matrix's data.
/// </summary> /// </summary>
/// <value>The matrix's data.</value> /// <value>The matrix's data.</value>
[Obsolete("Use Values instead. Will be removed in future versions.")] [Obsolete("Use Values instead. Scheduled for removal in v3.0.")]
public Complex[] Data public Complex[] Data
{ {
get { return _values; } get { return _values; }

2
src/Numerics/LinearAlgebra/Complex/SparseMatrix.cs

@ -101,7 +101,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex
/// The number of columns. /// The number of columns.
/// </param> /// </param>
/// <param name="value">The value which we assign to each element of the matrix.</param> /// <param name="value">The value which we assign to each element of the matrix.</param>
[Obsolete("Use a dense matrix instead.")] [Obsolete("Use a dense matrix instead. Scheduled for removal in v3.0.")]
public SparseMatrix(int rows, int columns, Complex value) public SparseMatrix(int rows, int columns, Complex value)
: this(rows, columns) : this(rows, columns)
{ {

2
src/Numerics/LinearAlgebra/Complex/SparseVector.cs

@ -96,7 +96,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex
/// <exception cref="ArgumentException"> /// <exception cref="ArgumentException">
/// If <paramref name="size"/> is less than one. /// If <paramref name="size"/> is less than one.
/// </exception> /// </exception>
[Obsolete("Use a dense vector instead.")] [Obsolete("Use a dense vector instead. Scheduled for removal in v3.0.")]
public SparseVector(int size, Complex value) public SparseVector(int size, Complex value)
: this(new SparseVectorStorage<Complex>(size)) : this(new SparseVectorStorage<Complex>(size))
{ {

2
src/Numerics/LinearAlgebra/Complex32/DenseMatrix.cs

@ -173,7 +173,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex32
/// Gets the matrix's data. /// Gets the matrix's data.
/// </summary> /// </summary>
/// <value>The matrix's data.</value> /// <value>The matrix's data.</value>
[Obsolete("Use Values instead. Will be removed in future versions.")] [Obsolete("Use Values instead. Scheduled for removal in v3.0.")]
public Complex32[] Data public Complex32[] Data
{ {
get { return _values; } get { return _values; }

2
src/Numerics/LinearAlgebra/Complex32/SparseMatrix.cs

@ -101,7 +101,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex32
/// The number of columns. /// The number of columns.
/// </param> /// </param>
/// <param name="value">The value which we assign to each element of the matrix.</param> /// <param name="value">The value which we assign to each element of the matrix.</param>
[Obsolete("Use a dense matrix instead.")] [Obsolete("Use a dense matrix instead. Scheduled for removal in v3.0.")]
public SparseMatrix(int rows, int columns, Complex32 value) public SparseMatrix(int rows, int columns, Complex32 value)
: this(rows, columns) : this(rows, columns)
{ {

2
src/Numerics/LinearAlgebra/Complex32/SparseVector.cs

@ -96,7 +96,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex32
/// <exception cref="ArgumentException"> /// <exception cref="ArgumentException">
/// If <paramref name="size"/> is less than one. /// If <paramref name="size"/> is less than one.
/// </exception> /// </exception>
[Obsolete("Use a dense vector instead.")] [Obsolete("Use a dense vector instead. Scheduled for removal in v3.0.")]
public SparseVector(int size, Complex32 value) public SparseVector(int size, Complex32 value)
: this(new SparseVectorStorage<Complex32>(size)) : this(new SparseVectorStorage<Complex32>(size))
{ {

2
src/Numerics/LinearAlgebra/Double/DenseMatrix.cs

@ -173,7 +173,7 @@ namespace MathNet.Numerics.LinearAlgebra.Double
/// Gets the matrix's data. /// Gets the matrix's data.
/// </summary> /// </summary>
/// <value>The matrix's data.</value> /// <value>The matrix's data.</value>
[Obsolete("Use Values instead. Will be removed in future versions.")] [Obsolete("Use Values instead. Scheduled for removal in v3.0.")]
public double[] Data public double[] Data
{ {
get { return _values; } get { return _values; }

2
src/Numerics/LinearAlgebra/Double/SparseMatrix.cs

@ -100,7 +100,7 @@ namespace MathNet.Numerics.LinearAlgebra.Double
/// The number of columns. /// The number of columns.
/// </param> /// </param>
/// <param name="value">The value which we assign to each element of the matrix.</param> /// <param name="value">The value which we assign to each element of the matrix.</param>
[Obsolete("Use a dense matrix instead.")] [Obsolete("Use a dense matrix instead. Scheduled for removal in v3.0.")]
public SparseMatrix(int rows, int columns, double value) public SparseMatrix(int rows, int columns, double value)
: this(rows, columns) : this(rows, columns)
{ {

2
src/Numerics/LinearAlgebra/Double/SparseVector.cs

@ -96,7 +96,7 @@ namespace MathNet.Numerics.LinearAlgebra.Double
/// <exception cref="ArgumentException"> /// <exception cref="ArgumentException">
/// If <paramref name="size"/> is less than one. /// If <paramref name="size"/> is less than one.
/// </exception> /// </exception>
[Obsolete("Use a dense vector instead.")] [Obsolete("Use a dense vector instead. Scheduled for removal in v3.0.")]
public SparseVector(int size, double value) public SparseVector(int size, double value)
: this(new SparseVectorStorage<double>(size)) : this(new SparseVectorStorage<double>(size))
{ {

2
src/Numerics/LinearAlgebra/Generic/Vector.cs

@ -202,7 +202,7 @@ namespace MathNet.Numerics.LinearAlgebra.Generic
Storage.CopySubVectorTo(destination.Storage, sourceIndex, targetIndex, count); Storage.CopySubVectorTo(destination.Storage, sourceIndex, targetIndex, count);
} }
[Obsolete("Use CopySubVectorTo instead.")] [Obsolete("Use CopySubVectorTo instead. Scheduled for removal in v3.0.")]
public void CopyTo(Vector<T> destination, int sourceIndex, int targetIndex, int count) public void CopyTo(Vector<T> destination, int sourceIndex, int targetIndex, int count)
{ {
CopySubVectorTo(destination, sourceIndex, targetIndex, count); CopySubVectorTo(destination, sourceIndex, targetIndex, count);

2
src/Numerics/LinearAlgebra/Single/DenseMatrix.cs

@ -173,7 +173,7 @@ namespace MathNet.Numerics.LinearAlgebra.Single
/// Gets the matrix's data. /// Gets the matrix's data.
/// </summary> /// </summary>
/// <value>The matrix's data.</value> /// <value>The matrix's data.</value>
[Obsolete("Use Values instead. Will be removed in future versions.")] [Obsolete("Use Values instead. Scheduled for removal in v3.0.")]
public float[] Data public float[] Data
{ {
get { return _values; } get { return _values; }

2
src/Numerics/LinearAlgebra/Single/SparseMatrix.cs

@ -100,7 +100,7 @@ namespace MathNet.Numerics.LinearAlgebra.Single
/// The number of columns. /// The number of columns.
/// </param> /// </param>
/// <param name="value">The value which we assign to each element of the matrix.</param> /// <param name="value">The value which we assign to each element of the matrix.</param>
[Obsolete("Use a dense matrix instead.")] [Obsolete("Use a dense matrix instead. Scheduled for removal in v3.0.")]
public SparseMatrix(int rows, int columns, float value) public SparseMatrix(int rows, int columns, float value)
: this(rows, columns) : this(rows, columns)
{ {

2
src/Numerics/LinearAlgebra/Single/SparseVector.cs

@ -96,7 +96,7 @@ namespace MathNet.Numerics.LinearAlgebra.Single
/// <exception cref="ArgumentException"> /// <exception cref="ArgumentException">
/// If <paramref name="size"/> is less than one. /// If <paramref name="size"/> is less than one.
/// </exception> /// </exception>
[Obsolete("Use a dense vector instead.")] [Obsolete("Use a dense vector instead. Scheduled for removal in v3.0.")]
public SparseVector(int size, float value) public SparseVector(int size, float value)
: this(new SparseVectorStorage<float>(size)) : this(new SparseVectorStorage<float>(size))
{ {

2
src/Numerics/Statistics/DescriptiveStatistics.cs

@ -157,7 +157,7 @@ namespace MathNet.Numerics.Statistics
/// Gets the sample median. /// Gets the sample median.
/// </summary> /// </summary>
/// <value>The sample median.</value> /// <value>The sample median.</value>
[Obsolete("Dropped in future versions for performance reasons. Please use Statistics.Median instead.")] [Obsolete("Please use Statistics.Median instead (performance). Scheduled for removal in v3.0.")]
public double Median public double Median
{ {
get { return _medianLazy.Value; } get { return _medianLazy.Value; }

Loading…
Cancel
Save