From 676dd39c55694cbf9d12159c224999361367894b Mon Sep 17 00:00:00 2001 From: Marcus Cuda Date: Thu, 17 Mar 2011 15:35:02 +0200 Subject: [PATCH] stylecop fixes --- src/Numerics/LinearAlgebra/Complex/Matrix.cs | 1 + src/Numerics/LinearAlgebra/Complex32/Matrix.cs | 1 + src/Numerics/LinearAlgebra/Double/Matrix.cs | 1 + .../LinearAlgebra/Generic/Matrix.Arithmetic.cs | 3 --- src/Numerics/LinearAlgebra/Single/Matrix.cs | 2 +- .../Complex/MatrixTests.Arithmetic.cs | 8 ++++---- .../Complex32/MatrixTests.Arithmetic.cs | 8 ++++---- .../Single/MatrixTests.Arithmetic.cs | 10 +++++----- 8 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/Numerics/LinearAlgebra/Complex/Matrix.cs b/src/Numerics/LinearAlgebra/Complex/Matrix.cs index eafa1633..aa06875a 100644 --- a/src/Numerics/LinearAlgebra/Complex/Matrix.cs +++ b/src/Numerics/LinearAlgebra/Complex/Matrix.cs @@ -315,6 +315,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex { s += At(j, i) * rightSide[j]; } + result[i] = s; } } diff --git a/src/Numerics/LinearAlgebra/Complex32/Matrix.cs b/src/Numerics/LinearAlgebra/Complex32/Matrix.cs index e301daba..150cf40a 100644 --- a/src/Numerics/LinearAlgebra/Complex32/Matrix.cs +++ b/src/Numerics/LinearAlgebra/Complex32/Matrix.cs @@ -315,6 +315,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex32 { s += At(j, i) * rightSide[j]; } + result[i] = s; } } diff --git a/src/Numerics/LinearAlgebra/Double/Matrix.cs b/src/Numerics/LinearAlgebra/Double/Matrix.cs index 71760c38..b6597cb1 100644 --- a/src/Numerics/LinearAlgebra/Double/Matrix.cs +++ b/src/Numerics/LinearAlgebra/Double/Matrix.cs @@ -305,6 +305,7 @@ namespace MathNet.Numerics.LinearAlgebra.Double { s += At(j, i) * rightSide[j]; } + result[i] = s; } } diff --git a/src/Numerics/LinearAlgebra/Generic/Matrix.Arithmetic.cs b/src/Numerics/LinearAlgebra/Generic/Matrix.Arithmetic.cs index ea23a0ce..faa68ea2 100644 --- a/src/Numerics/LinearAlgebra/Generic/Matrix.Arithmetic.cs +++ b/src/Numerics/LinearAlgebra/Generic/Matrix.Arithmetic.cs @@ -570,7 +570,6 @@ namespace MathNet.Numerics.LinearAlgebra.Generic /// The result of the multiplication. protected abstract void DoTransposeAndMultiply(Matrix other, Matrix result); - /// /// Multiplies the transpose of this matrix by a vector and returns the result. /// @@ -635,8 +634,6 @@ namespace MathNet.Numerics.LinearAlgebra.Generic /// The result of the multiplication. protected abstract void DoTransposeThisAndMultiply(Vector rightSide, Vector result); - - /// /// Multiplies the transpose of this matrix with another matrix and places the results into the result matrix. /// diff --git a/src/Numerics/LinearAlgebra/Single/Matrix.cs b/src/Numerics/LinearAlgebra/Single/Matrix.cs index b4ff2426..abd8f26a 100644 --- a/src/Numerics/LinearAlgebra/Single/Matrix.cs +++ b/src/Numerics/LinearAlgebra/Single/Matrix.cs @@ -305,11 +305,11 @@ namespace MathNet.Numerics.LinearAlgebra.Single { s += At(j, i) * rightSide[j]; } + result[i] = s; } } - /// /// Computes the modulus for each element of the matrix. /// diff --git a/src/UnitTests/LinearAlgebraTests/Complex/MatrixTests.Arithmetic.cs b/src/UnitTests/LinearAlgebraTests/Complex/MatrixTests.Arithmetic.cs index 904c530d..0e826c8a 100644 --- a/src/UnitTests/LinearAlgebraTests/Complex/MatrixTests.Arithmetic.cs +++ b/src/UnitTests/LinearAlgebraTests/Complex/MatrixTests.Arithmetic.cs @@ -477,7 +477,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex } /// - /// Subtract operator when right side has fewer columns throws ArgumentOutOfRangeException + /// Subtract operator when right side has fewer columns throws ArgumentOutOfRangeException /// [Test] public void SubtractOperatorWhenRightSideHasFewerColumnsThrowsArgumentOutOfRangeException() @@ -488,7 +488,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex } /// - /// Subtract operator when right side has fewer rows throws ArgumentOutOfRangeException + /// Subtract operator when right side has fewer rows ArgumentOutOfRangeException /// [Test] public void SubtractOperatorWhenRightSideHasFewerRowsThrowsArgumentOutOfRangeException() @@ -962,7 +962,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex } /// - /// Can nomalize columns of a matrix. + /// Can normalize columns of a matrix. /// /// The norm under which to normalize the columns under. [Test, Sequential] @@ -987,7 +987,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex } /// - /// Can nomalize rows of a matrix. + /// Can normalize rows of a matrix. /// /// The norm under which to normalize the rows under. [Test, Sequential] diff --git a/src/UnitTests/LinearAlgebraTests/Complex32/MatrixTests.Arithmetic.cs b/src/UnitTests/LinearAlgebraTests/Complex32/MatrixTests.Arithmetic.cs index adb815e4..c3c680ea 100644 --- a/src/UnitTests/LinearAlgebraTests/Complex32/MatrixTests.Arithmetic.cs +++ b/src/UnitTests/LinearAlgebraTests/Complex32/MatrixTests.Arithmetic.cs @@ -477,7 +477,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex32 } /// - /// Subtract operator when right side has fewer columns throws ArgumentOutOfRangeException + /// Subtract operator when right side has fewer columns throws ArgumentOutOfRangeException /// [Test] public void SubtractOperatorWhenRightSideHasFewerColumnsThrowsArgumentOutOfRangeException() @@ -488,7 +488,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex32 } /// - /// Subtract operator when right side has fewer rows throws ArgumentOutOfRangeException + /// Subtract operator when right side has fewer rows ArgumentOutOfRangeException /// [Test] public void SubtractOperatorWhenRightSideHasFewerRowsThrowsArgumentOutOfRangeException() @@ -962,7 +962,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex32 } /// - /// Can nomalize columns of a matrix. + /// Can normalize columns of a matrix. /// /// The norm under which to normalize the columns under. [Test, Sequential] @@ -987,7 +987,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex32 } /// - /// Can nomalize rows of a matrix. + /// Can normalize rows of a matrix. /// /// The norm under which to normalize the rows under. [Test, Sequential] diff --git a/src/UnitTests/LinearAlgebraTests/Single/MatrixTests.Arithmetic.cs b/src/UnitTests/LinearAlgebraTests/Single/MatrixTests.Arithmetic.cs index 45badf4b..32172cce 100644 --- a/src/UnitTests/LinearAlgebraTests/Single/MatrixTests.Arithmetic.cs +++ b/src/UnitTests/LinearAlgebraTests/Single/MatrixTests.Arithmetic.cs @@ -472,7 +472,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Single } /// - /// Subtract operator when right side has fewer columns throws ArgumentOutOfRangeException + /// Subtract operator when right side has fewer columns throws ArgumentOutOfRangeException /// [Test] public void SubtractOperatorWhenRightSideHasFewerColumnsThrowsArgumentOutOfRangeException() @@ -483,7 +483,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Single } /// - /// Subtract operator when right side has fewer rows throws ArgumentOutOfRangeException + /// Subtract operator when right side has fewer rows throws ArgumentOutOfRangeException /// [Test] public void SubtractOperatorWhenRightSideHasFewerRowsThrowsArgumentOutOfRangeException() @@ -685,7 +685,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Single public void CanTransposeThisAndMultiplyWithVector() { var matrix = TestMatrices["Singular3x3"]; - var x = new DenseVector(new [] { 1.0f, 2.0f, 3.0f }); + var x = new DenseVector(new[] { 1.0f, 2.0f, 3.0f }); var y = matrix.TransposeThisAndMultiply(x); Assert.AreEqual(matrix.ColumnCount, y.Count); @@ -957,7 +957,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Single } /// - /// Can nomalize columns of a matrix. + /// Can normalize columns of a matrix. /// /// The norm under which to normalize the columns under. [Test, Sequential] @@ -982,7 +982,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Single } /// - /// Can nomalize rows of a matrix. + /// Can normalize rows of a matrix. /// /// The norm under which to normalize the rows under. [Test, Sequential]