Skip to main content

rt-core-amador

Lightweight mathematical tools implemented in pure Python. The package has no runtime dependencies and requires Python 3.10 or newer.

Scope: this is a new, self-contained implementation inspired by the requested project idea. "Amador Transform" here means the explicitly documented phase-modulated discrete Fourier transform below; it does not claim to reproduce an earlier implementation or an independently established mathematical definition.

Install

python -m pip install rt-core-amador

Quick start

from rt_core_amador import AmadorTensor, AmadorTransform

tensor = AmadorTensor([[1, 2], [3, 4]])
print((tensor * 2).to_list())

transform = AmadorTransform(phase=0.2)
coefficients = transform.forward([1, 0, -1, 0])
restored = transform.inverse(coefficients)

API

AmadorTensor

A small dense tensor backed by a flat tuple of Python floats. Construction accepts a scalar or rectangular nested list/tuple. Supports element-wise addition, subtraction, multiplication and division with another tensor of the same shape or a scalar, plus dot() for vectors and matmul() for matrices. This intentionally does not implement NumPy-style broadcasting.

AmadorTransform

forward(values) computes a DFT normalized by 1/N and applies a phase rotation exp(i * phase * k) to frequency bin k. inverse(coefficients) removes that rotation and computes the corresponding inverse. Both operations accept a non-empty one-dimensional sequence; output values are Python complex numbers.

NavierStokesOptimizer

A simple explicit 2D incompressible Navier–Stokes projection step on a rectangular periodic grid. Call step(u, v, dt) with same-sized 2D velocity grids. It returns (u_next, v_next, pressure). This is a basic educational finite-difference solver, not a production CFD package: explicit time steps must satisfy stability constraints, and boundary conditions are periodic.

KahlerManifold

Numerically estimates the Hermitian metric g[i, j] = d²φ / dz[i] d(conjugate(z[j])) from a real-valued potential φ(z). The default potential sum(abs(z_i)**2) yields the identity metric. metric_at(point) returns a matrix of complex values and norm_squared(point, tangent) evaluates the induced squared norm. Finite differences are approximate and the supplied potential should be smooth and strictly plurisubharmonic near the point.

Development

Run the tests with:

python -m unittest discover -s tests -v

Build the source and wheel distributions with:

python -m pip install --upgrade build
python -m build

PyPI publishing

The GitHub Actions workflow at .github/workflows/publish.yml builds on a GitHub Release and publishes with PyPI Trusted Publishing (OIDC). Configure a trusted publisher on PyPI for this GitHub repository, workflow file publish.yml, and the pypi environment. Create a GitHub environment named pypi before publishing. No PyPI API token is stored in GitHub secrets.

Metadata

Release files for rt-core-amador 1.0.0

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

Source distribution (sdist)

Source distribution for rt-core-amador 1.0.0
File Size Uploaded
rt_core_amador-1.0.0.tar.gz 9.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rt-core-amador 1.0.0
File Interpreter ABI Platform
rt_core_amador-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.6 kB

Release files / rt_core_amador-1.0.0.tar.gz

Download URL rt_core_amador-1.0.0.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e94d90ccd00e6e2c512372e34b207ca77c7eb205a699f23492a74a0561fa845f
BLAKE2b-256 checksum
How to use checksums
a62790464cef550af0931db3b737f7b3e45e429f7e9ebecb9d46183d8828d6ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 4, 2026.

Transparency log

Release files / rt_core_amador-1.0.0-py3-none-any.whl

Download URL rt_core_amador-1.0.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48cb4604625b011093c971a63833878540272602af5d848bb0dcb51c50ee7310
BLAKE2b-256 checksum
How to use checksums
aac72d06cbf0e3f2ebc7e73a56e259e24a098b01e1ce95aed624f51cc28f94ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 4, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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