Browse Source

Obsolete the complete MathNet.Numerics.IO library

This library is replaced completely with separate libraries for
various data formats and isolated in their own repository and NuGet package.
Among other this allows us to add format-specific dependencies
without any impact on the core library.

Some of the new and already existing packages:

- MathNet.Numerics.Data.Text
- MathNet.Numerics.Data.Matlab
v2
Christoph Ruegg 13 years ago
parent
commit
ff0e24fa1c
  1. 1
      src/Numerics.IO/LinearAlgebra/Complex/IO/DelimitedReader.cs
  2. 3
      src/Numerics.IO/LinearAlgebra/Complex/IO/MatlabReader.cs
  3. 1
      src/Numerics.IO/LinearAlgebra/Complex32/IO/DelimitedReader.cs
  4. 3
      src/Numerics.IO/LinearAlgebra/Complex32/IO/MatlabReader.cs
  5. 1
      src/Numerics.IO/LinearAlgebra/Double/IO/DelimitedReader.cs
  6. 3
      src/Numerics.IO/LinearAlgebra/Double/IO/MatlabReader.cs
  7. 1
      src/Numerics.IO/LinearAlgebra/IO/DelimitedReader.cs
  8. 1
      src/Numerics.IO/LinearAlgebra/IO/DelimitedWriter.cs
  9. 3
      src/Numerics.IO/LinearAlgebra/IO/Matlab/Adler32.cs
  10. 3
      src/Numerics.IO/LinearAlgebra/IO/Matlab/ArrayClass.cs
  11. 1
      src/Numerics.IO/LinearAlgebra/IO/Matlab/ArrayFlags.cs
  12. 3
      src/Numerics.IO/LinearAlgebra/IO/Matlab/DataType.cs
  13. 1
      src/Numerics.IO/LinearAlgebra/IO/Matlab/MatlabFile.cs
  14. 1
      src/Numerics.IO/LinearAlgebra/IO/Matlab/MatlabParser.cs
  15. 1
      src/Numerics.IO/LinearAlgebra/IO/MatlabReader.cs
  16. 1
      src/Numerics.IO/LinearAlgebra/IO/MatlabWriter.cs
  17. 1
      src/Numerics.IO/LinearAlgebra/IO/MatrixReader.cs
  18. 1
      src/Numerics.IO/LinearAlgebra/IO/MatrixWriter.cs
  19. 1
      src/Numerics.IO/LinearAlgebra/Single/IO/DelimitedReader.cs
  20. 3
      src/Numerics.IO/LinearAlgebra/Single/IO/MatlabReader.cs

1
src/Numerics.IO/LinearAlgebra/Complex/IO/DelimitedReader.cs

@ -36,6 +36,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex.IO
/// specify a delimiter, then any whitespace is used. /// specify a delimiter, then any whitespace is used.
/// </summary> /// </summary>
/// <typeparam name="TMatrix">The type of the matrix to return.</typeparam> /// <typeparam name="TMatrix">The type of the matrix to return.</typeparam>
[Obsolete("Use MathNet.Numerics.Data.Text instead (separate NuGet package). Scheduled for removal in v3.0.")]
public class DelimitedReader<TMatrix> : DelimitedReader<TMatrix, Complex> public class DelimitedReader<TMatrix> : DelimitedReader<TMatrix, Complex>
where TMatrix : Matrix<Complex> where TMatrix : Matrix<Complex>
{ {

3
src/Numerics.IO/LinearAlgebra/Complex/IO/MatlabReader.cs

@ -24,6 +24,8 @@
// OTHER DEALINGS IN THE SOFTWARE. // OTHER DEALINGS IN THE SOFTWARE.
// </copyright> // </copyright>
using System;
namespace MathNet.Numerics.LinearAlgebra.Complex.IO namespace MathNet.Numerics.LinearAlgebra.Complex.IO
{ {
using System.IO; using System.IO;
@ -32,6 +34,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex.IO
/// <summary> /// <summary>
/// Creates matrices from Matlab files. /// Creates matrices from Matlab files.
/// </summary> /// </summary>
[Obsolete("Use MathNet.Numerics.Data.Matlab instead (separate NuGet package). Scheduled for removal in v3.0.")]
public class MatlabMatrixReader : MatlabMatrixReader<System.Numerics.Complex> public class MatlabMatrixReader : MatlabMatrixReader<System.Numerics.Complex>
{ {
/// <summary> /// <summary>

1
src/Numerics.IO/LinearAlgebra/Complex32/IO/DelimitedReader.cs

@ -36,6 +36,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex32.IO
/// specify a delimiter, then any whitespace is used. /// specify a delimiter, then any whitespace is used.
/// </summary> /// </summary>
/// <typeparam name="TMatrix">The type of the matrix to return.</typeparam> /// <typeparam name="TMatrix">The type of the matrix to return.</typeparam>
[Obsolete("Use MathNet.Numerics.Data.Text instead (separate NuGet package). Scheduled for removal in v3.0.")]
public class DelimitedReader<TMatrix> : DelimitedReader<TMatrix, Complex32> public class DelimitedReader<TMatrix> : DelimitedReader<TMatrix, Complex32>
where TMatrix : Matrix<Complex32> where TMatrix : Matrix<Complex32>
{ {

3
src/Numerics.IO/LinearAlgebra/Complex32/IO/MatlabReader.cs

@ -24,6 +24,8 @@
// OTHER DEALINGS IN THE SOFTWARE. // OTHER DEALINGS IN THE SOFTWARE.
// </copyright> // </copyright>
using System;
namespace MathNet.Numerics.LinearAlgebra.Complex32.IO namespace MathNet.Numerics.LinearAlgebra.Complex32.IO
{ {
using System.IO; using System.IO;
@ -32,6 +34,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex32.IO
/// <summary> /// <summary>
/// Creates matrices from Matlab files. /// Creates matrices from Matlab files.
/// </summary> /// </summary>
[Obsolete("Use MathNet.Numerics.Data.Matlab instead (separate NuGet package). Scheduled for removal in v3.0.")]
public class MatlabMatrixReader : MatlabMatrixReader<Numerics.Complex32> public class MatlabMatrixReader : MatlabMatrixReader<Numerics.Complex32>
{ {
/// <summary> /// <summary>

1
src/Numerics.IO/LinearAlgebra/Double/IO/DelimitedReader.cs

@ -35,6 +35,7 @@ namespace MathNet.Numerics.LinearAlgebra.Double.IO
/// specify a delimiter, then any whitespace is used. /// specify a delimiter, then any whitespace is used.
/// </summary> /// </summary>
/// <typeparam name="TMatrix">The type of the matrix to return.</typeparam> /// <typeparam name="TMatrix">The type of the matrix to return.</typeparam>
[Obsolete("Use MathNet.Numerics.Data.Text instead (separate NuGet package). Scheduled for removal in v3.0.")]
public class DelimitedReader<TMatrix> : DelimitedReader<TMatrix, double> public class DelimitedReader<TMatrix> : DelimitedReader<TMatrix, double>
where TMatrix : Matrix<double> where TMatrix : Matrix<double>
{ {

3
src/Numerics.IO/LinearAlgebra/Double/IO/MatlabReader.cs

@ -24,6 +24,8 @@
// OTHER DEALINGS IN THE SOFTWARE. // OTHER DEALINGS IN THE SOFTWARE.
// </copyright> // </copyright>
using System;
namespace MathNet.Numerics.LinearAlgebra.Double.IO namespace MathNet.Numerics.LinearAlgebra.Double.IO
{ {
using System.IO; using System.IO;
@ -32,6 +34,7 @@ namespace MathNet.Numerics.LinearAlgebra.Double.IO
/// <summary> /// <summary>
/// Creates matrices from Matlab files. /// Creates matrices from Matlab files.
/// </summary> /// </summary>
[Obsolete("Use MathNet.Numerics.Data.Matlab instead (separate NuGet package). Scheduled for removal in v3.0.")]
public class MatlabMatrixReader : MatlabMatrixReader<double> public class MatlabMatrixReader : MatlabMatrixReader<double>
{ {
/// <summary> /// <summary>

1
src/Numerics.IO/LinearAlgebra/IO/DelimitedReader.cs

@ -43,6 +43,7 @@ namespace MathNet.Numerics.LinearAlgebra.IO
/// </summary> /// </summary>
/// <typeparam name="TMatrix">The type of the matrix to return.</typeparam> /// <typeparam name="TMatrix">The type of the matrix to return.</typeparam>
/// <typeparam name="TDataType">The data type of the Matrix. It can be either: double, float, Complex, or Complex32.</typeparam> /// <typeparam name="TDataType">The data type of the Matrix. It can be either: double, float, Complex, or Complex32.</typeparam>
[Obsolete("Use MathNet.Numerics.Data.Text instead (separate NuGet package). Scheduled for removal in v3.0.")]
public class DelimitedReader<TMatrix, TDataType> : MatrixReader<TMatrix, TDataType> public class DelimitedReader<TMatrix, TDataType> : MatrixReader<TMatrix, TDataType>
where TMatrix : Matrix<TDataType> where TMatrix : Matrix<TDataType>
where TDataType : struct, IEquatable<TDataType>, IFormattable where TDataType : struct, IEquatable<TDataType>, IFormattable

1
src/Numerics.IO/LinearAlgebra/IO/DelimitedWriter.cs

@ -38,6 +38,7 @@ namespace MathNet.Numerics.LinearAlgebra.IO
/// Writes an <see cref="Matrix{TDataType}"/> to delimited text file. If the user does not /// Writes an <see cref="Matrix{TDataType}"/> to delimited text file. If the user does not
/// specify a delimiter, a tab separator is used. /// specify a delimiter, a tab separator is used.
/// </summary> /// </summary>
[Obsolete("Use MathNet.Numerics.Data.Text instead (separate NuGet package). Scheduled for removal in v3.0.")]
public class DelimitedWriter : MatrixWriter public class DelimitedWriter : MatrixWriter
{ {
/// <summary> /// <summary>

3
src/Numerics.IO/LinearAlgebra/IO/Matlab/Adler32.cs

@ -53,8 +53,11 @@
*/ */
using System;
namespace MathNet.Numerics.LinearAlgebra.IO.Matlab namespace MathNet.Numerics.LinearAlgebra.IO.Matlab
{ {
[Obsolete("Use MathNet.Numerics.Data.Matlab instead (separate NuGet package). Scheduled for removal in v3.0.")]
internal static class Adler32 internal static class Adler32
{ {
/* largest prime smaller than 65536 */ /* largest prime smaller than 65536 */

3
src/Numerics.IO/LinearAlgebra/IO/Matlab/ArrayClass.cs

@ -26,11 +26,14 @@
// OTHER DEALINGS IN THE SOFTWARE. // OTHER DEALINGS IN THE SOFTWARE.
// </copyright> // </copyright>
using System;
namespace MathNet.Numerics.LinearAlgebra.IO.Matlab namespace MathNet.Numerics.LinearAlgebra.IO.Matlab
{ {
/// <summary> /// <summary>
/// Enumeration for the Matlab array types /// Enumeration for the Matlab array types
/// </summary> /// </summary>
[Obsolete("Use MathNet.Numerics.Data.Matlab instead (separate NuGet package). Scheduled for removal in v3.0.")]
internal enum ArrayClass : byte internal enum ArrayClass : byte
{ {
/// <summary> /// <summary>

1
src/Numerics.IO/LinearAlgebra/IO/Matlab/ArrayFlags.cs

@ -34,6 +34,7 @@ namespace MathNet.Numerics.LinearAlgebra.IO.Matlab
/// Matlab Array Flags /// Matlab Array Flags
/// </summary> /// </summary>
[Flags] [Flags]
[Obsolete("Use MathNet.Numerics.Data.Matlab instead (separate NuGet package). Scheduled for removal in v3.0.")]
internal enum ArrayFlags internal enum ArrayFlags
{ {
/// <summary> /// <summary>

3
src/Numerics.IO/LinearAlgebra/IO/Matlab/DataType.cs

@ -26,11 +26,14 @@
// OTHER DEALINGS IN THE SOFTWARE. // OTHER DEALINGS IN THE SOFTWARE.
// </copyright> // </copyright>
using System;
namespace MathNet.Numerics.LinearAlgebra.IO.Matlab namespace MathNet.Numerics.LinearAlgebra.IO.Matlab
{ {
/// <summary> /// <summary>
/// Matlab data types /// Matlab data types
/// </summary> /// </summary>
[Obsolete("Use MathNet.Numerics.Data.Matlab instead (separate NuGet package). Scheduled for removal in v3.0.")]
internal enum DataType internal enum DataType
{ {
/// <summary> /// <summary>

1
src/Numerics.IO/LinearAlgebra/IO/Matlab/MatlabFile.cs

@ -36,6 +36,7 @@ namespace MathNet.Numerics.LinearAlgebra.IO.Matlab
/// Represents a Matlab file /// Represents a Matlab file
/// </summary> /// </summary>
/// <typeparam name="TDataType">The data type of the matrix to return.</typeparam> /// <typeparam name="TDataType">The data type of the matrix to return.</typeparam>
[Obsolete("Use MathNet.Numerics.Data.Matlab instead (separate NuGet package). Scheduled for removal in v3.0.")]
internal class MatlabFile<TDataType> where TDataType : struct, IEquatable<TDataType>, IFormattable internal class MatlabFile<TDataType> where TDataType : struct, IEquatable<TDataType>, IFormattable
{ {
/// <summary> /// <summary>

1
src/Numerics.IO/LinearAlgebra/IO/Matlab/MatlabParser.cs

@ -42,6 +42,7 @@ namespace MathNet.Numerics.LinearAlgebra.IO.Matlab
/// Parse a Matlab file /// Parse a Matlab file
/// </summary> /// </summary>
/// <typeparam name="TDataType">The data type of the matrix.</typeparam> /// <typeparam name="TDataType">The data type of the matrix.</typeparam>
[Obsolete("Use MathNet.Numerics.Data.Matlab instead (separate NuGet package). Scheduled for removal in v3.0.")]
internal class MatlabParser<TDataType> internal class MatlabParser<TDataType>
where TDataType : struct, IEquatable<TDataType>, IFormattable where TDataType : struct, IEquatable<TDataType>, IFormattable
{ {

1
src/Numerics.IO/LinearAlgebra/IO/MatlabReader.cs

@ -40,6 +40,7 @@ namespace MathNet.Numerics.LinearAlgebra.IO
/// Creates matrices from Matlab files. /// Creates matrices from Matlab files.
/// </summary> /// </summary>
/// <typeparam name="TDataType">The data type of the Matrix. It can be either: double, float, Complex, or Complex32.</typeparam> /// <typeparam name="TDataType">The data type of the Matrix. It can be either: double, float, Complex, or Complex32.</typeparam>
[Obsolete("Use MathNet.Numerics.Data.Matlab instead (separate NuGet package). Scheduled for removal in v3.0.")]
public class MatlabMatrixReader<TDataType> where TDataType : struct, IEquatable<TDataType>, IFormattable public class MatlabMatrixReader<TDataType> where TDataType : struct, IEquatable<TDataType>, IFormattable
{ {
/// <summary> /// <summary>

1
src/Numerics.IO/LinearAlgebra/IO/MatlabWriter.cs

@ -42,6 +42,7 @@ namespace MathNet.Numerics.LinearAlgebra.IO
/// <summary> /// <summary>
/// Writes matrices to a Matlab file. /// Writes matrices to a Matlab file.
/// </summary> /// </summary>
[Obsolete("Use MathNet.Numerics.Data.Matlab instead (separate NuGet package). Scheduled for removal in v3.0.")]
public class MatlabMatrixWriter : IDisposable public class MatlabMatrixWriter : IDisposable
{ {
/// <summary> /// <summary>

1
src/Numerics.IO/LinearAlgebra/IO/MatrixReader.cs

@ -36,6 +36,7 @@ namespace MathNet.Numerics.LinearAlgebra.IO
/// </summary> /// </summary>
/// <typeparam name="TMatrix">The type of Matrix to return.</typeparam> /// <typeparam name="TMatrix">The type of Matrix to return.</typeparam>
/// <typeparam name="TDataType">The data type of the Matrix. It can be either: double, float, Complex, or Complex32.</typeparam> /// <typeparam name="TDataType">The data type of the Matrix. It can be either: double, float, Complex, or Complex32.</typeparam>
[Obsolete("Use MathNet.Numerics.Data.Text instead (separate NuGet package). Scheduled for removal in v3.0.")]
public abstract class MatrixReader<TMatrix, TDataType> public abstract class MatrixReader<TMatrix, TDataType>
where TMatrix : Matrix<TDataType> where TMatrix : Matrix<TDataType>
where TDataType : struct, IEquatable<TDataType>, IFormattable where TDataType : struct, IEquatable<TDataType>, IFormattable

1
src/Numerics.IO/LinearAlgebra/IO/MatrixWriter.cs

@ -37,6 +37,7 @@ namespace MathNet.Numerics.LinearAlgebra.IO
/// <summary> /// <summary>
/// Base class to write a single <see cref="Matrix{DataType}"/> to a file or stream. /// Base class to write a single <see cref="Matrix{DataType}"/> to a file or stream.
/// </summary> /// </summary>
[Obsolete("Use MathNet.Numerics.Data.Text instead (separate NuGet package). Scheduled for removal in v3.0.")]
public abstract class MatrixWriter public abstract class MatrixWriter
{ {
/// <summary> /// <summary>

1
src/Numerics.IO/LinearAlgebra/Single/IO/DelimitedReader.cs

@ -35,6 +35,7 @@ namespace MathNet.Numerics.LinearAlgebra.Single.IO
/// specify a delimiter, then any whitespace is used. /// specify a delimiter, then any whitespace is used.
/// </summary> /// </summary>
/// <typeparam name="TMatrix">The type of the matrix to return.</typeparam> /// <typeparam name="TMatrix">The type of the matrix to return.</typeparam>
[Obsolete("Use MathNet.Numerics.Data.Text instead (separate NuGet package). Scheduled for removal in v3.0.")]
public class DelimitedReader<TMatrix> : DelimitedReader<TMatrix, float> public class DelimitedReader<TMatrix> : DelimitedReader<TMatrix, float>
where TMatrix : Matrix<float> where TMatrix : Matrix<float>
{ {

3
src/Numerics.IO/LinearAlgebra/Single/IO/MatlabReader.cs

@ -24,6 +24,8 @@
// OTHER DEALINGS IN THE SOFTWARE. // OTHER DEALINGS IN THE SOFTWARE.
// </copyright> // </copyright>
using System;
namespace MathNet.Numerics.LinearAlgebra.Single.IO namespace MathNet.Numerics.LinearAlgebra.Single.IO
{ {
using System.IO; using System.IO;
@ -32,6 +34,7 @@ namespace MathNet.Numerics.LinearAlgebra.Single.IO
/// <summary> /// <summary>
/// Creates matrices from Matlab files. /// Creates matrices from Matlab files.
/// </summary> /// </summary>
[Obsolete("Use MathNet.Numerics.Data.Matlab instead (separate NuGet package). Scheduled for removal in v3.0.")]
public class MatlabMatrixReader : MatlabMatrixReader<float> public class MatlabMatrixReader : MatlabMatrixReader<float>
{ {
/// <summary> /// <summary>

Loading…
Cancel
Save