JaLAJni is a JAVA package providing a java interface for lapack and blas library. This package contains two different versions: JaLAJni and JaLAJniLite. Both of them serve as a java interface for lapack and blas library. The main difference is that the former one - JaLAJni - calls an intermediate c interface - cblas and lapacke - which requires previous installation. So if you want to use this version called JaLAJni, you have to install cblas and lapacke first (detailed installation instructions are listed below). The latter one (JaLAJniLite), is a simplified version which requires no installation of any libraries other than lapack and blas. In JaLAJni, some machines might fail to compile the source file if you link both the libblas and libcblas when building the blas interface, while in some other ones you cannot compile without any of them. But the version - JaLAJniLite - does not involve such issues.
-
JaLAJni requires the installation of lapacke and cblas. (The command in Ubuntu is "sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev liblapacke-dev")
-
To compile the package, go to the folder src/JaLAJni, find the Makefile and run "make" on the command line. Notice that you may have to change the extension of generated libraries in the Makefile base on your operating system. On OS X you have to change all the extensions of dynamic library to .dylib while on Linux the corresponding extensions are .so or .a.
-
To clean generated file, type “make clean” on the command line.
-
JaLAJniLite requires the installation of lapack and blas. (The command in Ubuntu is "sudo apt-get install libblas-dev liblapack-dev")
-
To compile the package, go to the folder src/JaLAJniLite, find the Makefile and run "make" on the command line. Notice that you may have to change the extension of generated libraries in the Makefile base on your operating system. On OS X you have to change all the extensions of dynamic library to .dylib while on Linux the corresponding extensions are .so or .a.
-
To clean generated file, type “make clean” on the command line.
For testing, change directory to test/JaLAJni_tests (test/JaLAJniLite_tests), then type “make” to run the test files. If you want to clean testing results and all class files, type "make clean".
This package is intended for some basic problems we encounter when solving linear algebra problems. So we only include several most basic and widely used routines of the blas and lapack library.
JaLAJni's source-code repository is hosted here on GitHub.
Name | ||
---|---|---|
Lu Zhang (maintainer) | [email protected] | Department of Biostatistics UCLA |
LiZhen Nie | [email protected] | Department of Statistics Chicago University |
Sudipto Banerjee | [email protected] | Department of Biostatistics UCLA |
JaLAJni is licensed under the Creative Commons Attribution License.