Browse Source

stylecop fixes

la-knuth
Marcus Cuda 16 years ago
parent
commit
676dd39c55
  1. 1
      src/Numerics/LinearAlgebra/Complex/Matrix.cs
  2. 1
      src/Numerics/LinearAlgebra/Complex32/Matrix.cs
  3. 1
      src/Numerics/LinearAlgebra/Double/Matrix.cs
  4. 3
      src/Numerics/LinearAlgebra/Generic/Matrix.Arithmetic.cs
  5. 2
      src/Numerics/LinearAlgebra/Single/Matrix.cs
  6. 8
      src/UnitTests/LinearAlgebraTests/Complex/MatrixTests.Arithmetic.cs
  7. 8
      src/UnitTests/LinearAlgebraTests/Complex32/MatrixTests.Arithmetic.cs
  8. 10
      src/UnitTests/LinearAlgebraTests/Single/MatrixTests.Arithmetic.cs

1
src/Numerics/LinearAlgebra/Complex/Matrix.cs

@ -315,6 +315,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex
{ {
s += At(j, i) * rightSide[j]; s += At(j, i) * rightSide[j];
} }
result[i] = s; result[i] = s;
} }
} }

1
src/Numerics/LinearAlgebra/Complex32/Matrix.cs

@ -315,6 +315,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex32
{ {
s += At(j, i) * rightSide[j]; s += At(j, i) * rightSide[j];
} }
result[i] = s; result[i] = s;
} }
} }

1
src/Numerics/LinearAlgebra/Double/Matrix.cs

@ -305,6 +305,7 @@ namespace MathNet.Numerics.LinearAlgebra.Double
{ {
s += At(j, i) * rightSide[j]; s += At(j, i) * rightSide[j];
} }
result[i] = s; result[i] = s;
} }
} }

3
src/Numerics/LinearAlgebra/Generic/Matrix.Arithmetic.cs

@ -570,7 +570,6 @@ namespace MathNet.Numerics.LinearAlgebra.Generic
/// <param name="result">The result of the multiplication.</param> /// <param name="result">The result of the multiplication.</param>
protected abstract void DoTransposeAndMultiply(Matrix<T> other, Matrix<T> result); protected abstract void DoTransposeAndMultiply(Matrix<T> other, Matrix<T> result);
/// <summary> /// <summary>
/// Multiplies the transpose of this matrix by a vector and returns the result. /// Multiplies the transpose of this matrix by a vector and returns the result.
/// </summary> /// </summary>
@ -635,8 +634,6 @@ namespace MathNet.Numerics.LinearAlgebra.Generic
/// <param name="result">The result of the multiplication.</param> /// <param name="result">The result of the multiplication.</param>
protected abstract void DoTransposeThisAndMultiply(Vector<T> rightSide, Vector<T> result); protected abstract void DoTransposeThisAndMultiply(Vector<T> rightSide, Vector<T> result);
/// <summary> /// <summary>
/// Multiplies the transpose of this matrix with another matrix and places the results into the result matrix. /// Multiplies the transpose of this matrix with another matrix and places the results into the result matrix.
/// </summary> /// </summary>

2
src/Numerics/LinearAlgebra/Single/Matrix.cs

@ -305,11 +305,11 @@ namespace MathNet.Numerics.LinearAlgebra.Single
{ {
s += At(j, i) * rightSide[j]; s += At(j, i) * rightSide[j];
} }
result[i] = s; result[i] = s;
} }
} }
/// <summary> /// <summary>
/// Computes the modulus for each element of the matrix. /// Computes the modulus for each element of the matrix.
/// </summary> /// </summary>

8
src/UnitTests/LinearAlgebraTests/Complex/MatrixTests.Arithmetic.cs

@ -477,7 +477,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex
} }
/// <summary> /// <summary>
/// Subtract operator when right side has fewer columns throws ArgumentOutOfRangeException /// Subtract operator when right side has fewer columns throws <c>ArgumentOutOfRangeException</c>
/// </summary> /// </summary>
[Test] [Test]
public void SubtractOperatorWhenRightSideHasFewerColumnsThrowsArgumentOutOfRangeException() public void SubtractOperatorWhenRightSideHasFewerColumnsThrowsArgumentOutOfRangeException()
@ -488,7 +488,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex
} }
/// <summary> /// <summary>
/// Subtract operator when right side has fewer rows throws ArgumentOutOfRangeException /// Subtract operator when right side has fewer rows <c>ArgumentOutOfRangeException</c>
/// </summary> /// </summary>
[Test] [Test]
public void SubtractOperatorWhenRightSideHasFewerRowsThrowsArgumentOutOfRangeException() public void SubtractOperatorWhenRightSideHasFewerRowsThrowsArgumentOutOfRangeException()
@ -962,7 +962,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex
} }
/// <summary> /// <summary>
/// Can nomalize columns of a matrix. /// Can normalize columns of a matrix.
/// </summary> /// </summary>
/// <param name="p">The norm under which to normalize the columns under.</param> /// <param name="p">The norm under which to normalize the columns under.</param>
[Test, Sequential] [Test, Sequential]
@ -987,7 +987,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex
} }
/// <summary> /// <summary>
/// Can nomalize rows of a matrix. /// Can normalize rows of a matrix.
/// </summary> /// </summary>
/// <param name="p">The norm under which to normalize the rows under.</param> /// <param name="p">The norm under which to normalize the rows under.</param>
[Test, Sequential] [Test, Sequential]

