JSci.util
Class ArrayCaster

java.lang.Object
  extended by JSci.util.ArrayCaster

public final class ArrayCaster
extends java.lang.Object

A simple convenience class for casting arrays.


Method Summary
static double[] toDouble(float[] v)
           
static double[][] toDouble(float[][] v)
           
static double[] toDouble(int[] v)
           
static double[][] toDouble(int[][] v)
           
static float[] toFloat(double[] v)
           
static float[][] toFloat(double[][] v)
           
static float[] toFloat(int[] v)
           
static float[][] toFloat(int[][] v)
           
static int[] toInt(double[] v)
           
static int[][] toInt(double[][] v)
           
static int[] toInt(float[] v)
           
static int[][] toInt(float[][] v)
           
 
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)

toFloat

public static float[] toFloat(int[] v)

toFloat

public static float[][] toFloat(double[][] v)

toFloat

public static float[][] toFloat(int[][] v)

toDouble

public static double[] toDouble(float[] v)

toDouble

public static double[] toDouble(int[] v)

toDouble

public static double[][] toDouble(float[][] v)

toDouble

public static double[][] toDouble(int[][] v)

toInt

public static int[] toInt(double[] v)

toInt

public static int[] toInt(float[] v)

toInt

public static int[][] toInt(float[][] v)

toInt

public static int[][] toInt(double[][] v)