Class SeqVSMult

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

public class SeqVSMult
extends java.lang.Object
implements VSMInf

Sequential Vector Scalar Multiplication.

Author:
Heinz Kredel.

Constructor Summary
SeqVSMult()
           
 
Method Summary
 double multiply(double[] A, double[] B)
          Computes the scalar multiplication of two vectors.
 double norm(double[] A)
          Computes the norm of a vector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeqVSMult

public SeqVSMult()
Method Detail

multiply

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

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

norm

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

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