Skip to content

Instantly share code, notes, and snippets.

@OpenGamma-Blog
Created May 24, 2012 13:44
Show Gist options
  • Save OpenGamma-Blog/2781621 to your computer and use it in GitHub Desktop.
Save OpenGamma-Blog/2781621 to your computer and use it in GitHub Desktop.
JNA Example 1 - OpenGamma
// interface for LAPACK via JNA
public interface LAPACKLibrary extends Library {
LAPACKLibrary INSTANCE = (LAPACKLibrary)
Native.loadLibrary("liblapack.so",LAPACKLibrary.class);
LAPACKLibrary SYNC_INSTANCE = (LAPACKLibrary) Native.synchronizedLibrary(INSTANCE);
void dgemv_(...);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment