Browse Source

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

pull/82/merge
Christoph Ruegg 13 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));
}
[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)
{
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)
{
if (modulus < 0.0f)
@ -144,7 +144,7 @@ namespace MathNet.Numerics
/// </summary>
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;
/// <summary>
@ -668,13 +668,13 @@ namespace MathNet.Numerics
return new Complex32(dividend._real / divisor, dividend._imag / divisor);
}
[Obsolete("No Operation")]
[Obsolete("No Operation. Scheduled for removal in v3.0.")]
public Complex32 Plus()
{
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()
{
return -this;
@ -701,25 +701,25 @@ namespace MathNet.Numerics
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)
{
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)
{
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)
{
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)
{
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));
}
[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)
{
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)
{
if (modulus < 0.0d)
@ -143,7 +143,7 @@ namespace System.Numerics
/// </summary>
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;
/// <summary>
@ -383,7 +383,7 @@ namespace System.Numerics
return new Complex(dividend._real / divisor, dividend._imag / divisor);
}
#region IFormattable Members
#region IFormattable Members
/// <summary>
/// A string representation of this complex number.
@ -452,9 +452,9 @@ namespace System.Numerics
return ret.ToString();
}
#endregion
#endregion
#region IEquatable<Complex> Members
#region IEquatable<Complex> Members
/// <summary>
/// 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);
}
#endregion
#endregion
#region IPrecisionSupport<Complex>
#region IPrecisionSupport<Complex>
/// <summary>
/// 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();
}
#endregion
#endregion
#region Parse Functions
#region Parse Functions
/// <summary>
/// Creates a complex number based on a string. The string can be in the
@ -795,9 +795,9 @@ namespace System.Numerics
return ret;
}
#endregion
#endregion
#region Conversion
#region Conversion
/// <summary>
/// Explicit conversion of a real decimal to a <c>Complex</c>.
@ -932,7 +932,7 @@ namespace System.Numerics
return new Complex(_real, _imag);
}
#endregion
#endregion
/// <summary>
/// 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.
/// </summary>
/// <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
{
get { return _values; }

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

@ -101,7 +101,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex
/// The number of columns.
/// </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)
: this(rows, columns)
{

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

@ -96,7 +96,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex
/// <exception cref="ArgumentException">
/// If <paramref name="size"/> is less than one.
/// </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)
: 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.
/// </summary>
/// <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
{
get { return _values; }

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

@ -101,7 +101,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex32
/// The number of columns.
/// </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)
: this(rows, columns)
{

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

@ -96,7 +96,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex32
/// <exception cref="ArgumentException">
/// If <paramref name="size"/> is less than one.
/// </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)
: 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.
/// </summary>
/// <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
{
get { return _values; }

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

@ -100,7 +100,7 @@ namespace MathNet.Numerics.LinearAlgebra.Double
/// The number of columns.
/// </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)
: this(rows, columns)
{

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

@ -96,7 +96,7 @@ namespace MathNet.Numerics.LinearAlgebra.Double
/// <exception cref="ArgumentException">
/// If <paramref name="size"/> is less than one.
/// </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)
: 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);
}
[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)
{
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.
/// </summary>
/// <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
{
get { return _values; }

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

@ -100,7 +100,7 @@ namespace MathNet.Numerics.LinearAlgebra.Single
/// The number of columns.
/// </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)
: this(rows, columns)
{

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

@ -96,7 +96,7 @@ namespace MathNet.Numerics.LinearAlgebra.Single
/// <exception cref="ArgumentException">
/// If <paramref name="size"/> is less than one.
/// </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)
: this(new SparseVectorStorage<float>(size))
{

2
src/Numerics/Statistics/DescriptiveStatistics.cs

@ -157,7 +157,7 @@ namespace MathNet.Numerics.Statistics
/// Gets the sample median.
/// </summary>
/// <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
{
get { return _medianLazy.Value; }

Loading…
Cancel
Save