All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class juice.util.JuiceUtil

java.lang.Object
   |
   +----juice.util.JuiceUtil

public class JuiceUtil
extends Object
JuiceUtil contains a set of utility functions implemented as class methods.


Constructor Index

 o JuiceUtil()

Method Index

 o approx(double, double)
 o approx(double, double, double)
 o approx(float, float)
 o approx(float, float, float)
 o arrayfill(int, boolean)
 o arrayfill(int, double)
 o arrayfill(int, float)
 o arrayfill(int, int)
 o arrayToString(boolean[], String)
 o arrayToString(float[], String)
 o arrayToString(float[][], String, String)
separator1 separates the elements; separator2 separates the 1-D arrays
 o arrayToString(float[][][], String, String, String)
separator1 separates the elements; separator2 separates the 1-D arrays separator3 separates the 2-D arrays
 o arrayToString(int[], String)
 o arrayToString(String, Object[], String)
 o dotProductTest(hasAdjoint, Vector, Vector, String)
 o dotProductTest(LinearOperator, LinearOperator, Vector, Vector, String)
 o equalArrays(boolean[], boolean[])
 o equalArrays(float[], float[])
 o equalArrays(int[], int[])
 o equalArrays(Object[], Object[])
 o equalVectors(Vector, Vector)
 o vectorToString(String, Vector, String)

Constructors

 o JuiceUtil
 public JuiceUtil()

Methods

 o dotProductTest
 public static float dotProductTest(hasAdjoint FWD,
                                    Vector w,
                                    Vector v,
                                    String verbose)
 o dotProductTest
 public static float dotProductTest(LinearOperator FWD,
                                    LinearOperator ADJ,
                                    Vector w,
                                    Vector v,
                                    String verbose)
 o arrayfill
 public static float[] arrayfill(int dim,
                                 float val)
 o arrayfill
 public static int[] arrayfill(int dim,
                               int val)
 o arrayfill
 public static double[] arrayfill(int dim,
                                  double val)
 o arrayfill
 public static boolean[] arrayfill(int dim,
                                   boolean val)
 o arrayToString
 public static String arrayToString(String lbl,
                                    Object arr[],
                                    String separator)
 o arrayToString
 public static String arrayToString(float arr[],
                                    String separator)
 o arrayToString
 public static String arrayToString(float arr[][],
                                    String separator1,
                                    String separator2)
separator1 separates the elements; separator2 separates the 1-D arrays

 o arrayToString
 public static String arrayToString(float arr[][][],
                                    String separator1,
                                    String separator2,
                                    String separator3)
separator1 separates the elements; separator2 separates the 1-D arrays separator3 separates the 2-D arrays

 o arrayToString
 public static String arrayToString(int arr[],
                                    String separator)
 o arrayToString
 public static String arrayToString(boolean arr[],
                                    String separator)
 o equalArrays
 public static boolean equalArrays(Object objs1[],
                                   Object objs2[])
 o equalArrays
 public static boolean equalArrays(float flts1[],
                                   float flts2[])
 o equalArrays
 public static boolean equalArrays(int ints1[],
                                   int ints2[])
 o equalArrays
 public static boolean equalArrays(boolean bool1[],
                                   boolean bool2[])
 o approx
 public static boolean approx(double f1,
                              double f2,
                              double eps)
 o approx
 public static boolean approx(double f1,
                              double f2)
 o approx
 public static boolean approx(float f1,
                              float f2,
                              float eps)
 o approx
 public static boolean approx(float f1,
                              float f2)
 o equalVectors
 public static boolean equalVectors(Vector d,
                                    Vector e)
 o vectorToString
 public static String vectorToString(String lbl,
                                     Vector v,
                                     String separator)

All Packages  Class Hierarchy  This Package  Previous  Next  Index