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.1

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

Built distribution (wheel)

Table of built distributions (wheels) for cumpy 0.1.5.1
File Interpreter ABI Platform Actions
cumpy-0.1.5.1-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for cumpy-0.1.5.1-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Release files / cumpy-0.1.5.1-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL cumpy-0.1.5.1-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 27.7 MB
Tags Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
9517625eb1c8d8ce6c10c8bc55b9136c473878c0adbb0dfa57e8dc73be1b3994
BLAKE2b-256 checksum
How to use checksums
8de18e933fda05f87b027751dc2a0e5d32d8686a0ee0cf40fcb40a5bd5c29d7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Security for cumpy 0.1.5.1

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.

Full provenance

All 1 file in this release has been uploaded with provenance metadata.

Attestation for cumpy-0.1.5.1-py3-none-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

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