guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/17: gnu: Add java-la4j.


From: Ricardo Wurmus
Subject: 01/17: gnu: Add java-la4j.
Date: Sat, 3 Mar 2018 15:28:35 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit c8d996080ee7aefddad89ec155fae370d5ae2726
Author: Ricardo Wurmus <address@hidden>
Date:   Thu Mar 1 19:41:33 2018 +0100

    gnu: Add java-la4j.
    
    * gnu/packages/algebra.scm (java-la4j): New variable.
---
 gnu/packages/algebra.scm | 48 +++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 47 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm
index 2bc8431..a59346b 100644
--- a/gnu/packages/algebra.scm
+++ b/gnu/packages/algebra.scm
@@ -3,7 +3,7 @@
 ;;; Copyright © 2013, 2015, 2017, 2018 Ludovic Courtès <address@hidden>
 ;;; Copyright © 2016, 2017, 2018 Nicolas Goaziou <address@hidden>
 ;;; Copyright © 2014 Mark H Weaver <address@hidden>
-;;; Copyright © 2016 Ricardo Wurmus <address@hidden>
+;;; Copyright © 2016, 2018 Ricardo Wurmus <address@hidden>
 ;;; Copyright © 2017 Efraim Flashner <address@hidden>
 ;;; Copyright © 2017 Tobias Geerinckx-Rice <address@hidden>
 ;;; Copyright © 2017 Marius Bakke <address@hidden>
@@ -35,6 +35,7 @@
   #:use-module (gnu packages gl)
   #:use-module (gnu packages graphviz)
   #:use-module (gnu packages image)
+  #:use-module (gnu packages java)
   #:use-module (gnu packages maths)
   #:use-module (gnu packages mpi)
   #:use-module (gnu packages multiprecision)
@@ -46,9 +47,11 @@
   #:use-module (gnu packages texinfo)
   #:use-module (gnu packages xiph)
   #:use-module (gnu packages xorg)
+  #:use-module (guix build-system ant)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system cmake)
   #:use-module (guix download)
+  #:use-module (guix git-download)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
   #:use-module (guix utils))
@@ -612,6 +615,49 @@ cosine/ sine transforms or DCT/DST).")
     (synopsis "Computing the discrete Fourier transform (AVX2-optimized)")
     (supported-systems '("x86_64-linux"))))
 
+(define-public java-la4j
+  (package
+    (name "java-la4j")
+    (version "0.6.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/vkostyukov/la4j.git";)
+                    (commit version)))
+              (file-name (string-append name "-" version "-checkout"))
+              (sha256
+               (base32
+                "1qir8dr978cfvz9k12m2kbdwpyf6cqdf1d0ilb7lnkhbgq5i53w3"))))
+    (build-system ant-build-system)
+    (arguments
+     `(#:jar-name "la4j.jar"
+       #:jdk ,icedtea-8
+       #:test-exclude (list "**/Abstract*.java"
+                            "**/MatrixTest.java"
+                            "**/DenseMatrixTest.java"
+                            "**/SparseMatrixTest.java"
+                            "**/VectorTest.java"
+                            "**/SparseVectorTest.java"
+                            "**/DenseVectorTest.java")))
+    (native-inputs
+     `(("java-junit" ,java-junit)
+       ("java-hamcrest-core" ,java-hamcrest-core)))
+    (home-page "http://la4j.org/";)
+    (synopsis "Java library that provides Linear Algebra primitives and 
algorithms")
+    (description "The la4j library is a Java library that provides Linear
+Algebra primitives (matrices and vectors) and algorithms.  The key features of
+the la4j library are:
+
address@hidden
address@hidden No dependencies and tiny size
address@hidden Fluent object-oriented/functional API
address@hidden Sparse (CRS, CCS) and dense (1D/2D arrays) matrices
address@hidden Linear systems solving (Gaussian, Jacobi, Zeidel, Square Root, 
Sweep and other)
address@hidden Matrices decomposition (Eigenvalues/Eigenvectors, SVD, QR, LU, 
Cholesky and other)
address@hidden MatrixMarket/CSV IO formats support for matrices and vectors
address@hidden itemize\n")
+    (license license:asl2.0)))
+
 (define-public eigen
   (package
     (name "eigen")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]