Utils
Class Array2D

java.lang.Object
  extended by Utils.Array2D

public class Array2D
extends java.lang.Object

Utility class for 2D arrays

Version:
1.0

Method Summary
static double[] getColumn(double[][] m, int c)
          Returns a column of the array
static double[][] transpose(double[][] m)
          Transposes the array
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

transpose

public static double[][] transpose(double[][] m)
Transposes the array

Parameters:
m - Input array
Returns:
The transposed array

getColumn

public static double[] getColumn(double[][] m,
                                 int c)
Returns a column of the array

Parameters:
m - The 2D array
c - The index of the column to return
Returns:
The column given