Package stallone.doubles

Examples of stallone.doubles.SparseRealVector


    }
   
    @Test
    public void testGetNumberNNZ() {
        vec.set(0, 23);
        SparseRealVector casted = (SparseRealVector) vec;
        int nnz = casted.getNumberOfNonzero();
        Assert.assertEquals(nnz, 1);
       
        vec.set(5, 23);
        vec.set(7, 23);
       
        nnz = casted.getNumberOfNonzero();
        Assert.assertEquals(nnz, 3);
    }
View Full Code Here

TOP

Related Classes of stallone.doubles.SparseRealVector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.