From ba1be533ad4db5a032559fc1a6f501b5de381088 Mon Sep 17 00:00:00 2001 From: Ben Woodcroft Date: Fri, 17 Mar 2017 21:23:21 +1000 Subject: gnu: Add ocaml-gsl. * gnu/packages/maths.scm (ocaml-gsl): New variable. --- gnu/packages/maths.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'gnu/packages/maths.scm') diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 03567ba083..adc81561c7 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -17,6 +17,7 @@ ;;; Copyright © 2016 Thomas Danckaert ;;; Copyright © 2017 Paul Garlick ;;; Copyright © 2017 ng0 +;;; Copyright © 2017 Ben Woodcroft ;;; ;;; This file is part of GNU Guix. ;;; @@ -44,6 +45,7 @@ (define-module (gnu packages maths) #:use-module (guix build utils) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) + #:use-module (guix build-system ocaml) #:use-module (guix build-system r) #:use-module (gnu packages algebra) #:use-module (gnu packages bison) @@ -77,6 +79,7 @@ (define-module (gnu packages maths) #:use-module (gnu packages mpi) #:use-module (gnu packages multiprecision) #:use-module (gnu packages netpbm) + #:use-module (gnu packages ocaml) #:use-module (gnu packages pcre) #:use-module (gnu packages popt) #:use-module (gnu packages perl) @@ -277,6 +280,30 @@ (define-public gsl numbers.") (license license:gpl3+))) +(define-public ocaml-gsl + (package + (name "ocaml-gsl") + (version "1.19.3") + (source + (origin + (method url-fetch) + (uri + (string-append + "https://github.com/mmottl/gsl-ocaml/releases/download/v" + version"/gsl-ocaml-" version ".tar.gz")) + (sha256 + (base32 + "0nzp43hp8pbjqkrxnwp5lgjrabxayf61h18fjaydi0s5faq6f3xh")))) + (build-system ocaml-build-system) + (inputs + `(("gsl" ,gsl))) + (home-page "https://mmottl.github.io/gsl-ocaml") + (synopsis "Bindings to the GNU Scientific Library") + (description + "GSL-OCaml is an interface to the @dfn{GNU scientific library} (GSL) for +the OCaml language.") + (license license:gpl3+))) + (define-public glpk (package (name "glpk") -- cgit v1.2.3 From a53d6719bc6b6b4afdc58e257ac712df316c8858 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Tue, 7 Mar 2017 07:51:51 +0100 Subject: gnu: Add itpp. * gnu/packages/maths.scm (itpp): New variable. --- gnu/packages/maths.scm | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'gnu/packages/maths.scm') diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index adc81561c7..fe85983c24 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -1,7 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2013, 2014, 2015, 2016 Andreas Enge ;;; Copyright © 2013 Nikita Karetnikov -;;; Copyright © 2014, 2016 John Darrington +;;; Copyright © 2014, 2016, 2017 John Darrington ;;; Copyright © 2014, 2015, 2016 Eric Bavier ;;; Copyright © 2014 Federico Beffa ;;; Copyright © 2014 Mathieu Lirzin @@ -761,6 +761,34 @@ (define-public h5check HDF5 file is encoded according to the HDF File Format Specification.") (license (license:x11-style "file://COPYING")))) +(define-public itpp + (package + (name "itpp") + (version "4.3.1") + (source (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/itpp/itpp/" + version "/itpp-" + version ".tar.gz")) + (sha256 + (base32 + "14ddy2xnb6sgp4hiax9v5sv4pr4l4dd4ps76nfha3nrpr1ikhcqm")))) + (build-system cmake-build-system) + (arguments `(#:tests? #f)) ; Tests require googletest *sources* + (inputs `(("lapack" ,lapack) + ("fftw" ,fftw))) + (native-inputs `(("texlive-minimal" ,texlive-minimal) + ("doxygen" ,doxygen))) + (home-page "http://itpp.sourceforge.net") + (synopsis "C++ library of maths, signal processing and communication classes") + (description "IT++ is a C++ library of mathematical, signal processing and +communication classes and functions. Its main use is in simulation of +communication systems and for performing research in the area of +communications. The kernel of the library consists of generic vector and +matrix classes, and a set of accompanying routines. Such a kernel makes IT++ +similar to MATLAB, GNU Octave or SciPy.") + (license license:gpl3+))) + (define-public netcdf (package (name "netcdf") -- cgit v1.2.3 From 6d5f63b690586e819258617a8d0fb9bd18897b8f Mon Sep 17 00:00:00 2001 From: John Darrington Date: Wed, 8 Mar 2017 19:24:31 +0100 Subject: gnu: Add maxflow. * gnu/packages/maths.scm (maxflow): New variable. --- gnu/packages/maths.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'gnu/packages/maths.scm') diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index fe85983c24..ed13556cb4 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -1138,6 +1138,30 @@ (define-public gmsh ASCII text files using Gmsh's own scripting language.") (license license:gpl2+))) +(define-public maxflow + (package + (name "maxflow") + (version "3.04") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gerddie/maxflow.git") + (commit "42401fa54823d16b9da47716f04e5d9ef1605875"))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "0rll38whw55h0vcjrrwdnh9ascvxby0ph7n1l0d12z17cg215kkb")))) + (build-system cmake-build-system) + (home-page "http://pub.ist.ac.at/~vnk/software.html") + (synopsis "Library implementing Maxflow algorithm") + (description "An implementation of the maxflow algorithm described in +@cite{An Experimental Comparison of Min-Cut/Max-Flow Algorithms for +Energy Minimization in Computer Vision.\n +Yuri Boykov and Vladimir Kolmogorov.\n +In IEEE Transactions on Pattern Analysis and Machine Intelligence,\n +September 2004}") + (license license:gpl3+))) + (define-public petsc (package (name "petsc") -- cgit v1.2.3