|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object util.Matrix
public class Matrix
Constructor Summary | |
---|---|
Matrix()
|
Method Summary | |
---|---|
static float[][] |
change_basis_3x3(float[][] T,
float[][] B)
This changes the basis of the 3x3 linear transformation T to that represented by the 3x3 matrix B |
static float[][] |
invert_3x3(float[][] a)
This inverts a 3x3 matrix |
static float[][] |
multiply(float[][] A,
float[][] B)
This operation perfoms no checks on the dimensions of A,B but assumes that they are of the correct dimensions for calculation of the matrix product AB A is M x N matrix B is N x P matrix |
static float[][] |
multiply(float[][] A,
float[][] B,
float[][] result)
This operation perfoms no checks on the dimensions of A,B but assumes that they are of the correct dimensions for calculation of the matrix product AB. |
static float[][] |
normalise(float[][] A)
This normalises a matrix |
static void |
print(float[][] A)
prints a matrix |
static float[][] |
rotation(int N,
int K1,
int K2,
float alpha)
This returns a standard rotation NxN rotation matrix of the K1 and K2 basis vectors for angle alpha in radians. |
static float[][] |
scale(float[][] A,
float x)
This multiplies matrix A by scalar x |
static float[][] |
translate_3x3(float[][] A,
float[][] B)
This adds the elements of B to those of A element-wise, A is modified. |
static float[][] |
translate(float[][] A,
float[][] B)
This adds the elements of B to those of A element-wise, A is modified. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Matrix()
Method Detail |
---|
public static float[][] multiply(float[][] A, float[][] B)
A
- B
-
public static float[][] multiply(float[][] A, float[][] B, float[][] result)
A
- B
- result
-
public static float[][] rotation(int N, int K1, int K2, float alpha)
N
- K1
- K2
- alpha
-
public static float[][] scale(float[][] A, float x)
A
- x
-
public static float[][] translate(float[][] A, float[][] B)
A
- B
-
public static float[][] normalise(float[][] A)
A
-
public static float[][] translate_3x3(float[][] A, float[][] B)
A
- B
-
public static float[][] change_basis_3x3(float[][] T, float[][] B)
T
- B
-
public static float[][] invert_3x3(float[][] a)
a
-
public static void print(float[][] A)
A
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |