Class VSMult

java.lang.Object
  extended by VSMult

public class VSMult
extends java.lang.Object

Performs a subtraction operation between two vectors sequentially.

Author:
Heinz Kredel.

Constructor Summary
VSMult()
           
 
Method Summary
static void main(java.lang.String[] args)
          main.
static void main1(java.lang.String[] args)
          main1.
 void seqdiff(double[] C, double[] A, double[] B)
          Performs a subtraction operation between two vectors sequentially.
 boolean veccheck0(double[] A)
          Checks if the vector is approximatly zero.
 double[] vecgen(int n)
          Generates a vector.
 double[] vecgen0(int n)
          Generates the null-vector.
 void vecprint(double[] A)
          Prints out the vector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VSMult

public VSMult()
Method Detail

seqdiff

public void seqdiff(double[] C,
                    double[] A,
                    double[] B)
Performs a subtraction operation between two vectors sequentially.

Parameters:
C - double array.
A - double array.
B - double array.

vecgen

public double[] vecgen(int n)
Generates a vector. The method random returns a random number within the intervall [0,1].

Parameters:
n - dimension of vector.

vecgen0

public double[] vecgen0(int n)
Generates the null-vector.

Parameters:
n - dimension of vector.

vecprint

public void vecprint(double[] A)
Prints out the vector.

Parameters:
A - vector.

veccheck0

public boolean veccheck0(double[] A)
Checks if the vector is approximatly zero. Checks if the absolut value of the vectors's elements are less than the production of the smallest positive value and 1000.

Parameters:
A - double vector.

main

public static void main(java.lang.String[] args)
main.


main1

public static void main1(java.lang.String[] args)
main1.