Package net.fec.openrq.util.linearalgebra.io

Examples of net.fec.openrq.util.linearalgebra.io.ByteVectorIterator.index()


        ByteVectorIterator it = a.columnIterator(1, 0, 3);

        assertTrue("hasNext 0", it.hasNext());
        it.next();
        assertEquals("get 0", 0, it.get());
        assertEquals("index 0", 0, it.index());

        assertTrue("hasNext 1", it.hasNext());
        it.next();
        assertEquals("get 1", 1, it.get());
        assertEquals("index 1", 1, it.index());
View Full Code Here


        assertEquals("index 0", 0, it.index());

        assertTrue("hasNext 1", it.hasNext());
        it.next();
        assertEquals("get 1", 1, it.get());
        assertEquals("index 1", 1, it.index());

        assertTrue("hasNext 2", it.hasNext());
        it.next();
        assertEquals("get 2", 0, it.get());
        assertEquals("index 2", 2, it.index());
View Full Code Here

        assertEquals("index 1", 1, it.index());

        assertTrue("hasNext 2", it.hasNext());
        it.next();
        assertEquals("get 2", 0, it.get());
        assertEquals("index 2", 2, it.index());

        assertFalse(it.hasNext());
    }

    @Test
View Full Code Here

        ByteVectorIterator it = a.columnIterator(1, 0, 6);

        assertTrue("hasNext 0", it.hasNext());
        it.next();
        assertEquals("get 0", 0, it.get());
        assertEquals("index 0", 0, it.index());

        assertTrue("hasNext 1", it.hasNext());
        it.next();
        assertEquals("get 1", 1, it.get());
        assertEquals("index 1", 1, it.index());
View Full Code Here

        assertEquals("index 0", 0, it.index());

        assertTrue("hasNext 1", it.hasNext());
        it.next();
        assertEquals("get 1", 1, it.get());
        assertEquals("index 1", 1, it.index());

        assertTrue("hasNext 2", it.hasNext());
        it.next();
        assertEquals("get 2", 0, it.get());
        assertEquals("index 2", 2, it.index());
View Full Code Here

        assertEquals("index 1", 1, it.index());

        assertTrue("hasNext 2", it.hasNext());
        it.next();
        assertEquals("get 2", 0, it.get());
        assertEquals("index 2", 2, it.index());

        assertTrue("hasNext 3", it.hasNext());
        it.next();
        assertEquals("get 3", 2, it.get());
        assertEquals("index 3", 3, it.index());
View Full Code Here

        assertEquals("index 2", 2, it.index());

        assertTrue("hasNext 3", it.hasNext());
        it.next();
        assertEquals("get 3", 2, it.get());
        assertEquals("index 3", 3, it.index());

        assertTrue("hasNext 4", it.hasNext());
        it.next();
        assertEquals("get 4", 3, it.get());
        assertEquals("index 4", 4, it.index());
View Full Code Here

        assertEquals("index 3", 3, it.index());

        assertTrue("hasNext 4", it.hasNext());
        it.next();
        assertEquals("get 4", 3, it.get());
        assertEquals("index 4", 4, it.index());

        assertTrue("hasNext 5", it.hasNext());
        it.next();
        assertEquals("get 5", 0, it.get());
        assertEquals("index 5", 5, it.index());
View Full Code Here

        assertEquals("index 4", 4, it.index());

        assertTrue("hasNext 5", it.hasNext());
        it.next();
        assertEquals("get 5", 0, it.get());
        assertEquals("index 5", 5, it.index());

        assertFalse(it.hasNext());
    }

    @Test
View Full Code Here

        ByteVectorIterator it = a.columnIterator(1, 3, 6);

        assertTrue("hasNext 3", it.hasNext());
        it.next();
        assertEquals("get 3", 2, it.get());
        assertEquals("index 3", 3, it.index());

        assertTrue("hasNext 4", it.hasNext());
        it.next();
        assertEquals("get 4", 3, it.get());
        assertEquals("index 4", 4, it.index());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.