net.jxta.search.util.text
Class Dnrm2

java.lang.Object
  |
  +--net.jxta.search.util.text.Dnrm2

public class Dnrm2
extends java.lang.Object


Constructor Summary
Dnrm2()
           
 
Method Summary
static double dnrm2(int n, double[] x, int _x_offset, int incx)
          Euclidean (2) norm of a vector using a stable algorithm.
static void main(java.lang.String[] args)
          Since we aren't using the entire blas/lapack API, it is convenient to run a simple test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dnrm2

public Dnrm2()
Method Detail

dnrm2

public static double dnrm2(int n,
                           double[] x,
                           int _x_offset,
                           int incx)
Euclidean (2) norm of a vector using a stable algorithm.
Parameters:
n - length of array x
x - array of values
_x_offset - Where in the array to start, since we can't pass in a pointer to an interior location.
incx - stride, how many values to accumulate in the inner loop. Used to increase caching performance, see dlamch for details.

main

public static void main(java.lang.String[] args)
Since we aren't using the entire blas/lapack API, it is convenient to run a simple test