|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMatMult
public class MatMult
Matrix Multiplication main class.
Constructor Summary | |
---|---|
MatMult()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
main |
boolean |
matcheck0(double[][] A)
Checks if the matrix is approximatly zero. |
double[][] |
matgen(int n,
int m)
Generates a matrix. |
double[][] |
matgen0(int n,
int m)
Generates the null-matrix. |
double[][] |
matgen1(int n,
int m)
Generates the unit-matrix. |
void |
matprint(double[][] A)
Prints out the rows of matrix. |
void |
seqdiff(double[][] C,
double[][] A,
double[][] B)
Performs a subtraction operation between two arrays sequentially. |
void |
transpose(double[][] B,
double[][] A)
Performs a transpose operation of the matrix. |
void |
transposeInplace(double[][] A)
Performs a transpose operation of the matrix. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MatMult()
Method Detail |
---|
public void seqdiff(double[][] C, double[][] A, double[][] B)
C
- result matrix = A-B.A
- left matrix.B
- right matirx.public void transposeInplace(double[][] A)
A
- matrix.public void transpose(double[][] B, double[][] A)
A
- Array.B
- Array transpose(A).public double[][] matgen(int n, int m)
A
with the dimension n, m.
The method random
returns a
random number within the intervall [0,1].
n
- dimension of matrix.m
- dimension of matrix.public double[][] matgen0(int n, int m)
n
- dimension of matrix.m
- dimension of matrix.public double[][] matgen1(int n, int m)
n
- dimension of matrix.m
- dimension of matrix.public void matprint(double[][] A)
A
- Array.public boolean matcheck0(double[][] A)
A
- Two dimensional array.public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |