[Test] public virtual void SparseColumnRowMatrix() { Random r = new Random(); int n = Math.Max(TesterUtilities.getInt(nmax, r), 4); IElementalAccessMatrix A = new SparseColumnRowMatrix(n, n, 3); IElementalAccessVector b = new DenseVector(n), x = new DenseVector(n); Helper1(A, b, x); }
/// <remarks>"This test been excluded from test fixture by Igor Sukhov on 17.10.2007"</remarks> //[TestMethod] public virtual void SparseColumnRowTranspose() { 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 SparseColumnRowMatrix(n, m, nu); double[,] Am = TesterUtilities.setAssembleColumnMatrix(A, nu); TransposeCheck(A, Am); } }
/// <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)); } }
public virtual void SparseColumnRowMult() { 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 SparseColumnRowMatrix(n, m, nu); IElementalAccessVector x = new DenseVector(m), y = new DenseVector(n), z = new DenseVector(n); columnCheck(A, x, y, z, nu); } }