org.jscience.util
Class ArrayCaster

java.lang.Object
  extended by org.jscience.util.ArrayCaster

public final class ArrayCaster
extends java.lang.Object

A simple convenience class for casting arrays.


Method Summary
static double[] toDouble(float[] v)
          DOCUMENT ME!
static double[][] toDouble(float[][] v)
          DOCUMENT ME!
static double[] toDouble(int[] v)
          DOCUMENT ME!
static double[][] toDouble(int[][] v)
          DOCUMENT ME!
static float[] toFloat(double[] v)
          DOCUMENT ME!
static float[][] toFloat(double[][] v)
          DOCUMENT ME!
static float[] toFloat(int[] v)
          DOCUMENT ME!
static float[][] toFloat(int[][] v)
          DOCUMENT ME!
static int[] toInt(double[] v)
          DOCUMENT ME!
static int[][] toInt(double[][] v)
          DOCUMENT ME!
static int[] toInt(float[] v)
          DOCUMENT ME!
static int[][] toInt(float[][] v)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toFloat

public static float[] toFloat(double[] v)
DOCUMENT ME!

Parameters:
v - DOCUMENT ME!
Returns:
DOCUMENT ME!

toFloat

public static float[] toFloat(int[] v)
DOCUMENT ME!

Parameters:
v - DOCUMENT ME!
Returns:
DOCUMENT ME!

toFloat

public static float[][] toFloat(double[][] v)
DOCUMENT ME!

Parameters:
v - DOCUMENT ME!
Returns:
DOCUMENT ME!

toFloat

public static float[][] toFloat(int[][] v)
DOCUMENT ME!

Parameters:
v - DOCUMENT ME!
Returns:
DOCUMENT ME!

toDouble

public static double[] toDouble(float[] v)
DOCUMENT ME!

Parameters:
v - DOCUMENT ME!
Returns:
DOCUMENT ME!

toDouble

public static double[] toDouble(int[] v)
DOCUMENT ME!

Parameters:
v - DOCUMENT ME!
Returns:
DOCUMENT ME!

toDouble

public static double[][] toDouble(float[][] v)
DOCUMENT ME!

Parameters:
v - DOCUMENT ME!
Returns:
DOCUMENT ME!

toDouble

public static double[][] toDouble(int[][] v)
DOCUMENT ME!

Parameters:
v - DOCUMENT ME!
Returns:
DOCUMENT ME!

toInt

public static int[] toInt(double[] v)
DOCUMENT ME!

Parameters:
v - DOCUMENT ME!
Returns:
DOCUMENT ME!

toInt

public static int[] toInt(float[] v)
DOCUMENT ME!

Parameters:
v - DOCUMENT ME!
Returns:
DOCUMENT ME!

toInt

public static int[][] toInt(float[][] v)
DOCUMENT ME!

Parameters:
v - DOCUMENT ME!
Returns:
DOCUMENT ME!

toInt

public static int[][] toInt(double[][] v)
DOCUMENT ME!

Parameters:
v - DOCUMENT ME!
Returns:
DOCUMENT ME!