drasys.or.matrix.complex
Class ComplexContainer

java.lang.Object
  |
  +--drasys.or.matrix.complex.ComplexContainer
Direct Known Subclasses:
Matrix, Vect

public class ComplexContainer
extends java.lang.Object
implements ComplexContainerI, java.io.Serializable

Complex container implementation.

References:

Matrix Computations (Johns Hopkins Studies in the Mathematical Sciences)
    Gene H. Golub, Charles F. Van Loan (Contributor) / Paperback / Published 1996
Numerical Recipes in C : The Art of Scientific Computing
    William H. Press, et al / Hardcover / Published 1993
Parallel Algorithms for Matrix Computations
    K.A. Gallivan / Paperback / Published 1990

See Also:
Serialized Form

Field Summary
protected  double _epsilon
           
protected static double _globalEpsilon
           
 
Constructor Summary
ComplexContainer()
          Create a real container with using the global epsilon.
ComplexContainer(double epsilon)
          Create a real container with explicit epsilon.
 
Method Summary
 boolean equals(Complex a, Complex b)
          Returns true if two complex scalers are equal to within epsilon.
 boolean equals(ComplexI a, ComplexI b)
          Returns true if two complex scalers are equal to within epsilon.
 double getEpsilon()
          Gets the value that is used to relax the element equality test in the equals method.
static double getGlobalEpsilon()
          Gets the global matrix default equality fuzz factor.
 void setEpsilon(double epsilon)
          Sets the value that is used to relax the element equality test in the equals method.
static void setGlobalEpsilon(double epsilon)
          Sets the global matrix default equality fuzz value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_globalEpsilon

protected static double _globalEpsilon

_epsilon

protected double _epsilon
Constructor Detail

ComplexContainer

public ComplexContainer()
Create a real container with using the global epsilon.

ComplexContainer

public ComplexContainer(double epsilon)
Create a real container with explicit epsilon.
Method Detail

getGlobalEpsilon

public static double getGlobalEpsilon()
Gets the global matrix default equality fuzz factor. Each new matrix starts with this value for its local epsilon. The initial global epsilon value is 1.0E-6.

setGlobalEpsilon

public static void setGlobalEpsilon(double epsilon)
Sets the global matrix default equality fuzz value. Each new matrix starts with this value for its local epsilon. The initial global epsilon value is 1.0E-6.

getEpsilon

public double getEpsilon()
Gets the value that is used to relax the element equality test in the equals method. The default value is the global epsilon which is initially set to 1.0E-6.
Specified by:
getEpsilon in interface ComplexContainerI

setEpsilon

public void setEpsilon(double epsilon)
Sets the value that is used to relax the element equality test in the equals method. The default value is the global epsilon which is initially set to 1.0E-6.
Specified by:
setEpsilon in interface ComplexContainerI

equals

public boolean equals(Complex a,
                      Complex b)
Returns true if two complex scalers are equal to within epsilon.

equals

public boolean equals(ComplexI a,
                      ComplexI b)
Returns true if two complex scalers are equal to within epsilon.
Specified by:
equals in interface ComplexContainerI


Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com