Class Mat

java.lang.Object
  |
  +--Mat

public class Mat
extends java.lang.Object

A class that supports basic array operations. Follows matlab conventions, e.g. vectors are nx1 arrays. Since Java has built-in array bounds checks, no checks are given here.


Constructor Summary
Mat()
           
 
Method Summary
static void Ident(float[][] result)
           
static void MtoV(float[][] M, float[] V)
           
static void Mult(float[][] a, float[][] b, float[][] result)
          Basic matrix multiply, result = a*b
static float Norm(float[][] Ain)
           
static void Scale(float scalar, float[][] a, float[][] result)
           
static void Skew(float[][] a, float[][] result)
           
static float Trace(float[][] Ain)
           
static void Transpose(float[][] a, float[][] result)
          Compute the transpose of a, place into result[][]
static void Unskew(float[][] a, float[][] result)
           
static void VtoM(float[] V, float[][] M)
           
static void Wadd(float as, float[][] a, float bs, float[][] b, float[][] result)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

Mat

public Mat()
Method Detail

Mult

public static void Mult(float[][] a,
                        float[][] b,
                        float[][] result)
Basic matrix multiply, result = a*b

Transpose

public static void Transpose(float[][] a,
                             float[][] result)
Compute the transpose of a, place into result[][]

Scale

public static void Scale(float scalar,
                         float[][] a,
                         float[][] result)

Wadd

public static void Wadd(float as,
                        float[][] a,
                        float bs,
                        float[][] b,
                        float[][] result)

Skew

public static void Skew(float[][] a,
                        float[][] result)

Unskew

public static void Unskew(float[][] a,
                          float[][] result)

Ident

public static void Ident(float[][] result)

Norm

public static float Norm(float[][] Ain)

Trace

public static float Trace(float[][] Ain)

VtoM

public static void VtoM(float[] V,
                        float[][] M)

MtoV

public static void MtoV(float[][] M,
                        float[] V)