combineArrays
This package provides Python CFFI bindings to combine NumPy arrays in C++. Functions are:
- replicate_arrays
- calc_distance
- centroid_aux
Documentation
Installation
To install type:
$ pip install combineArrays
Usage of replicate_arrays( a, y, length_a, n)
from combineArrays import replicate_arrays
Parameters
Input parameters:
a: array to be replicated, float
n: num replications, int64
Output parameters:
y: replicated array of length n_times * length_array, float
Usage of calc_distance( a_x_u, a_y_u, b_x, b_y, dist, num_u, num_b)
from combineArrays import calc_distance
Parameters
Input parameters:
a_x_u, a_y_u: arrays of length num_u, float
b_x, b_y: arrays of length num_b, float
Output parameters:
dist: array of size U*B of pairwise distances arranged as [d_u1b1, d_u1b2, d_u2b1, d_u2b2, d_u3b1, d_u3b2], float
Usage of centroid_aux( a_demand, ov_allocation_u_b, a_coordinate_u, coo_b)
from combineArrays import centroid_aux
Parameters
Input parameters:
demand: array of length num_u, float
allocation: array of length num_u * num_b, float
coordinate: array of length num_u, float
Output parameters:
coo_b : array of length num_b, float
Test
To unit test type:
$ test/test.py
Metadata
Release files for combineArrays 0.77
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| combineArrays-0.77.tar.gz | 65.7 kB | Without provenance | Details for combineArrays-0.77.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| combineArrays-0.77-cp39-cp39-macosx_10_9_x86_64.whl | CPython 3.9 | CPython 3.9 | macOS 10.9+ x86-64 | Details for combineArrays-0.77-cp39-cp39-macosx_10_9_x86_64.whl |
Total release size: 85.1 kB
Release files / combineArrays-0.77.tar.gz
| Download URL | combineArrays-0.77.tar.gz |
|---|---|
| Size | 65.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da45e816d8f13184aa99069640d5565ab152ff26736f8a686c5629817b38a73b
|
|
BLAKE2b-256 checksum How to use checksums |
52202c49688ddd3887dcf9c8f22d6c2cb07d57cf632cf327247b823914ece771
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7
|
Release files / combineArrays-0.77-cp39-cp39-macosx_10_9_x86_64.whl
| Download URL | combineArrays-0.77-cp39-cp39-macosx_10_9_x86_64.whl |
|---|---|
| Size | 19.4 kB |
| Tags | CPython 3.9 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
6f0e63a95c3905d8d487cd0dffe5f81b6a6e4a11c2480fe2580b9d2affbae01b
|
|
BLAKE2b-256 checksum How to use checksums |
16c6c9b3422c4d3efeb20381f0808a58e62f786afb8f213927e43d22d2217c47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.1.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7
|
Security for combineArrays 0.77
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.