Class MatrixMultMPP
java.lang.Object
MatrixMultMPP
public class MatrixMultMPP
- extends java.lang.Object
Matrix Multiplication.
sequential and parallel using MPP.
- Author:
- Akitoshi Yoshida, Heinz Kredel.
|
Method Summary |
void |
dotmult(double[][] C,
double[][] A,
double[][] B,
int i,
int j)
|
static void |
main(java.lang.String[] args)
|
boolean |
matcheck0(double[][] A)
|
double[][] |
matgen(int n,
int m)
|
double[][] |
matgen0(int n,
int m)
|
double[][] |
matgen1(int n,
int m)
|
void |
matprint(double[][] A)
|
void |
parmult(double[][] C,
double[][] A,
double[][] B)
|
void |
seq2mult(double[][] C,
double[][] A,
double[][] B)
|
void |
seqdiff(double[][] C,
double[][] A,
double[][] B)
|
void |
seqmult(double[][] C,
double[][] A,
double[][] B)
|
void |
vecprint(int[] V)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mpi_comm_world
protected mpp.Communicator mpi_comm_world
MatrixMultMPP
public MatrixMultMPP(mpp.Communicator comm)
seqmult
public void seqmult(double[][] C,
double[][] A,
double[][] B)
- Parameters:
C - two-dimensional double array.A - two-dimensional double array.B - two-dimensional double array.
parmult
public void parmult(double[][] C,
double[][] A,
double[][] B)
throws java.io.IOException
- Parameters:
C - two-dimensional double array.A - two-dimensional double array.B - two-dimensional double array.
- Throws:
IOException.
java.io.IOException
seqdiff
public void seqdiff(double[][] C,
double[][] A,
double[][] B)
- Parameters:
C - two-dimensional double array.A - two-dimensional double array.B - two-dimensional double array.
dotmult
public void dotmult(double[][] C,
double[][] A,
double[][] B,
int i,
int j)
- Parameters:
C - two-dimensional double array.A - two-dimensional double array.B - two-dimensional double array.i - row of A.j - column of B.
seq2mult
public void seq2mult(double[][] C,
double[][] A,
double[][] B)
- Parameters:
C - two-dimensional double array.A - two-dimensional double array.B - two-dimensional double array.
matgen
public double[][] matgen(int n,
int m)
- Parameters:
n - rows of result.m - columns of result.
- Returns:
- A two-dimensional double array.
matgen0
public double[][] matgen0(int n,
int m)
- Parameters:
n - rows of result.m - columns of result.
- Returns:
- A two-dimensional double array.
matgen1
public double[][] matgen1(int n,
int m)
- Parameters:
n - rows of result.m - columns of result.
- Returns:
- A two-dimensional double array.
matprint
public void matprint(double[][] A)
- Parameters:
A - two-dimensional double array.
vecprint
public void vecprint(int[] V)
- Parameters:
V - vector to print.
matcheck0
public boolean matcheck0(double[][] A)
- Parameters:
A - two dimensional double array.
- Returns:
- true if A is approximately zero.
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Parameters:
args -
- Throws:
java.io.IOException