edu.cmu.sphinx.util
Class MatrixUtils

java.lang.Object
  extended by edu.cmu.sphinx.util.MatrixUtils

public class MatrixUtils
extends java.lang.Object

Some simple matrix and vector manipulation methods.


Field Summary
static java.text.DecimalFormat df
           
 
Constructor Summary
MatrixUtils()
           
 
Method Summary
static float[] double2float(double[] values)
           
static float[][] double2float(double[][] array)
           
static double[] float2double(float[] values)
           
static double[][] float2double(float[][] array)
           
static int numCols(double[][] m)
           
static java.lang.String toString(double[] m)
           
static java.lang.String toString(double[][] m)
           
static java.lang.String toString(float[][] matrix)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

df

public static java.text.DecimalFormat df
Constructor Detail

MatrixUtils

public MatrixUtils()
Method Detail

toString

public static java.lang.String toString(double[][] m)

toString

public static java.lang.String toString(double[] m)

numCols

public static int numCols(double[][] m)

toString

public static java.lang.String toString(float[][] matrix)

double2float

public static float[] double2float(double[] values)

double2float

public static float[][] double2float(double[][] array)

float2double

public static double[] float2double(float[] values)

float2double

public static double[][] float2double(float[][] array)