Skip to main content

CumPy - Python bindings for CUM

Lightweight python binding over CUM library.

Quickstart

Installation

pip install cumpy

Basic usage

import cumpy as cp

cp.init(cp.Device.CPU)

a = cp.Tensor.from_data((2, 2), [1, 2, 3, 4])
b = cp.Tensor.ones((2, 2)) * 2.0

print(a + b)   # addition
print(a * b)   # element-wise multiplication
print(a @ b)   # matrix product
print(a.sum(), a.mean(), a.norm())

cp.shutdown()

Examples

  • examples/basic_tensors.py – creating tensors, arithmetics, unary functions, reductions, transpositions and reshape.
  • examples/matrix_and_vector.py – operations on Matrix i Vector, indexing m[r, c] / v[i], dot product, etc.
  • examples/linear_regression.py – linear regresion trained with gradient descent using Tensor.

Metadata

Release files for cumpy 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cumpy 0.1.5
File Size Uploaded Provenance Actions
cumpy-0.1.5.tar.gz 9.9 kB Without provenance Details for cumpy-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cumpy 0.1.5
File Interpreter ABI Platform Actions
cumpy-0.1.5-py3-none-manylinux_2_34_x86_64.whl Python 3 none Linux glibc 2.34+ x86-64 Details for cumpy-0.1.5-py3-none-manylinux_2_34_x86_64.whl

Total release size: 29.1 MB

Release files / cumpy-0.1.5.tar.gz

Download URL cumpy-0.1.5.tar.gz
Size 9.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ab0368ad79dbf8e51b36c97dc7e2fc5d1c6e836932be96aaee35de54f1814fd2
BLAKE2b-256 checksum
How to use checksums
53561b623bb93387f1a03c36f40135b33fbe81ac5174b9387c5a3e1065a21729
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / cumpy-0.1.5-py3-none-manylinux_2_34_x86_64.whl

Download URL cumpy-0.1.5-py3-none-manylinux_2_34_x86_64.whl
Size 29.1 MB
Tags Linux glibc 2.34+ x86-64 Python 3
SHA-256 checksum
How to use checksums
b6cf039709a8093fec2c624259119b843564ef6b03ea5fb13fd7d95b9a06720c
BLAKE2b-256 checksum
How to use checksums
586ea9bdb873e1b6b37b2de54bc7f3014f0e0e057be7442d2ff2f36808059950
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for cumpy 0.1.5

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page