|
|
|
@ -102,7 +102,13 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex.Factorization |
|
|
|
/// Can factorize a symmetric random square matrix.
|
|
|
|
/// </summary> <param name="order">Matrix order.</param>
|
|
|
|
[Test] |
|
|
|
public void CanFactorizeRandomSymmetricMatrix([Values(1, 2, 5, 10, 50, 100)] int order) |
|
|
|
[TestCase(1)] |
|
|
|
[TestCase(2)] |
|
|
|
[TestCase(5)] |
|
|
|
[TestCase(10)] |
|
|
|
[TestCase(50)] |
|
|
|
[TestCase(100)] |
|
|
|
public void CanFactorizeRandomSymmetricMatrix(int order) |
|
|
|
{ |
|
|
|
var matrixA = MatrixLoader.GenerateRandomPositiveDefiniteHermitianDenseMatrix(order); |
|
|
|
var factorEvd = matrixA.Evd(); |
|
|
|
@ -179,7 +185,13 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex.Factorization |
|
|
|
/// </summary>
|
|
|
|
/// <param name="order">Matrix order.</param>
|
|
|
|
[Test] |
|
|
|
public void CanSolveForRandomVectorAndSymmetricMatrix([Values(1, 2, 5, 10, 50, 100)] int order) |
|
|
|
[TestCase(1)] |
|
|
|
[TestCase(2)] |
|
|
|
[TestCase(5, Ignore = true, IgnoreReason = "Problem with native providers determining if the matrix is symmetric.")] |
|
|
|
[TestCase(10)] |
|
|
|
[TestCase(50)] |
|
|
|
[TestCase(100)] |
|
|
|
public void CanSolveForRandomVectorAndSymmetricMatrix(int order) |
|
|
|
{ |
|
|
|
var matrixA = MatrixLoader.GenerateRandomPositiveDefiniteHermitianDenseMatrix(order); |
|
|
|
var matrixACopy = matrixA.Clone(); |
|
|
|
@ -213,7 +225,13 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex.Factorization |
|
|
|
/// </summary>
|
|
|
|
/// <param name="order">Matrix order.</param>
|
|
|
|
[Test] |
|
|
|
public void CanSolveForRandomMatrixAndSymmetricMatrix([Values(1, 2, 5, 10, 50, 100)] int order) |
|
|
|
[TestCase(1)] |
|
|
|
[TestCase(2)] |
|
|
|
[TestCase(5, Ignore = true, IgnoreReason = "Problem with native providers determining if the matrix is symmetric.")] |
|
|
|
[TestCase(10)] |
|
|
|
[TestCase(50)] |
|
|
|
[TestCase(100)] |
|
|
|
public void CanSolveForRandomMatrixAndSymmetricMatrix(int order) |
|
|
|
{ |
|
|
|
var matrixA = MatrixLoader.GenerateRandomPositiveDefiniteHermitianDenseMatrix(order); |
|
|
|
var matrixACopy = matrixA.Clone(); |
|
|
|
@ -254,7 +272,13 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex.Factorization |
|
|
|
/// </summary>
|
|
|
|
/// <param name="order">Matrix order.</param>
|
|
|
|
[Test] |
|
|
|
public void CanSolveForRandomVectorAndSymmetricMatrixWhenResultVectorGiven([Values(1, 2, 5, 10, 50, 100)] int order) |
|
|
|
[TestCase(1)] |
|
|
|
[TestCase(2)] |
|
|
|
[TestCase(5, Ignore = true, IgnoreReason = "Problem with native providers determining if the matrix is symmetric.")] |
|
|
|
[TestCase(10)] |
|
|
|
[TestCase(50)] |
|
|
|
[TestCase(100)] |
|
|
|
public void CanSolveForRandomVectorAndSymmetricMatrixWhenResultVectorGiven(int order) |
|
|
|
{ |
|
|
|
var matrixA = MatrixLoader.GenerateRandomPositiveDefiniteHermitianDenseMatrix(order); |
|
|
|
var matrixACopy = matrixA.Clone(); |
|
|
|
@ -293,7 +317,13 @@ namespace MathNet.Numerics.UnitTests.LinearAlgebraTests.Complex.Factorization |
|
|
|
/// </summary>
|
|
|
|
/// <param name="order">Matrix order.</param>
|
|
|
|
[Test] |
|
|
|
public void CanSolveForRandomMatrixAndSymmetricMatrixWhenResultMatrixGiven([Values(1, 2, 5, 10, 50, 100)] int order) |
|
|
|
[TestCase(1)] |
|
|
|
[TestCase(2)] |
|
|
|
[TestCase(5, Ignore = true, IgnoreReason = "Problem with native providers determining if the matrix is symmetric.")] |
|
|
|
[TestCase(10)] |
|
|
|
[TestCase(50)] |
|
|
|
[TestCase(100)] |
|
|
|
public void CanSolveForRandomMatrixAndSymmetricMatrixWhenResultMatrixGiven(int order) |
|
|
|
{ |
|
|
|
var matrixA = MatrixLoader.GenerateRandomPositiveDefiniteHermitianDenseMatrix(order); |
|
|
|
var matrixACopy = matrixA.Clone(); |
|
|
|
|