Skip to content

Commit

Permalink
devel/py-sparse: Add py-sparse 0.13.0
Browse files Browse the repository at this point in the history
This implements sparse arrays of arbitrary dimension on top of numpy and
scipy.sparse. It generalizes the scipy.sparse.coo_matrix and
scipy.sparse.dok_matrix layouts, but extends beyond just rows and columns to an
arbitrary number of dimensions.

Additionally, this project maintains compatibility with the numpy.ndarray
interface rather than the numpy.matrix interface used in scipy.sparse

These differences make this project useful in certain situations where
scipy.sparse matrices are not well suited, but it should not be considered a
full replacement. The data structures in pydata/sparse complement and can be
used in conjunction with the fast linear algebra routines inside scipy.sparse. A
format conversion or copy may be required.
  • Loading branch information
sunpoet committed Feb 5, 2023
1 parent f904e02 commit 8c5d502
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -5417,6 +5417,7 @@
SUBDIR += py-sniffio
SUBDIR += py-sortedcontainers
SUBDIR += py-sourcemap
SUBDIR += py-sparse
SUBDIR += py-speaklater
SUBDIR += py-speg
SUBDIR += py-spyder-kernels
Expand Down
23 changes: 23 additions & 0 deletions devel/py-sparse/Makefile
@@ -0,0 +1,23 @@
PORTNAME= sparse
PORTVERSION= 0.13.0
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Sparse n-dimensional arrays
WWW= https://github.com/pydata/sparse

LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE

RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numba>=0.49:devel/py-numba@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}numpy>=1.17,1:math/py-numpy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}scipy>=0.19:science/py-scipy@${PY_FLAVOR}

USES= python:3.6+
USE_PYTHON= autoplist concurrent distutils

NO_ARCH= yes

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions devel/py-sparse/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1675190915
SHA256 (sparse-0.13.0.tar.gz) = 685dc994aa770ee1b23f2d5392819c8429f27958771f8dceb2c4fb80210d5915
SIZE (sparse-0.13.0.tar.gz) = 349320
13 changes: 13 additions & 0 deletions devel/py-sparse/pkg-descr
@@ -0,0 +1,13 @@
This implements sparse arrays of arbitrary dimension on top of numpy and
scipy.sparse. It generalizes the scipy.sparse.coo_matrix and
scipy.sparse.dok_matrix layouts, but extends beyond just rows and columns to an
arbitrary number of dimensions.

Additionally, this project maintains compatibility with the numpy.ndarray
interface rather than the numpy.matrix interface used in scipy.sparse

These differences make this project useful in certain situations where
scipy.sparse matrices are not well suited, but it should not be considered a
full replacement. The data structures in pydata/sparse complement and can be
used in conjunction with the fast linear algebra routines inside scipy.sparse. A
format conversion or copy may be required.

0 comments on commit 8c5d502

Please sign in to comment.