jPETScTaoWhat it is
jPETScTao is the name for a Java project, that tries to make
a part of the functionality of two numeric libraries
PETSc
and TAO
accessible for Java programs.
It utilizes the JNI to achieve that.
What it can
At the moment it is possible
What it can't
How to use
It's similar to PETSc and TAOThe names of the classes (= structures in c) and methods are the same (only adapted to Java naming conventions) and especially the functionality of the methods are at least hoped to be the same. Functions that belong logically to some structure (e.g. Vec or Mat) in both libraries carry the structure Name as Prefix (e.g. MatGetSize). That prefix is stripped off for those functions, that become members of the corresponding class the same time.Some further differences are necessaryBecause of the different natures of c and java mainly two big changes to the API were necessary:
it is translated to java to the following Mat class's members:
A small example
This simple example uses jPETScTao to find and calculate the minimum of:f: R->R , x|-> x^2
as highlighted html file as plain Java file A small MPI example
as highlighted html fileas plain Java file download
You can download the complete source code :
jPETScTao-src.jar.
For binary versions look at the jrworkspace project. It's integrated as the library called jPETScTao. api-doc
javadoc output
|