From 96f66e8ca40efe7916e6a7913543bfc2e69a6699 Mon Sep 17 00:00:00 2001 From: Christoph Ruegg Date: Sun, 7 Apr 2013 21:04:08 +0200 Subject: [PATCH] LA: sparse matrix OfColumnMajor to accept IList instead of just array --- src/Numerics/LinearAlgebra/Complex/SparseMatrix.cs | 2 +- src/Numerics/LinearAlgebra/Complex32/SparseMatrix.cs | 2 +- src/Numerics/LinearAlgebra/Double/SparseMatrix.cs | 2 +- src/Numerics/LinearAlgebra/Single/SparseMatrix.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Numerics/LinearAlgebra/Complex/SparseMatrix.cs b/src/Numerics/LinearAlgebra/Complex/SparseMatrix.cs index 2a5b605c..1a99d6ca 100644 --- a/src/Numerics/LinearAlgebra/Complex/SparseMatrix.cs +++ b/src/Numerics/LinearAlgebra/Complex/SparseMatrix.cs @@ -131,7 +131,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex /// A new memory block will be allocated for storing the matrix. /// /// - public static SparseMatrix OfColumnMajor(int rows, int columns, Complex[] columnMajor) + public static SparseMatrix OfColumnMajor(int rows, int columns, IList columnMajor) { return new SparseMatrix(SparseCompressedRowMatrixStorage.OfColumnMajorList(rows, columns, columnMajor)); } diff --git a/src/Numerics/LinearAlgebra/Complex32/SparseMatrix.cs b/src/Numerics/LinearAlgebra/Complex32/SparseMatrix.cs index 15faf7e3..e74277c3 100644 --- a/src/Numerics/LinearAlgebra/Complex32/SparseMatrix.cs +++ b/src/Numerics/LinearAlgebra/Complex32/SparseMatrix.cs @@ -131,7 +131,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex32 /// A new memory block will be allocated for storing the matrix. /// /// - public static SparseMatrix OfColumnMajor(int rows, int columns, Complex32[] columnMajor) + public static SparseMatrix OfColumnMajor(int rows, int columns, IList columnMajor) { return new SparseMatrix(SparseCompressedRowMatrixStorage.OfColumnMajorList(rows, columns, columnMajor)); } diff --git a/src/Numerics/LinearAlgebra/Double/SparseMatrix.cs b/src/Numerics/LinearAlgebra/Double/SparseMatrix.cs index 80c4e64e..0ed4c50c 100644 --- a/src/Numerics/LinearAlgebra/Double/SparseMatrix.cs +++ b/src/Numerics/LinearAlgebra/Double/SparseMatrix.cs @@ -130,7 +130,7 @@ namespace MathNet.Numerics.LinearAlgebra.Double /// A new memory block will be allocated for storing the matrix. /// /// - public static SparseMatrix OfColumnMajor(int rows, int columns, double[] columnMajor) + public static SparseMatrix OfColumnMajor(int rows, int columns, IList columnMajor) { return new SparseMatrix(SparseCompressedRowMatrixStorage.OfColumnMajorList(rows, columns, columnMajor)); } diff --git a/src/Numerics/LinearAlgebra/Single/SparseMatrix.cs b/src/Numerics/LinearAlgebra/Single/SparseMatrix.cs index d6270828..6fdba1f4 100644 --- a/src/Numerics/LinearAlgebra/Single/SparseMatrix.cs +++ b/src/Numerics/LinearAlgebra/Single/SparseMatrix.cs @@ -130,7 +130,7 @@ namespace MathNet.Numerics.LinearAlgebra.Single /// A new memory block will be allocated for storing the matrix. /// /// - public static SparseMatrix OfColumnMajor(int rows, int columns, float[] columnMajor) + public static SparseMatrix OfColumnMajor(int rows, int columns, IList columnMajor) { return new SparseMatrix(SparseCompressedRowMatrixStorage.OfColumnMajorList(rows, columns, columnMajor)); }