|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectHmetis
public class Hmetis
This class is an interface library to the C++ hMeTiS library.
The library java_hmetis is loaded in a static initializer, but will not throw an error there. It can be tested for using loaded(). An UnsatisfiedLinkError will be thrown if its functions are later called after failing to load the library.
The timing parameter will return the information from the system call "clock()", where [0]=the time used by the library. It will add the current amount of time to whatever is already in the array, thereby allowing a cumulative time to be kept.
Method Summary | |
---|---|
static int[] |
HMETIS_PartKway(Hypergraph hg,
int[] options,
int ubfactor,
int[] edgecut,
double[] timing)
Returns an integer array where each element is 0..numPartitions-1, representing the partition that hypernode was assigned. |
static int[] |
HMETIS_PartKway(Hypergraph hg,
int[] options,
int ubfactor,
int[] edgecut,
int[] vwgts,
double[] timing)
Returns an integer array where each element is 0..numPartitions-1, representing the partition that hypernode was assigned. |
static int |
HMETIS_PartKway(int nvtxs,
int nhedges,
int[] vwgts,
int[] eptr,
int[] eind,
int[] hewgts,
int nparts,
int ubfactor,
int[] options,
int[] part,
int[] edgecut,
double[] timing)
Call the hMetis function, and return 0 if success, or nonzero if an error happened. |
static int[] |
HMETIS_PartRecursive(Hypergraph hg,
int[] options,
int ubfactor,
int[] edgecut,
double[] timing)
Returns an integer array where each element is 0..numPartitions-1, representing the partition that hypernode was assigned. |
static int[] |
HMETIS_PartRecursive(Hypergraph hg,
int[] options,
int ubfactor,
int[] edgecut,
int[] vwgts,
double[] timing)
Returns an integer array where each element is 0..numPartitions-1, representing the partition that hypernode was assigned. |
static int |
HMETIS_PartRecursive(int nvtxs,
int nhedges,
int[] vwgts,
int[] eptr,
int[] eind,
int[] hewgts,
int nparts,
int ubfactor,
int[] options,
int[] part,
int[] edgecut,
double[] timing)
Call the hMetis function, and return 0 if success, or nonzero if an error happened. |
static boolean |
loaded()
|
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean loaded()
public static int HMETIS_PartRecursive(int nvtxs, int nhedges, int[] vwgts, int[] eptr, int[] eind, int[] hewgts, int nparts, int ubfactor, int[] options, int[] part, int[] edgecut, double[] timing)
public static int HMETIS_PartKway(int nvtxs, int nhedges, int[] vwgts, int[] eptr, int[] eind, int[] hewgts, int nparts, int ubfactor, int[] options, int[] part, int[] edgecut, double[] timing)
public static int[] HMETIS_PartRecursive(Hypergraph hg, int[] options, int ubfactor, int[] edgecut, double[] timing)
public static int[] HMETIS_PartRecursive(Hypergraph hg, int[] options, int ubfactor, int[] edgecut, int[] vwgts, double[] timing)
public static int[] HMETIS_PartKway(Hypergraph hg, int[] options, int ubfactor, int[] edgecut, double[] timing)
public static int[] HMETIS_PartKway(Hypergraph hg, int[] options, int ubfactor, int[] edgecut, int[] vwgts, double[] timing)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |