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 SparseColumnRowMatrix() { int n = TesterUtilities.getInt(nmax, _random), m = TesterUtilities.getInt(mmax, _random), nu = GetNu(n, m); for (int i = 0; i < 10; ++i) { IElementalAccessMatrix A = new SparseColumnRowMatrix(n, m, nu); check(A, TesterUtilities.setAssembleColumnMatrix(A, nu)); A = new SparseColumnRowMatrix(n, m, nu); check(A, TesterUtilities.addAssembleColumnMatrix(A, nu)); } }