summaryrefslogtreecommitdiff
path: root/gnu/packages/golang-maths.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/golang-maths.scm')
-rw-r--r--gnu/packages/golang-maths.scm121
1 files changed, 115 insertions, 6 deletions
diff --git a/gnu/packages/golang-maths.scm b/gnu/packages/golang-maths.scm
index a37fd37a75..b1bfe897cd 100644
--- a/gnu/packages/golang-maths.scm
+++ b/gnu/packages/golang-maths.scm
@@ -25,7 +25,9 @@
#:use-module (guix git-download)
#:use-module (guix packages)
#:use-module (gnu packages)
- #:use-module (gnu packages golang-build))
+ #:use-module (gnu packages golang)
+ #:use-module (gnu packages golang-build)
+ #:use-module (gnu packages golang-compression))
;;; Commentary:
;;;
@@ -37,6 +39,33 @@
;;; Libraries:
;;;
+(define-public go-github-com-aclements-go-gg
+ (package
+ (name "go-github-com-aclements-go-gg")
+ (version "0.0.0-20170323211221-abd1f791f5ee")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/aclements/go-gg")
+ (commit (go-version->git-ref version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "06vda3fvhyavwdcbch591v64ds8jdb1v56c8rjv8qbd6g65ky383"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:skip-build? #t
+ #:tests? #f
+ #:import-path "github.com/aclements/go-gg"))
+ (propagated-inputs
+ (list go-github-com-aclements-go-moremath))
+ (home-page "https://github.com/aclements/go-gg")
+ (synopsis "Plotting package for Golang")
+ (description
+ "gg is a plotting package for Go inspired by the Grammar of Graphics.")
+ (license license:bsd-3)))
+
(define-public go-codeberg-org-astronexus-brahe
(package
(name "go-codeberg-org-astronexus-brahe")
@@ -114,7 +143,8 @@ and APIs for non-parametric methods.")
(build-system go-build-system)
(arguments
(list
- #:import-path "github.com/cockroachdb/apd"))
+ #:import-path "github.com/cockroachdb/apd"
+ #:test-flags #~(list "-skip" "TestFormatFlags/.*010G")))
(propagated-inputs
(list go-github-com-pkg-errors))
(home-page "https://github.com/cockroachdb/apd")
@@ -142,8 +172,9 @@ and GCC’s decimal extension.")
(sha256
(base32 "1jrb43l80mr8q1hx8q4p54rld6kya886ackv5yzqyhhhl271rnm6"))))
(arguments
- (list
- #:import-path "github.com/cockroachdb/apd/v3"))))
+ (substitute-keyword-arguments
+ (package-arguments go-github-com-cockroachdb-apd)
+ ((#:import-path _) "github.com/cockroachdb/apd/v3")))))
(define-public go-github-com-johncgriffin-overflow
(package
@@ -186,6 +217,82 @@ flow into higher precision types from the @code{math.big} library.")
;; It's in README, see <https://github.com/JohnCGriffin/overflow/pull/5>.
(license license:expat)))
+(define-public go-github-com-kshedden-dstream
+ (package
+ (name "go-github-com-kshedden-dstream")
+ (version "0.0.0-20190512025041-c4c410631beb")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/kshedden/dstream")
+ (commit (go-version->git-ref version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0y9h5izl6s74kh7wlikagfl0mvsgmhn9m5fch3zpchjnx9m8307l"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:skip-build? #t
+ #:import-path "github.com/kshedden/dstream"))
+ (propagated-inputs
+ (list go-github-com-golang-snappy
+ go-gonum-org-v1-gonum))
+ (home-page "https://github.com/kshedden/dstream")
+ (synopsis "Process data streams in Golang")
+ (description
+ "Dstream is a package for manipulating streams of typed, multivariate
+data in Go. A Dstream is a dataframe-like container that holds a rectangular
+array of data in which the columns are variables and the rows are cases or
+observations.
+
+Dstream is designed to handle large datasets, where it is not possible to load
+all data for all variables into memory at once. To achieve this, Dstream
+utilizes a chunked, column-based storage format. A chunk contains the data
+for a contiguous block of rows. The data are stored by variable (column-wise)
+in typed Go slices. Only one chunk of the Dstream is held in memory at one
+time.")
+ (license license:bsd-3)))
+
+(define-public go-github-com-kshedden-statmodel
+ (package
+ (name "go-github-com-kshedden-statmodel")
+ (version "0.0.0-20210519035403-ee97d3e48df1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/kshedden/statmodel")
+ (commit (go-version->git-ref version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0v1p0gzkjakci7wbp6x9b4zgnh1qs1lpr6dfb663w868q9hx95vy"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:skip-build? #t
+ #:import-path "github.com/kshedden/statmodel"
+ #:test-flags #~(list "-vet=off")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-examples-and-benchmarks
+ (lambda* (#:key tests? import-path #:allow-other-keys)
+ (with-directory-excursion (string-append "src/" import-path)
+ (delete-file-recursively "duration/examples")
+ (delete-file-recursively "glm/examples")))))))
+ (propagated-inputs
+ (list go-github-com-kshedden-dstream
+ go-gonum-org-v1-gonum))
+ (home-page "https://github.com/kshedden/statmodel")
+ (synopsis "Statistical modeling in Golang")
+ (description
+ "This package implements a functionality for fitting statistical model.
+Additional Go packages include @code{glm} for Generalized Liner Models and
+@code{duration} for survival analysis. All models can be fit with maximum (or
+quasi-maximum) likelihood estimation, with optional L1 (Lasso) or L2 (ridge)
+penalization.")
+ (license license:bsd-3)))
+
(define-public go-github-com-montanaflynn-stats
(package
(name "go-github-com-montanaflynn-stats")
@@ -202,6 +309,7 @@ flow into higher precision types from the @code{math.big} library.")
(build-system go-build-system)
(arguments
(list
+ #:go go-1.23
#:import-path "github.com/montanaflynn/stats"
#:phases
#~(modify-phases %standard-phases
@@ -300,7 +408,7 @@ format as binary16.")
(define-public go-gonum-org-v1-gonum
(package
(name "go-gonum-org-v1-gonum")
- (version "0.15.1")
+ (version "0.16.0")
(source
(origin
(method git-fetch)
@@ -309,10 +417,11 @@ format as binary16.")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "002qsavnylj8l4ki56narpn3zm0r9p7p8ccgd20q1xp751wg2kvp"))))
+ (base32 "01mj449mlvp863d6k9zaz3y2z3vc0l5vcn046f17s83f49r0sh58"))))
(build-system go-build-system)
(arguments
(list
+ #:go go-1.23
#:import-path "gonum.org/v1/gonum"
#:test-subdirs
#~(list "."