ch.javasoft.smx.ops
Class Hsl

java.lang.Object
  extended by ch.javasoft.smx.ops.Hsl

public class Hsl
extends Object

The Hsl class bridges to the fortran HSL library. Only some selected functions are supported.

See http://hsl.rl.ac.uk/hsl2007/distrib/packages/hsl_mc66/hsl_mc66.pdf username: mterzer pwd: as usual, for hsl


Nested Class Summary
static class Hsl.Info_mc66
           
static class Hsl.Result_mc66
          Output structure to return multiple result values
 
Constructor Summary
Hsl()
           
 
Method Summary
static void loadLibrary()
          Can be called to check whether the HSL shared library (libhsl.so) can be loaded.
static Hsl.Result_mc66 mc66(int m, int n, int nz, int[] irn, int[] jcn, int nblocks, int seed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hsl

public Hsl()
Method Detail

loadLibrary

public static void loadLibrary()
Can be called to check whether the HSL shared library (libhsl.so) can be loaded. If not, an exception is thrown. Otherwise, this function does nothing.


mc66

public static Hsl.Result_mc66 mc66(int m,
                                   int n,
                                   int nz,
                                   int[] irn,
                                   int[] jcn,
                                   int nblocks,
                                   int seed)
Parameters:
m - number of matrix rows
n - number of matrix colums
irn - non-zero row indices, must have same length as jcn
jcn - non-zero column indices, must have same length as icn
nblocks - number of desired blocks