|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnr.MatMath
public class MatMath
basic functions for vector and matrix math not particularly efficient--they allocate a lot of objects that are promptly deallocated
Method Summary | |
---|---|
static Mat |
add(Mat a,
Mat b)
result = a + b |
static Vec |
add(Vec a,
Vec b)
result = a + b |
static double |
dot(Vec a,
Vec b)
result = inner product of a and b. |
static boolean |
isIdentity(Mat A)
|
static void |
main(java.lang.String[] args)
test suite |
static Mat |
mul(double d,
Mat a)
result = d * a |
static Vec |
mul(double d,
Vec a)
result = d * a |
static Mat |
mul(Mat a,
Mat b)
result = a * b |
static Vec |
mul(Mat a,
Vec b)
result = a * b |
static Vec |
mul(Vec a,
Mat b)
result = a * b |
static double |
norm1(Vec v)
result = sum ( abs(elements (v))) |
static double |
norm2(Vec v)
result = sqrt (sum (elements (v) ^2)) |
static double |
normInf(Vec v)
result = max ( abs(elements (v))) |
static Mat |
transpose(Mat a)
result = transpose (a) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Vec add(Vec a, Vec b)
public static Vec mul(double d, Vec a)
public static double dot(Vec a, Vec b)
public static Mat add(Mat a, Mat b)
public static Mat mul(double d, Mat a)
public static Vec mul(Mat a, Vec b)
public static Vec mul(Vec a, Mat b)
public static Mat mul(Mat a, Mat b)
public static Mat transpose(Mat a)
public static double norm1(Vec v)
public static double norm2(Vec v)
public static double normInf(Vec v)
public static void main(java.lang.String[] args)
public static boolean isIdentity(Mat A)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |