Class ConMult

java.lang.Object
  extended by ConMult
All Implemented Interfaces:
MMInf

public class ConMult
extends java.lang.Object
implements MMInf

Parallel Matrix Multiplication using util.concurrent. Using dim(A) number of parallel tasks but given number of threads.


Field Summary
(package private)  int anzahl
           
 
Constructor Summary
ConMult(int threads)
           
 
Method Summary
 void multiply(double[][] C, double[][] A, double[][] B)
          Performs the multiplication of two matrices.
 void multiplyDoesNotWork(double[][] C, double[][] A, double[][] B)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

anzahl

int anzahl
Constructor Detail

ConMult

public ConMult(int threads)
Method Detail

multiply

public void multiply(double[][] C,
                     double[][] A,
                     double[][] B)
Performs the multiplication of two matrices. C = A * B.

Specified by:
multiply in interface MMInf
Parameters:
C - result matrix.
A - matrix.
B - matrix.

multiplyDoesNotWork

public void multiplyDoesNotWork(double[][] C,
                                double[][] A,
                                double[][] B)