jmathlib.toolbox.jmathlib.matrix._private.Jampack
Class Print

java.lang.Object
  extended by jmathlib.toolbox.jmathlib.matrix._private.Jampack.Print

public class Print
extends java.lang.Object

Print prints numbers, matrices, and arrays. All floating-point numbers are printed in e format with field width w and d figures to the left of the right of the decimal point. For the defaults see Parameters .

Version:
Pre-alpha
Author:
G. W. Stewart

Field Summary
private static java.text.DecimalFormat fmt
           
 
Constructor Summary
Print()
           
 
Method Summary
static java.lang.String DoubletoEstring(double num, int w, int d)
          Converts a double to w.d e format.
static void o(double a)
          Prints a double in default e format.
static void o(double[] a)
          Prints an array of doubles in default e format.
static void o(double[][] A)
          Prints a 2-dimensional array of doubles in default e format.
static void o(double[][] A, int w, int d)
          Prints a 2-dimensional array of doubles in w.d e format.
static void o(double[] a, int w, int d)
          Prints an array of doubles in w.d e format.
static void o(double a, int w, int d)
          Prints a double in w.d e format.
static void o(int k)
          Prints an int in default format.
static void o(int[] ia)
          Prints an integer array in default format.
static void o(int[] ia, int w)
          Prints an integer array in fields of width w.
static void o(int k, int w)
          Prints and int in a field of width w.
static void o(Z a)
          Prints a Z in default e format.
static void o(Z[] a)
          Prints an array of Z's in default e format.
static void o(Z[][] A)
          Prints a 2-dimensional array of Z in default e format.
static void o(Z[][] A, int w, int d)
          Prints a 2-dimensional array of Z in w.d e format.
static void o(Z[] a, int w, int d)
          Prints an array of Z's in w.d e format.
static void o(Z1 z)
          Prints a Z1 in default format.
static void o(Z1 z, int w, int d)
          Prints a Z1 in w.d e format
static void o(Zdiagmat D)
          Prints a Zdiagmat in default format.
static void o(Zdiagmat D, int w, int d)
          Prints a Zdiagmat in w.d e format.
static void o(Z a, int w, int d)
          Prints a Z in w.d e format.
static void o(Zmat A)
          Prints a Zmat in default e format.
static void o(Zmat A, int w, int d)
          Prints a Zmat in w.d e format.
static java.lang.String ZtoEstring(Z num, int w, int d)
          Converts a Z to w.d e format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fmt

private static java.text.DecimalFormat fmt
Constructor Detail

Print

public Print()
Method Detail

o

public static void o(int k)
Prints an int in default format.


o

public static void o(int k,
                     int w)
Prints and int in a field of width w.


o

public static void o(int[] ia)
Prints an integer array in default format.


o

public static void o(int[] ia,
                     int w)
Prints an integer array in fields of width w.


o

public static void o(double a)
Prints a double in default e format.


o

public static void o(double a,
                     int w,
                     int d)
Prints a double in w.d e format.


o

public static void o(double[] a)
Prints an array of doubles in default e format.


o

public static void o(double[] a,
                     int w,
                     int d)
Prints an array of doubles in w.d e format.


o

public static void o(double[][] A)
Prints a 2-dimensional array of doubles in default e format.


o

public static void o(double[][] A,
                     int w,
                     int d)
Prints a 2-dimensional array of doubles in w.d e format.


o

public static void o(Z a)
Prints a Z in default e format.


o

public static void o(Z a,
                     int w,
                     int d)
Prints a Z in w.d e format.


o

public static void o(Z[] a)
Prints an array of Z's in default e format.


o

public static void o(Z[] a,
                     int w,
                     int d)
Prints an array of Z's in w.d e format.


o

public static void o(Z[][] A)
Prints a 2-dimensional array of Z in default e format.


o

public static void o(Z[][] A,
                     int w,
                     int d)
Prints a 2-dimensional array of Z in w.d e format.


o

public static void o(Z1 z)
Prints a Z1 in default format.


o

public static void o(Z1 z,
                     int w,
                     int d)
Prints a Z1 in w.d e format


o

public static void o(Zmat A)
Prints a Zmat in default e format.


o

public static void o(Zmat A,
                     int w,
                     int d)
Prints a Zmat in w.d e format. This method checks to see if the Zmat is real, in which case it prints only the real part.


o

public static void o(Zdiagmat D)
Prints a Zdiagmat in default format.


o

public static void o(Zdiagmat D,
                     int w,
                     int d)
Prints a Zdiagmat in w.d e format.


DoubletoEstring

public static java.lang.String DoubletoEstring(double num,
                                               int w,
                                               int d)
Converts a double to w.d e format.


ZtoEstring

public static java.lang.String ZtoEstring(Z num,
                                          int w,
                                          int d)
Converts a Z to w.d e format.


FOOTER

BOTTOM