From 733ce50abf85ba9aa962a37f85b9c0ee9bd72408 Mon Sep 17 00:00:00 2001 From: VicPara Date: Fri, 16 Nov 2012 13:00:19 +0200 Subject: [PATCH] SparseMatrix marked as Serializable MathNet.Numerics.LinearAlgebra.Storage.MatrixStorage and MathNet.Numerics.LinearAlgebra.Storage.SparseCompressedRowMatrixStorage have been marked as Serializable Update by ruegg: mark all other storage classes as Serializable as well, get rid of tabs --- .../LinearAlgebra/Storage/DenseColumnMajorMatrixStorage.cs | 1 + src/Numerics/LinearAlgebra/Storage/DenseVectorStorage.cs | 1 + src/Numerics/LinearAlgebra/Storage/DiagonalMatrixStorage.cs | 1 + src/Numerics/LinearAlgebra/Storage/MatrixStorage.cs | 1 + .../LinearAlgebra/Storage/SparseCompressedRowMatrixStorage.cs | 1 + src/Numerics/LinearAlgebra/Storage/VectorStorage.cs | 1 + 6 files changed, 6 insertions(+) diff --git a/src/Numerics/LinearAlgebra/Storage/DenseColumnMajorMatrixStorage.cs b/src/Numerics/LinearAlgebra/Storage/DenseColumnMajorMatrixStorage.cs index 370d24bb..1a654550 100644 --- a/src/Numerics/LinearAlgebra/Storage/DenseColumnMajorMatrixStorage.cs +++ b/src/Numerics/LinearAlgebra/Storage/DenseColumnMajorMatrixStorage.cs @@ -3,6 +3,7 @@ using MathNet.Numerics.Properties; namespace MathNet.Numerics.LinearAlgebra.Storage { + [Serializable] public class DenseColumnMajorMatrixStorage : MatrixStorage where T : struct, IEquatable, IFormattable { diff --git a/src/Numerics/LinearAlgebra/Storage/DenseVectorStorage.cs b/src/Numerics/LinearAlgebra/Storage/DenseVectorStorage.cs index ab7a5321..de2ef219 100644 --- a/src/Numerics/LinearAlgebra/Storage/DenseVectorStorage.cs +++ b/src/Numerics/LinearAlgebra/Storage/DenseVectorStorage.cs @@ -3,6 +3,7 @@ using MathNet.Numerics.Properties; namespace MathNet.Numerics.LinearAlgebra.Storage { + [Serializable] public class DenseVectorStorage : VectorStorage where T : struct, IEquatable, IFormattable { diff --git a/src/Numerics/LinearAlgebra/Storage/DiagonalMatrixStorage.cs b/src/Numerics/LinearAlgebra/Storage/DiagonalMatrixStorage.cs index 23be0ad1..662dcac9 100644 --- a/src/Numerics/LinearAlgebra/Storage/DiagonalMatrixStorage.cs +++ b/src/Numerics/LinearAlgebra/Storage/DiagonalMatrixStorage.cs @@ -4,6 +4,7 @@ using MathNet.Numerics.Properties; namespace MathNet.Numerics.LinearAlgebra.Storage { + [Serializable] public class DiagonalMatrixStorage : MatrixStorage where T : struct, IEquatable, IFormattable { diff --git a/src/Numerics/LinearAlgebra/Storage/MatrixStorage.cs b/src/Numerics/LinearAlgebra/Storage/MatrixStorage.cs index fbff9e9c..f9f40e93 100644 --- a/src/Numerics/LinearAlgebra/Storage/MatrixStorage.cs +++ b/src/Numerics/LinearAlgebra/Storage/MatrixStorage.cs @@ -3,6 +3,7 @@ using MathNet.Numerics.Properties; namespace MathNet.Numerics.LinearAlgebra.Storage { + [Serializable] public abstract partial class MatrixStorage : IEquatable> where T : struct, IEquatable, IFormattable { diff --git a/src/Numerics/LinearAlgebra/Storage/SparseCompressedRowMatrixStorage.cs b/src/Numerics/LinearAlgebra/Storage/SparseCompressedRowMatrixStorage.cs index 7a245fa4..ca96cc4e 100644 --- a/src/Numerics/LinearAlgebra/Storage/SparseCompressedRowMatrixStorage.cs +++ b/src/Numerics/LinearAlgebra/Storage/SparseCompressedRowMatrixStorage.cs @@ -4,6 +4,7 @@ using MathNet.Numerics.Properties; namespace MathNet.Numerics.LinearAlgebra.Storage { + [Serializable] public class SparseCompressedRowMatrixStorage : MatrixStorage where T : struct, IEquatable, IFormattable { diff --git a/src/Numerics/LinearAlgebra/Storage/VectorStorage.cs b/src/Numerics/LinearAlgebra/Storage/VectorStorage.cs index 72e02345..949573c2 100644 --- a/src/Numerics/LinearAlgebra/Storage/VectorStorage.cs +++ b/src/Numerics/LinearAlgebra/Storage/VectorStorage.cs @@ -3,6 +3,7 @@ using MathNet.Numerics.Properties; namespace MathNet.Numerics.LinearAlgebra.Storage { + [Serializable] public abstract partial class VectorStorage : IEquatable> where T : struct, IEquatable, IFormattable {