Matrix Toolkits Scala (MTS) is a set of additionnal API using scala language features to leverage the high performance Matrix Toolkits Java (MTJ) project. Notably it allow to use the usual mathematical notation for linear algebra such as:
def x(t: Double) = x0 + v*t + 0.5*a*t*t
Here x0
, v
and a
are MTJ vectors of same dimension and this function returns a vector convertible implicitely to an MTJ vector.
MTS is an experimental project under development. Although its API should be stable, changes can still occur.
Currently, vector operations are implemented and developement will sonn move on matrix operations.
- MTJ and thus
netlib-java
andarpack
(the corresponding jars are included in the repository,lib
directory) - SBT to build.
- Scalatest for testing, automatically installed by SBT
- Java 6
- Make a copy of this repository with git: git clone git://github.com/paradigmatic/mts.git
- Install java 6 and SBT
- Install the build dependencies by running: sbt update
- Compile it: sbt compile
- Test it: sbt test
- Package it: sbt package
After following the procedure above, you should obtain a jar file in the /target/scala_2.8.0/
called mts_2.8.0-x.y.z.jar
.
You should then include this jar in the classpath, along with the other jar in the lib
folder.
Check the project wiki.
MTS is a free and open software licensed with the GNU General Public License v3. Chek the LICENSE file for details.