Package it.unimi.dsi.fastutil.longs

Examples of it.unimi.dsi.fastutil.longs.Long2DoubleArrayMap


        assertThat(v2.get(3), closeTo(1.5));
    }

    @Test
    public void testMapConstructor() {
        Long2DoubleMap map = new Long2DoubleArrayMap();
        long[] keys = { 3, 7, 8 };
        double[] values = { 1.5, 3.5, 2 };
        for (int i = 0; i < keys.length; i++) {
            map.put(keys[i], values[i]);
        }
       
        MutableSparseVector msv = new MutableSparseVector(map);

        assertThat(msv.get(3), closeTo(1.5));
View Full Code Here

TOP

Related Classes of it.unimi.dsi.fastutil.longs.Long2DoubleArrayMap

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.