drasys.or.matrix
Class RealContainer

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

public class RealContainer
extends java.lang.Object
implements RealContainerI, java.io.Serializable

Real 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
RealContainer()
          Create a real container with using the global epsilon.
RealContainer(double epsilon)
          Create a real container with explicit epsilon.
 
Method Summary
 boolean equals(double a, double b)
          Returns true if two scalers are equal to within the equality fuzz.
 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 fuzz)
          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

RealContainer

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

RealContainer

public RealContainer(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-12.

setGlobalEpsilon

public static void setGlobalEpsilon(double fuzz)
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-12.

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 RealContainerI

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 RealContainerI

equals

public boolean equals(double a,
                      double b)
Returns true if two scalers are equal to within the equality fuzz.
Specified by:
equals in interface RealContainerI


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