IGLib
1.5
The IGLib base library for development of numerical, technical and business applications.
|
Various utilities for testing computational speed of the current system. More...
Static Public Member Functions | |
static double | TestComputationalTimesQR (int numEq, int outLevel) |
Test of QR decomposition. Writes times necessary for all steps. More... | |
static double | TestComputationalTimesQR (int numEq, int outLevel, bool testProduct) |
Test of QR decomposition, also measures time necessary fo rindividual operations. More... | |
static double | TestComputationalTimesLU (int numEq, int outLevel) |
Test of LU decomposition. More... | |
static double | TestComputationalTimesLU (int numEq, int outLevel, bool testProduct) |
Test of LU decomposition. More... | |
static double | TestComputationalTimesCholesky (int numEq, int outLevel) |
Test of Cholesky decomposition, also measures time necessary fo rindividual operations. More... | |
static double | TestComputationalTimesCholesky (int numEq, int outLevel, bool testProduct) |
Test of Cholesky decomposition, also measures time necessary fo rindividual operations. More... | |
static double | TestComputationalTimesLU_IGLib (int numEq, int outLevel, bool testProduct=false) |
Test of LU decomposition. More... | |
static double | TestComputationalTimesQR_IGLib (int numEq, int outLevel, bool testProduct=false) |
Test of QR decomposition, also measures time necessary fo rindividual operations. More... | |
static double | TestComputationalTimesCholesky_IGLib (int numEq, int outLevel, bool testProduct=false) |
Test of Cholesky decomposition, also measures time necessary fo rindividual operations. More... | |
static double | TestComputationalTimesLU_Base (int numEq, int outLevel, bool testProduct=false) |
Test of LU decomposition. More... | |
static double | TestComputationalTimesCholesky_Base (int numEq, int outLevel, bool testProduct=false) |
Test of Cholesky decomposition, also measures time necessary fo rindividual operations. More... | |
static double | TestComputationalTimesLdlt_Base (int numEq, int outLevel, bool testProduct=false) |
Test of Ldlt decomposition, also measures time necessary fo rindividual operations. More... | |
static void | ExampleMathNetNumericsLU () |
Example of how to use LU decomposition from Math.NET numerics. More... | |
static void | ExampleMathNetNumericsQR () |
Example of how to use QR decomposition from Math.NET numerics. More... | |
static void | ExampleMathNetNumericsEVD () |
Example of how to use EVD (eigenvalue decomposition) from Math.NET Numerics. More... | |
static void | ExampleMathNetNumericsSVD () |
Example of how to use SVD ( singular value decomposition) from Math.NET numerics. More... | |
static void | ExampleMathNetNumericsCholesky () |
Example of how to use Choleski decomposition from Math.NET Numerics. More... | |
Various utilities for testing computational speed of the current system.
$A Igor xx Feb08;
|
inlinestatic |
Test of QR decomposition. Writes times necessary for all steps.
numEq | Number of equations to be solved with decomposition. |
outLevel | Level of output. |
Referenced by IG.Lib.CommandLineApplicationInterpreter.TestComputationalTimesQR().
|
inlinestatic |
Test of QR decomposition, also measures time necessary fo rindividual operations.
outLevel | Level of output. |
numEq | Number of equations to be solved with decomposition. |
testProduct | If true then it is tested if the product of factors gives the original matrix. Otherwise, this test is skipped. |
|
inlinestatic |
Test of LU decomposition.
outLevel | Level of output. |
numEq | Number of equations to be solved with decomposition. |
Referenced by IG.Lib.CommandLineApplicationInterpreter.TestComputationalTimesLU().
|
inlinestatic |
Test of LU decomposition.
outLevel | Level of output. |
numEq | Number of equations to be solved with decomposition. |
testProduct | If true then it is tested if the product of factors gives the original matrix. Otherwise, this test is skipped. |
|
inlinestatic |
Test of Cholesky decomposition, also measures time necessary fo rindividual operations.
outLevel | Level of output. |
numEq | Number of equations to be solved with decomposition. |
|
inlinestatic |
Test of Cholesky decomposition, also measures time necessary fo rindividual operations.
outLevel | Level of output. |
numEq | Number of equations to be solved with decomposition. |
testProduct | If true then it is tested if the product of factors gives the original matrix. Otherwise, this test is skipped. |
|
inlinestatic |
Test of LU decomposition.
outLevel | Level of output. |
numEq | Number of equations to be solved with decomposition. |
testProduct | If true then it is tested if the product of factors gives the original matrix. Otherwise, this test is skipped. |
References IG.Num.A, IG.Lib.StopWatch.CpuTime, IG.Num.LUDecomposition.GetProduct(), IG.Num.MatrixBase.Multiply(), IG.Num.Vector.Random(), IG.Num.Matrix.Random(), IG.Num.LinearSolverBase.Solve(), IG.Lib.StopWatch.Start(), IG.Lib.StopWatch.Stop(), IG.Num.VectorBase.Subtract(), IG.Num.MatrixBase.Subtract(), IG.Lib.StopWatch.Time, IG.Lib.StopWatch.TotalCpuTime, and IG.Lib.StopWatch.TotalTime.
|
inlinestatic |
Test of QR decomposition, also measures time necessary fo rindividual operations.
outLevel | Level of output. |
numEq | Number of equations to be solved with decomposition. |
testProduct | If true then it is tested if the product of factors gives the original matrix. Otherwise, this test is skipped. |
References IG.Num.A, IG.Lib.StopWatch.CpuTime, IG.Num.QRDecomposition.GetProduct(), IG.Num.MatrixBase.Multiply(), IG.Num.Vector.Random(), IG.Num.Matrix.Random(), IG.Num.LinearSolverBase.Solve(), IG.Lib.StopWatch.Start(), IG.Lib.StopWatch.Stop(), IG.Num.VectorBase.Subtract(), IG.Num.MatrixBase.Subtract(), IG.Lib.StopWatch.Time, IG.Lib.StopWatch.TotalCpuTime, and IG.Lib.StopWatch.TotalTime.
|
inlinestatic |
Test of Cholesky decomposition, also measures time necessary fo rindividual operations.
outLevel | Level of output. |
numEq | Number of equations to be solved with decomposition. |
testProduct | If true then it is tested if the product of factors gives the original matrix. Otherwise, this test is skipped. |
References IG.Num.A, IG.Lib.StopWatch.CpuTime, IG.Num.CholeskyDecomposition.GetProduct(), IG.Num.MatrixBase.Multiply(), IG.Num.Vector.Random(), IG.Num.MatrixBase.SetRandomPositiveDiagonallyDominantSymmetric(), IG.Num.LinearSolverBase.Solve(), IG.Lib.StopWatch.Start(), IG.Lib.StopWatch.Stop(), IG.Num.VectorBase.Subtract(), IG.Num.MatrixBase.Subtract(), IG.Lib.StopWatch.Time, IG.Lib.StopWatch.TotalCpuTime, and IG.Lib.StopWatch.TotalTime.
|
inlinestatic |
Test of LU decomposition.
outLevel | Level of output. |
numEq | Number of equations to be solved with decomposition. |
testProduct | If true then it is tested if the product of factors gives the original matrix. Otherwise, this test is skipped. |
References IG.Num.A, IG.Lib.StopWatch.CpuTime, IG.Num.MatrixBase.LuDecompose(), IG.Num.MatrixBase.LuExtractLower(), IG.Num.MatrixBase.LuExtractUpper(), IG.Num.MatrixBase.LuSolve(), IG.Num.MatrixBase.Multiply(), IG.Num.Vector.Random(), IG.Num.Matrix.Random(), IG.Lib.StopWatch.Start(), IG.Lib.StopWatch.Stop(), IG.Num.VectorBase.Subtract(), IG.Num.MatrixBase.Subtract(), IG.Lib.StopWatch.Time, IG.Lib.StopWatch.TotalCpuTime, IG.Lib.StopWatch.TotalTime, and IG.Num.MatrixBase.UnPermute().
|
inlinestatic |
Test of Cholesky decomposition, also measures time necessary fo rindividual operations.
outLevel | Level of output. |
numEq | Number of equations to be solved with decomposition. |
testProduct | If true then it is tested if the product of factors gives the original matrix. Otherwise, this test is skipped. |
References IG.Num.A, IG.Num.MatrixBase.CholeskyDecompose(), IG.Num.MatrixBase.CholeskyExtractLower(), IG.Num.MatrixBase.CholeskyExtractUpper(), IG.Num.MatrixBase.CholeskySolve(), IG.Lib.StopWatch.CpuTime, IG.Num.MatrixBase.Multiply(), IG.Num.Vector.Random(), IG.Num.MatrixBase.SetRandomPositiveDiagonallyDominantSymmetric(), IG.Lib.StopWatch.Start(), IG.Lib.StopWatch.Stop(), IG.Num.VectorBase.Subtract(), IG.Num.MatrixBase.Subtract(), IG.Lib.StopWatch.Time, IG.Lib.StopWatch.TotalCpuTime, and IG.Lib.StopWatch.TotalTime.
|
inlinestatic |
Test of Ldlt decomposition, also measures time necessary fo rindividual operations.
outLevel | Level of output. |
numEq | Number of equations to be solved with decomposition. |
testProduct | If true then it is tested if the product of factors gives the original matrix. Otherwise, this test is skipped. |
References IG.Num.A, IG.Lib.StopWatch.CpuTime, IG.Num.MatrixBase.LdltDecompose(), IG.Num.MatrixBase.LdltExtractLower(), IG.Num.MatrixBase.LdltExtractUpper(), IG.Num.MatrixBase.LdltSolve(), IG.Num.MatrixBase.Multiply(), IG.Num.Vector.Random(), IG.Num.MatrixBase.SetRandomPositiveDiagonallyDominantSymmetric(), IG.Lib.StopWatch.Start(), IG.Lib.StopWatch.Stop(), IG.Num.VectorBase.Subtract(), IG.Num.MatrixBase.Subtract(), IG.Lib.StopWatch.Time, IG.Lib.StopWatch.TotalCpuTime, and IG.Lib.StopWatch.TotalTime.
|
inlinestatic |
Example of how to use LU decomposition from Math.NET numerics.
LU decomposition
Invertible matrix
|
inlinestatic |
Example of how to use QR decomposition from Math.NET numerics.
QR decomposition
|
inlinestatic |
Example of how to use EVD (eigenvalue decomposition) from Math.NET Numerics.
EVD decomposition
|
inlinestatic |
Example of how to use SVD ( singular value decomposition) from Math.NET numerics.
SVD decomposition
|
inlinestatic |
Example of how to use Choleski decomposition from Math.NET Numerics.
Cholesky decomposition