Browse Source

Merge tag 'v3.0.2'

Math.NET Numerics v3.0.2

Patch release, fixing a bug in Matrix.RemoveRow range checks.
provider
Christoph Ruegg 12 years ago
parent
commit
871699a419
  1. 3
      RELEASENOTES.md
  2. 6
      src/FSharp/AssemblyInfo.fs
  3. 6
      src/FSharpUnitTests/AssemblyInfo.fs
  4. 2
      src/Numerics/LinearAlgebra/Matrix.cs
  5. 6
      src/Numerics/Properties/AssemblyInfo.cs
  6. 2
      src/UnitTests/LinearAlgebraTests/MatrixStructureTheory.Reform.cs
  7. 6
      src/UnitTests/Properties/AssemblyInfo.cs

3
RELEASENOTES.md

@ -1,3 +1,6 @@
### 3.0.2 - 2014-06-26
* Patch release, fixing a bug in Matrix.RemoveRow range checks.
### 3.0.1 - 2014-06-24 ### 3.0.1 - 2014-06-24
* Patch release, fixing a bug in new Matrix.ToMatrixString and Vector.ToVectorString routines. * Patch release, fixing a bug in new Matrix.ToMatrixString and Vector.ToVectorString routines.

6
src/FSharp/AssemblyInfo.fs

@ -45,9 +45,9 @@ open System.Runtime.InteropServices
[<assembly: AssemblyCulture("")>] [<assembly: AssemblyCulture("")>]
[<assembly: NeutralResourcesLanguage("en")>] [<assembly: NeutralResourcesLanguage("en")>]
[<assembly: AssemblyVersion("3.0.1.0")>] [<assembly: AssemblyVersion("3.0.2.0")>]
[<assembly: AssemblyFileVersion("3.0.1.0")>] [<assembly: AssemblyFileVersion("3.0.2.0")>]
[<assembly: AssemblyInformationalVersion("3.0.1")>] [<assembly: AssemblyInformationalVersion("3.0.2")>]
#if PORTABLE #if PORTABLE
#else #else

6
src/FSharpUnitTests/AssemblyInfo.fs

@ -9,9 +9,9 @@ open System.Runtime.InteropServices
[<assembly: AssemblyCompany("Math.NET Project")>] [<assembly: AssemblyCompany("Math.NET Project")>]
[<assembly: AssemblyProduct("Math.NET Numerics")>] [<assembly: AssemblyProduct("Math.NET Numerics")>]
[<assembly: AssemblyVersion("3.0.1.0")>] [<assembly: AssemblyVersion("3.0.2.0")>]
[<assembly: AssemblyFileVersion("3.0.1.0")>] [<assembly: AssemblyFileVersion("3.0.2.0")>]
[<assembly: AssemblyInformationalVersion("3.0.1")>] [<assembly: AssemblyInformationalVersion("3.0.2")>]
#if PORTABLE #if PORTABLE
#else #else

2
src/Numerics/LinearAlgebra/Matrix.cs

@ -836,7 +836,7 @@ namespace MathNet.Numerics.LinearAlgebra
/// <exception cref="ArgumentOutOfRangeException">If <paramref name="rowIndex"/> is &lt; zero or &gt; the number of rows.</exception> /// <exception cref="ArgumentOutOfRangeException">If <paramref name="rowIndex"/> is &lt; zero or &gt; the number of rows.</exception>
public Matrix<T> RemoveRow(int rowIndex) public Matrix<T> RemoveRow(int rowIndex)
{ {
if (rowIndex < 0 || rowIndex > ColumnCount) if (rowIndex < 0 || rowIndex > RowCount)
{ {
throw new ArgumentOutOfRangeException("rowIndex"); throw new ArgumentOutOfRangeException("rowIndex");
} }

6
src/Numerics/Properties/AssemblyInfo.cs

@ -45,9 +45,9 @@ using System.Runtime.InteropServices;
[assembly: CLSCompliant(true)] [assembly: CLSCompliant(true)]
[assembly: NeutralResourcesLanguage("en")] [assembly: NeutralResourcesLanguage("en")]
[assembly: AssemblyVersion("3.0.1.0")] [assembly: AssemblyVersion("3.0.2.0")]
[assembly: AssemblyFileVersion("3.0.1.0")] [assembly: AssemblyFileVersion("3.0.2.0")]
[assembly: AssemblyInformationalVersion("3.0.1")] [assembly: AssemblyInformationalVersion("3.0.2")]
#if PORTABLE #if PORTABLE

2
src/UnitTests/LinearAlgebraTests/MatrixStructureTheory.Reform.cs

@ -134,7 +134,6 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests
[Theory] [Theory]
public void CanRemoveRow(Matrix<T> matrix) public void CanRemoveRow(Matrix<T> matrix)
{ {
var row = Vector<T>.Build.Random(matrix.ColumnCount, 0);
for (var position = 0; position < matrix.RowCount; position++) for (var position = 0; position < matrix.RowCount; position++)
{ {
var result = matrix.RemoveRow(position); var result = matrix.RemoveRow(position);
@ -195,7 +194,6 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests
[Theory] [Theory]
public void CanRemoveColumn(Matrix<T> matrix) public void CanRemoveColumn(Matrix<T> matrix)
{ {
var column = Vector<T>.Build.Random(matrix.RowCount, 0);
for (var position = 0; position < matrix.ColumnCount; position++) for (var position = 0; position < matrix.ColumnCount; position++)
{ {
var result = matrix.RemoveColumn(position); var result = matrix.RemoveColumn(position);

6
src/UnitTests/Properties/AssemblyInfo.cs

@ -8,8 +8,8 @@ using MathNet.Numerics.UnitTests;
[assembly: ComVisible(false)] [assembly: ComVisible(false)]
[assembly: Guid("04157581-63f3-447b-a277-83c6e69126a4")] [assembly: Guid("04157581-63f3-447b-a277-83c6e69126a4")]
[assembly: AssemblyVersion("3.0.1.0")] [assembly: AssemblyVersion("3.0.2.0")]
[assembly: AssemblyFileVersion("3.0.1.0")] [assembly: AssemblyFileVersion("3.0.2.0")]
[assembly: AssemblyInformationalVersion("3.0.1")] [assembly: AssemblyInformationalVersion("3.0.2")]
[assembly: UseLinearAlgebraProvider] [assembly: UseLinearAlgebraProvider]

Loading…
Cancel
Save