Package stallone.io

Examples of stallone.io.BlockFileReader


    }

    public static IDoubleArray readDoubleMatrix(String file)
            throws FileNotFoundException, IOException
    {
        BlockFileReader reader = new BlockFileReader(file);
        reader.scan();

        // find out whether the matrix is saved in sparse or dense format.
        boolean sparse = isSparseFormat(reader);

        double[][] block = reader.getLargestDoubleBlock();

        IDoubleArray res = null;
        if (sparse)
        {
            int nrows = 0, ncols = 0;
View Full Code Here


        return words;
    }
   
    public double[][] readDoubleMatrix(String fileName) throws FileNotFoundException, IOException
    {
        BlockFileReader reader = ioNew.asciiNumberReader(fileName);
        return reader.getLargestDoubleBlock();
    }
View Full Code Here

        return reader.getLargestDoubleBlock();
    }

    public int[][] readIntMatrix(String fileName) throws FileNotFoundException, IOException
    {
        BlockFileReader reader = ioNew.asciiNumberReader(fileName);
        return reader.getLargestIntBlock();
    }
View Full Code Here

        return reader.getLargestIntBlock();
    }

    public double[] readDoubleColumn(String fileName, int c) throws FileNotFoundException, IOException
    {
        BlockFileReader reader = ioNew.asciiNumberReader(fileName);
        return reader.getDoubleColumn(c);
    }
View Full Code Here

        return reader.getDoubleColumn(c);
    }

    public int[] readIntColumn(String fileName, int c) throws FileNotFoundException, IOException
    {
        BlockFileReader reader = ioNew.asciiNumberReader(fileName);
        return reader.getIntColumn(c);
    }
View Full Code Here

        return reader;
    }

    public BlockFileReader asciiNumberReader(String file) throws FileNotFoundException, IOException
    {
        BlockFileReader reader = new BlockFileReader(file);
        reader.scan();
        return reader;
    }
View Full Code Here

TOP

Related Classes of stallone.io.BlockFileReader

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.