Browse Source

Cosmetics

v2
Christoph Ruegg 14 years ago
parent
commit
6908674873
  1. 1
      src/Numerics/LinearAlgebra/Storage/DenseColumnMajorMatrixStorage.cs
  2. 18
      src/UnitTests/LinearAlgebraTests/Complex/MatrixLoader.cs
  3. 18
      src/UnitTests/LinearAlgebraTests/Complex32/MatrixLoader.cs
  4. 18
      src/UnitTests/LinearAlgebraTests/Double/MatrixLoader.cs
  5. 18
      src/UnitTests/LinearAlgebraTests/Single/MatrixLoader.cs

1
src/Numerics/LinearAlgebra/Storage/DenseColumnMajorMatrixStorage.cs

@ -130,7 +130,6 @@ namespace MathNet.Numerics.LinearAlgebra.Storage
{ {
for (var i = 0; i < storage.RowCount; i++) for (var i = 0; i < storage.RowCount; i++)
{ {
storage.Data[index++] = init(i, j); storage.Data[index++] = init(i, j);
} }
} }

18
src/UnitTests/LinearAlgebraTests/Complex/MatrixLoader.cs

@ -3,7 +3,9 @@
// http://numerics.mathdotnet.com // http://numerics.mathdotnet.com
// http://github.com/mathnet/mathnet-numerics // http://github.com/mathnet/mathnet-numerics
// http://mathnetnumerics.codeplex.com // http://mathnetnumerics.codeplex.com
// Copyright (c) 2009-2010 Math.NET //
// Copyright (c) 2009-2013 Math.NET
//
// Permission is hereby granted, free of charge, to any person // Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation // obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without // files (the "Software"), to deal in the Software without
@ -12,8 +14,10 @@
// copies of the Software, and to permit persons to whom the // copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following // Software is furnished to do so, subject to the following
// conditions: // conditions:
//
// The above copyright notice and this permission notice shall be // The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software. // included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
@ -42,20 +46,12 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex
/// <summary> /// <summary>
/// Gets or sets test matrices values to use. /// Gets or sets test matrices values to use.
/// </summary> /// </summary>
protected Dictionary<string, Complex[,]> TestData2D protected Dictionary<string, Complex[,]> TestData2D { get; set; }
{
get;
set;
}
/// <summary> /// <summary>
/// Gets or sets test matrices instances to use. /// Gets or sets test matrices instances to use.
/// </summary> /// </summary>
protected Dictionary<string, Matrix> TestMatrices protected Dictionary<string, Matrix> TestMatrices { get; set; }
{
get;
set;
}
/// <summary> /// <summary>
/// Creates a matrix for the given number of rows and columns. /// Creates a matrix for the given number of rows and columns.

18
src/UnitTests/LinearAlgebraTests/Complex32/MatrixLoader.cs

@ -3,7 +3,9 @@
// http://numerics.mathdotnet.com // http://numerics.mathdotnet.com
// http://github.com/mathnet/mathnet-numerics // http://github.com/mathnet/mathnet-numerics
// http://mathnetnumerics.codeplex.com // http://mathnetnumerics.codeplex.com
// Copyright (c) 2009-2010 Math.NET //
// Copyright (c) 2009-2013 Math.NET
//
// Permission is hereby granted, free of charge, to any person // Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation // obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without // files (the "Software"), to deal in the Software without
@ -12,8 +14,10 @@
// copies of the Software, and to permit persons to whom the // copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following // Software is furnished to do so, subject to the following
// conditions: // conditions:
//
// The above copyright notice and this permission notice shall be // The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software. // included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
@ -42,20 +46,12 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex32
/// <summary> /// <summary>
/// Gets or sets test matrices values to use. /// Gets or sets test matrices values to use.
/// </summary> /// </summary>
protected Dictionary<string, Complex32[,]> TestData2D protected Dictionary<string, Complex32[,]> TestData2D { get; set; }
{
get;
set;
}
/// <summary> /// <summary>
/// Gets or sets test matrices instances to use. /// Gets or sets test matrices instances to use.
/// </summary> /// </summary>
protected Dictionary<string, Matrix> TestMatrices protected Dictionary<string, Matrix> TestMatrices { get; set; }
{
get;
set;
}
/// <summary> /// <summary>
/// Creates a matrix for the given number of rows and columns. /// Creates a matrix for the given number of rows and columns.

18
src/UnitTests/LinearAlgebraTests/Double/MatrixLoader.cs

@ -3,7 +3,9 @@
// http://numerics.mathdotnet.com // http://numerics.mathdotnet.com
// http://github.com/mathnet/mathnet-numerics // http://github.com/mathnet/mathnet-numerics
// http://mathnetnumerics.codeplex.com // http://mathnetnumerics.codeplex.com
// Copyright (c) 2009-2010 Math.NET //
// Copyright (c) 2009-2013 Math.NET
//
// Permission is hereby granted, free of charge, to any person // Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation // obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without // files (the "Software"), to deal in the Software without
@ -12,8 +14,10 @@
// copies of the Software, and to permit persons to whom the // copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following // Software is furnished to do so, subject to the following
// conditions: // conditions:
//
// The above copyright notice and this permission notice shall be // The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software. // included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
@ -41,20 +45,12 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Double
/// <summary> /// <summary>
/// Gets or sets test matrices values to use. /// Gets or sets test matrices values to use.
/// </summary> /// </summary>
protected Dictionary<string, double[,]> TestData2D protected Dictionary<string, double[,]> TestData2D { get; set; }
{
get;
set;
}
/// <summary> /// <summary>
/// Gets or sets test matrices instances to use. /// Gets or sets test matrices instances to use.
/// </summary> /// </summary>
protected Dictionary<string, Matrix> TestMatrices protected Dictionary<string, Matrix> TestMatrices { get; set; }
{
get;
set;
}
/// <summary> /// <summary>
/// Creates a matrix for the given number of rows and columns. /// Creates a matrix for the given number of rows and columns.

18
src/UnitTests/LinearAlgebraTests/Single/MatrixLoader.cs

@ -3,7 +3,9 @@
// http://numerics.mathdotnet.com // http://numerics.mathdotnet.com
// http://github.com/mathnet/mathnet-numerics // http://github.com/mathnet/mathnet-numerics
// http://mathnetnumerics.codeplex.com // http://mathnetnumerics.codeplex.com
// Copyright (c) 2009-2010 Math.NET //
// Copyright (c) 2009-2013 Math.NET
//
// Permission is hereby granted, free of charge, to any person // Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation // obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without // files (the "Software"), to deal in the Software without
@ -12,8 +14,10 @@
// copies of the Software, and to permit persons to whom the // copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following // Software is furnished to do so, subject to the following
// conditions: // conditions:
//
// The above copyright notice and this permission notice shall be // The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software. // included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
@ -41,20 +45,12 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Single
/// <summary> /// <summary>
/// Gets or sets test matrices values to use. /// Gets or sets test matrices values to use.
/// </summary> /// </summary>
protected Dictionary<string, float[,]> TestData2D protected Dictionary<string, float[,]> TestData2D { get; set; }
{
get;
set;
}
/// <summary> /// <summary>
/// Gets or sets test matrices instances to use. /// Gets or sets test matrices instances to use.
/// </summary> /// </summary>
protected Dictionary<string, Matrix> TestMatrices protected Dictionary<string, Matrix> TestMatrices { get; set; }
{
get;
set;
}
/// <summary> /// <summary>
/// Creates a matrix for the given number of rows and columns. /// Creates a matrix for the given number of rows and columns.

Loading…
Cancel
Save