|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.jxta.search.util.text.Dnrm2
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 |
public Dnrm2()
Method Detail |
public static double dnrm2(int n, double[] x, int _x_offset, int incx)
n
- length of array xx
- 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.public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |