|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjbil.util.ArrayPrinter
public class ArrayPrinter
Utility functions for printing arrays.
Constructor Summary | |
---|---|
ArrayPrinter()
|
Method Summary | |
---|---|
static void |
printArray(double[] v)
Prints a double array in standard output. |
static void |
printArray(int[] v)
Prints an int array with a given name in standard output. |
static void |
printArray(java.io.PrintStream stream,
java.lang.String open,
java.lang.String close,
java.lang.String separator,
java.lang.String format,
double[] v)
Prints a double array. |
static void |
printArray(java.io.PrintStream stream,
java.lang.String open,
java.lang.String close,
java.lang.String separator,
java.lang.String format,
int[] v)
Prints an int array. |
static void |
printArray(java.io.PrintWriter writer,
java.lang.String open,
java.lang.String close,
java.lang.String separator,
java.lang.String format,
double[] v)
Prints a double array. |
static void |
printArray(java.io.PrintWriter writer,
java.lang.String open,
java.lang.String close,
java.lang.String separator,
java.lang.String format,
int[] v)
Prints an int array. |
static void |
printAsRArray(java.io.PrintStream stream,
java.lang.String name,
java.lang.String format,
double[] v)
Prints a double array as a R array definition. |
static void |
printAsRArray(java.io.PrintStream stream,
java.lang.String name,
java.lang.String format,
java.lang.Double[] v)
Prints a Double array as a R array definition. |
static void |
printAsRMatrix(java.io.PrintStream stream,
java.lang.String name,
java.lang.String format,
double[][] v)
Prints a double bi-dimensional array as a R matrix definition. |
static void |
printAsRMatrix(java.io.PrintStream stream,
java.lang.String name,
java.lang.String format,
java.lang.Double[][] v)
Prints a Double bi-dimensional array as a R matrix definition. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrayPrinter()
Method Detail |
---|
public static void printArray(double[] v)
v
- The array to print.public static void printArray(java.io.PrintStream stream, java.lang.String open, java.lang.String close, java.lang.String separator, java.lang.String format, double[] v)
stream
- The stream where to print.open
- The opening delimiter of the array.close
- The closing delimiter of the arrayseparator
- The element separator.format
- The print format of the array elements (e.g. "%f")v
- The array to print.public static void printArray(java.io.PrintWriter writer, java.lang.String open, java.lang.String close, java.lang.String separator, java.lang.String format, double[] v)
writer
- The writer used to print.open
- The opening delimiter of the array.close
- The closing delimiter of the arrayseparator
- The element separator.format
- The print format of the array elements (e.g. "%f")v
- The array to print.public static void printArray(int[] v)
v
- The array to print.public static void printArray(java.io.PrintStream stream, java.lang.String open, java.lang.String close, java.lang.String separator, java.lang.String format, int[] v)
stream
- The stream where to print.open
- The opening delimiter of the array.close
- The closing delimiter of the arrayseparator
- The element separator.format
- The print format of the array elements (e.g. "%f")v
- The array to print.public static void printArray(java.io.PrintWriter writer, java.lang.String open, java.lang.String close, java.lang.String separator, java.lang.String format, int[] v)
writer
- The writer used to print.open
- The opening delimiter of the array.close
- The closing delimiter of the arrayseparator
- The element separator.format
- The print format of the array elements (e.g. "%f")v
- The array to print.public static void printAsRArray(java.io.PrintStream stream, java.lang.String name, java.lang.String format, double[] v)
stream
- The stream where to print.name
- the name of the array.format
- The print format of the array elements (e.g. "%f")v
- The array to print.public static void printAsRArray(java.io.PrintStream stream, java.lang.String name, java.lang.String format, java.lang.Double[] v)
stream
- The stream where to print.name
- the name of the array.format
- The print format of the array elements (e.g. "%f")v
- The array to print.public static void printAsRMatrix(java.io.PrintStream stream, java.lang.String name, java.lang.String format, double[][] v)
stream
- The stream where to print.name
- the name of the matrix.format
- The print format of the array elements (e.g. "%f")v
- The array to print.public static void printAsRMatrix(java.io.PrintStream stream, java.lang.String name, java.lang.String format, java.lang.Double[][] v)
stream
- The stream where to print.name
- the name of the matrix.format
- The print format of the array elements (e.g. "%f")v
- The array to print.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |