csli.util.math.matrix
Class Matrices
java.lang.Object
csli.util.math.matrix.Matrices
public class Matrices
- extends Object
A few handy static linear algebra routines.
- Author:
- jefe
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Matrices
public Matrices()
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.