csli.util.math.matrix
Class Matrices

java.lang.Object
  extended by csli.util.math.matrix.Matrices

public class Matrices
extends Object

A few handy static linear algebra routines.

Author:
jefe

Constructor Summary
Matrices()
           
 
Method Summary
static Matrix columnVector(double[] data)
           
static double dot(double[] u, double[] v)
           
static Matrix identity(int dim)
          Create an identity matrix of dimension dim.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Matrices

public Matrices()
Method Detail

identity

public static Matrix identity(int dim)
Create an identity matrix of dimension dim.

Parameters:
dim -
Returns:

columnVector

public static Matrix columnVector(double[] data)

dot

public static double dot(double[] u,
                         double[] v)
Parameters:
u -
v -
Returns:
the dot product of u and v.