Class ParVSMult

java.lang.Object
  extended by ParVSMult
All Implemented Interfaces:
VSMInf

public class ParVSMult
extends java.lang.Object
implements VSMInf

Parallel Vector Scalar Multiplication.

Author:
Heinz Kredel.

Field Summary
(package private)  int anzahl
           
 
Constructor Summary
ParVSMult(int threads)
           
 
Method Summary
 double multiply(double[] A, double[] B)
          Compute the scalar multiplication of two vectors.
 double norm(double[] A)
          Compute the norm of a vector.
 
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

ParVSMult

public ParVSMult(int threads)
Method Detail

multiply

public double multiply(double[] A,
                       double[] B)
Compute the scalar multiplication of two vectors.

Specified by:
multiply in interface VSMInf
Parameters:
A - vector.
B - vector.

norm

public double norm(double[] A)
Compute the norm of a vector.

Specified by:
norm in interface VSMInf
Parameters:
A - vector.