private static void repeatedAssembly(IElementalAccessMatrix A, int nu) { for (int i = 0; i < repeat; ++i) { check(A, TesterUtilities.SetAssembleRowMatrix(A, nu)); Blas.Default.Zero(A); check(A, TesterUtilities.setsAssembleRowMatrix(A, nu)); Blas.Default.Zero(A); check(A, TesterUtilities.AddAssembleRowMatrix(A, nu)); Blas.Default.Zero(A); check(A, TesterUtilities.addsAssembleRowMatrix(A, nu)); Blas.Default.Zero(A); check(A, TesterUtilities.setAssembleColumnMatrix(A, nu)); Blas.Default.Zero(A); check(A, TesterUtilities.setsAssembleColumnMatrix(A, nu)); Blas.Default.Zero(A); check(A, TesterUtilities.addAssembleColumnMatrix(A, nu)); Blas.Default.Zero(A); check(A, TesterUtilities.addsAssembleColumnMatrix(A, nu)); Blas.Default.Zero(A); } }
/// <remarks>"This test been excluded from test fixture by Igor Sukhov on 17.10.2007"</remarks> //[TestMethod] public virtual void CoordinateTranspose() { int n = TesterUtilities.getInt(nmax, _random), m = TesterUtilities.getInt(mmax, _random), nu = GetNu(n, m); for (int i = 0; i < repeat; ++i) { IElementalAccessMatrix A = new CoordinateMatrix(n, m); double[,] Am = TesterUtilities.SetAssembleRowMatrix(A, nu); TransposeCheck(A, Am); } }
/// <summary>Testing <see cref="SparseRowColumnMatrix"/> class.</summary> public virtual void SparseRowColumnMatrix() { int n = TesterUtilities.getInt(nmax, _random), m = TesterUtilities.getInt(mmax, _random), nu = GetNu(n, m); for (int i = 0; i < repeat; ++i) { IElementalAccessMatrix A = new SparseRowColumnMatrix(n, m, nu); check(A, TesterUtilities.SetAssembleRowMatrix(A, nu)); A = new SparseRowColumnMatrix(n, m, nu); check(A, TesterUtilities.AddAssembleRowMatrix(A, nu)); } }
private static void transRowCheck(IElementalAccessMatrix A, IElementalAccessVector x, IElementalAccessVector y, IElementalAccessVector z, int nu) { double[,] Ad = TesterUtilities.SetAssembleRowMatrix(A, nu); transCheck(A, x, y, z, Ad); }