Exemple #1
0
        /// <remarks>"This test been excluded from test fixture by Igor Sukhov on 17.10.2007"</remarks>
        //[TestMethod]
        public virtual void SparseColumnMatrix()
        {
            int n  = TesterUtilities.getInt(nmax, _random),
                m  = TesterUtilities.getInt(mmax, _random),
                nu = GetNu(n, m);

            IElementalAccessMatrix A = new SparseColumnMatrix(n, m);

            repeatedAssembly(A, nu);
        }
Exemple #2
0
        [Test] public virtual void SparseColumnMatrix()
        {
            Random r = new Random();
            int    n = Math.Max(TesterUtilities.getInt(nmax, r), 4);

            IElementalAccessMatrix A = new SparseColumnMatrix(n, n, 3);
            IElementalAccessVector b = new DenseVector(n), x = new DenseVector(n);

            Helper1(A, b, x);
        }
Exemple #3
0
        /// <remarks>"This test been excluded from test fixture by Igor Sukhov on 17.10.2007"</remarks>
        //[TestMethod]
        public virtual void SparseColumnTranspose()
        {
            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 SparseColumnMatrix(n, m, nu);
                double[,] Am = TesterUtilities.SetAssembleRowMatrix(A, nu);
                TransposeCheck(A, Am);
            }
        }
Exemple #4
0
        public virtual void SparseColumnMult()
        {
            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 SparseColumnMatrix(n, m, nu);
                IElementalAccessVector x = new DenseVector(m),
                                       y = new DenseVector(n),
                                       z = new DenseVector(n);

                columnCheck(A, x, y, z, nu);
            }
        }