8
src/UnitTests/LinearAlgebraTests/Complex32/MatrixTests.Arithmetic.cs

@ -477,7 +477,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex32
} }
/// <summary> /// <summary>
/// Subtract operator when right side has fewer columns throws ArgumentOutOfRangeException /// Subtract operator when right side has fewer columns throws <c>ArgumentOutOfRangeException</c>
/// </summary> /// </summary>
[Test] [Test]
public void SubtractOperatorWhenRightSideHasFewerColumnsThrowsArgumentOutOfRangeException() public void SubtractOperatorWhenRightSideHasFewerColumnsThrowsArgumentOutOfRangeException()
@ -488,7 +488,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex32
} }
/// <summary> /// <summary>
/// Subtract operator when right side has fewer rows throws ArgumentOutOfRangeException /// Subtract operator when right side has fewer rows <c>ArgumentOutOfRangeException</c>
/// </summary> /// </summary>
[Test] [Test]
public void SubtractOperatorWhenRightSideHasFewerRowsThrowsArgumentOutOfRangeException() public void SubtractOperatorWhenRightSideHasFewerRowsThrowsArgumentOutOfRangeException()
@ -962,7 +962,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex32
} }
/// <summary> /// <summary>
/// Can nomalize columns of a matrix. /// Can normalize columns of a matrix.
/// </summary> /// </summary>
/// <param name="p">The norm under which to normalize the columns under.</param> /// <param name="p">The norm under which to normalize the columns under.</param>
[Test, Sequential] [Test, Sequential]
@ -987,7 +987,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex32
} }
/// <summary> /// <summary>
/// Can nomalize rows of a matrix. /// Can normalize rows of a matrix.
/// </summary> /// </summary>
/// <param name="p">The norm under which to normalize the rows under.</param> /// <param name="p">The norm under which to normalize the rows under.</param>
[Test, Sequential] [Test, Sequential]

10
src/UnitTests/LinearAlgebraTests/Single/MatrixTests.Arithmetic.cs

@ -472,7 +472,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Single
} }
/// <summary> /// <summary>
/// Subtract operator when right side has fewer columns throws ArgumentOutOfRangeException /// Subtract operator when right side has fewer columns throws <c>ArgumentOutOfRangeException</c>
/// </summary> /// </summary>
[Test] [Test]
public void SubtractOperatorWhenRightSideHasFewerColumnsThrowsArgumentOutOfRangeException() public void SubtractOperatorWhenRightSideHasFewerColumnsThrowsArgumentOutOfRangeException()
@ -483,7 +483,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Single
} }
/// <summary> /// <summary>
/// Subtract operator when right side has fewer rows throws ArgumentOutOfRangeException /// Subtract operator when right side has fewer rows throws <c>ArgumentOutOfRangeException</c>
/// </summary> /// </summary>
[Test] [Test]
public void SubtractOperatorWhenRightSideHasFewerRowsThrowsArgumentOutOfRangeException() public void SubtractOperatorWhenRightSideHasFewerRowsThrowsArgumentOutOfRangeException()
@ -685,7 +685,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Single
public void CanTransposeThisAndMultiplyWithVector() public void CanTransposeThisAndMultiplyWithVector()
{ {
var matrix = TestMatrices["Singular3x3"]; 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); var y = matrix.TransposeThisAndMultiply(x);
Assert.AreEqual(matrix.ColumnCount, y.Count); Assert.AreEqual(matrix.ColumnCount, y.Count);
@ -957,7 +957,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Single
} }
/// <summary> /// <summary>
/// Can nomalize columns of a matrix. /// Can normalize columns of a matrix.
/// </summary> /// </summary>
/// <param name="p">The norm under which to normalize the columns under.</param> /// <param name="p">The norm under which to normalize the columns under.</param>
[Test, Sequential] [Test, Sequential]
@ -982,7 +982,7 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Single
} }
/// <summary> /// <summary>
/// Can nomalize rows of a matrix. /// Can normalize rows of a matrix.
/// </summary> /// </summary>
/// <param name="p">The norm under which to normalize the rows under.</param> /// <param name="p">The norm under which to normalize the rows under.</param>
[Test, Sequential] [Test, Sequential]

Loading…
Cancel
Save