org.jmatrices.dbl.decomposition
Class Util

java.lang.Object
  extended byorg.jmatrices.dbl.decomposition.Util

public class Util
extends java.lang.Object

Util
Author: purangp
Date: 13.03.2004 Time: 13:54:46


Method Summary
static double hypot(double a, double b)
           
static int sign(double a)
           
static int sign(int a)
          Signum function returns 1 if the a is greater than zero, 0 if it equals zero and -1 if it is less than zero.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hypot

public static double hypot(double a,
                           double b)

sign

public static int sign(int a)
Signum function returns 1 if the a is greater than zero, 0 if it equals zero and -1 if it is less than zero.

Parameters:
a -
Returns:

sign

public static int sign(double a)