/** Stores an array to a given print stream. * * @param array an array whose elements will be written to {@code stream}. * @param stream a print stream. */ public static void storeDoubles(final double array[], final PrintStream stream) { storeDoubles(array, 0, array.length, stream); } /** Stores an array fragment to a file given by a {@link File} object.
/** Stores an array to a file given by a {@link File} object. * * @param array an array whose elements will be written to {@code filename}. * @param file a file. */ public static void storeDoubles(final double array[], final File file) throws IOException { storeDoubles(array, 0, array.length, file); } /** Stores an array to a file given by a pathname.
/** Stores an array to a file given by a pathname. * * @param array an array whose elements will be written to {@code filename}. * @param filename a filename. */ public static void storeDoubles(final double array[], final CharSequence filename) throws IOException { storeDoubles(array, 0, array.length, filename); } /** Stores the element returned by an iterator to a given print stream.
/** Stores the element returned by an iterator to a file given by a pathname. * * @param i an iterator whose output will be written to {@code filename}. * @param filename a filename. */ public static void storeDoubles(final DoubleIterator i, final CharSequence filename) throws IOException { storeDoubles(i, new File(filename.toString())); } /** Loads elements from a given fast buffered reader, storing them in a given big-array fragment.
/** Stores an array fragment to a file given by a pathname. * * @param array an array whose elements will be written to {@code filename}. * @param offset the index of the first element of {@code array} to be written. * @param length the number of elements of {@code array} to be written. * @param filename a filename. */ public static void storeDoubles(final double array[], final int offset, final int length, final CharSequence filename) throws IOException { storeDoubles(array, offset, length, new File(filename.toString())); } /** Stores an array to a file given by a {@link File} object.
/** Stores a big-array fragment to a file given by a pathname. * * @param array a big array whose elements will be written to {@code filename}. * @param offset the index of the first element of {@code array} to be written. * @param length the number of elements of {@code array} to be written. * @param filename a filename. */ public static void storeDoubles(final double array[][], final long offset, final long length, final CharSequence filename) throws IOException { storeDoubles(array, offset, length, new File(filename.toString())); } /** Stores a big array to a file given by a {@link File} object.
/** Stores a big array to a given print stream. * * @param array a big array whose elements will be written to {@code stream}. * @param stream a print stream. */ public static void storeDoubles(final double array[][], final PrintStream stream) { storeDoubles(array, 0, it.unimi.dsi.fastutil.doubles.DoubleBigArrays.length(array), stream); } /** Stores a big-array fragment to a file given by a {@link File} object.
/** Stores a big array to a file given by a {@link File} object. * * @param array a big array whose elements will be written to {@code filename}. * @param file a file. */ public static void storeDoubles(final double array[][], final File file) throws IOException { storeDoubles(array, 0, it.unimi.dsi.fastutil.doubles.DoubleBigArrays.length(array), file); } /** Stores a big array to a file given by a pathname.
/** Stores a big array to a file given by a pathname. * * @param array a big array whose elements will be written to {@code filename}. * @param filename a filename. */ public static void storeDoubles(final double array[][], final CharSequence filename) throws IOException { storeDoubles(array, 0, it.unimi.dsi.fastutil.doubles.DoubleBigArrays.length(array), filename); } /** A wrapper that exhibits the content of a reader as a type-specific iterator. */
/** Stores the element returned by an iterator to a file given by a {@link File} object. * * @param i an iterator whose output will be written to {@code filename}. * @param file a file. */ public static void storeDoubles(final DoubleIterator i, final File file) throws IOException { final PrintStream stream = new PrintStream(new FastBufferedOutputStream(new FileOutputStream(file))); storeDoubles(i, stream); stream.close(); } /** Stores the element returned by an iterator to a file given by a pathname.
/** Stores an array fragment to a file given by a {@link File} object. * * @param array an array whose elements will be written to {@code filename}. * @param offset the index of the first element of {@code array} to be written. * @param length the number of elements of {@code array} to be written. * @param file a file. */ public static void storeDoubles(final double array[], final int offset, final int length, final File file) throws IOException { final PrintStream stream = new PrintStream(new FastBufferedOutputStream(new FileOutputStream(file))); storeDoubles(array, offset, length, stream); stream.close(); } /** Stores an array fragment to a file given by a pathname.
/** Stores a big-array fragment to a file given by a {@link File} object. * * @param array a big array whose elements will be written to {@code filename}. * @param offset the index of the first element of {@code array} to be written. * @param length the number of elements of {@code array} to be written. * @param file a file. */ public static void storeDoubles(final double array[][], final long offset, final long length, final File file) throws IOException { final PrintStream stream = new PrintStream(new FastBufferedOutputStream(new FileOutputStream(file))); storeDoubles(array, offset, length, stream); stream.close(); } /** Stores a big-array fragment to a file given by a pathname.