math/py-ndindex 1.10.1_2 FreeBSD
Python library for manipulating indices of ndarrays
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- MIT
- Categories
- math, python
- Package size
- 228.6 KiB, 1182.6 KiB installed
Description
ndindex is a library that allows representing and manipulating objects that can be valid indices to numpy arrays, i.e., slices, integers, ellipses, None, integer and boolean arrays, and tuples thereof. The goals of the library are:
- Provide a uniform API to manipulate these objects. Unlike the standard index objects themselves like slice, int, and tuple, which do not share any methods in common related to being indices, ndindex classes can all be manipulated uniformly. For example, idx.args always gives the arguments used to construct idx.
- Give 100% correct semantics as defined by numpy's ndarray. This means that ndindex will not make a transformation on an index object unless it is correct for all possible input array shapes. The only exception to this rule is that ndindex assumes that any given index will not raise IndexError (for instance, from an out of bounds integer index or from too few dimensions). For those operations where the array shape is known, there is a reduce() method to reduce an index to a simpler index that is equivalent for the given shape.
- Enable useful transformation and manipulation functions on index objects.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | math/py-ndindex | 1.10.1_2 |
| DragonFly | math/py-ndindex | 1.9.2 |
Install
Binary package:
pkg install py312-ndindex
From the ports tree:
cd /usr/ports/math/py-ndindex/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-ndindex>0:math/py-ndindex
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.10.1_2 | 1.10.1_2 | 1.6 | 1.10.0 | 1.10.1_2 |
| FreeBSD:14:quarterly | 1.10.1_2 | 1.10.1_2 | n/a | 1.10.0 | 1.10.1_2 |
| FreeBSD:15:latest | 1.10.1_2 | 1.10.1_2 | n/a | 1.10.0 | 1.10.0 |
| FreeBSD:15:quarterly | 1.10.1_2 | 1.10.1_2 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.10.1_2 | 1.10.1_2 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 2
${PYTHON_PKGNAMEPREFIX}setuptools>=0: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
The full lists below include those, and their dependencies in turn.
Build dependencies 17
Run dependencies 7
Required by 1
Configuration
Options name: math_ndindex
| Option | Default | Description |
|---|---|---|
| ARRAYS | off | Array support |
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| ndindex-1.10.1.tar.gz | 271395 | 0f6113c1f031248f8818cbee1aa92aa3c9472b7701debcce9fddebcd2f610f11 |
Master sites 2
- PYPI
- https://github.com/Quansight-Labs/ndindex/releases/download/1.10.1/
Commit history 0
No commits in the history this site was built from.