Skip to main content

cadmea

Cadmea is currently a symbolic parametric CAD kernel prototype. The packaged Python surface contains fixed-size symbolic values, reverse-mode autodiff, and a small optimizer layer.

Current Python API

import math

import cadmea as cd

x = cd.Parameter(0.2, name="x")
opt = cd.optim.Adam([x], lr=0.02)

for _ in range(520):
    residual = cd.sin(x) - 0.5
    loss = residual * residual
    opt.zero_grad()
    loss.backward()
    opt.step()

assert abs(math.sin(x.value[0]) - 0.5) < 1e-8

The active value model is:

  • Constant: fixed scalar/vec1, vec2, vec3, or vec4 value.
  • Parameter: user-owned differentiable input.
  • Undefined: solver-owned unknown placeholder with optional hint.
  • Expression: derived symbolic value.

Constructors infer dimension from arguments:

radius = cd.Parameter(15.0)
center = cd.Parameter(10.0, 20.0)
origin = cd.Constant(0.0, 0.0)
unknown = cd.Undefined(hint=(0.0, 0.0))
packed = cd.vec2(radius, cd.sin(radius))

Reverse-mode differentiation currently supports arithmetic, unary negation, sin, and cos. Gradients accumulate on Parameter leaves:

w = cd.Parameter(190.0)
h = cd.Parameter(240.0)
area = w * h

area.backward()
assert w.grad == (240.0,)
assert h.grad == (190.0,)

Optimizers live under cadmea.optim:

  • SGD
  • RMSProp
  • Adam
  • AdamW
  • Adagrad

Optimizers mutate only Parameter values. They do not assign Undefined values and are separate from the future sketch constraint solver.

Metadata

Release files for cadmea 0.1.0

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

Built distributions (wheels)

Table of built distributions (wheels) for cadmea 0.1.0
File Actions
cadmea-0.1.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for cadmea-0.1.0-cp314-cp314-win_amd64.whl
cadmea-0.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ x86-64 Details for cadmea-0.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
cadmea-0.1.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ ARM64 Details for cadmea-0.1.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
cadmea-0.1.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for cadmea-0.1.0-cp313-cp313-win_amd64.whl
cadmea-0.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details for cadmea-0.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
cadmea-0.1.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ ARM64 Details for cadmea-0.1.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
cadmea-0.1.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for cadmea-0.1.0-cp312-cp312-win_amd64.whl
cadmea-0.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for cadmea-0.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
cadmea-0.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ ARM64 Details for cadmea-0.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
cadmea-0.1.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for cadmea-0.1.0-cp311-cp311-win_amd64.whl
cadmea-0.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for cadmea-0.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
cadmea-0.1.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ ARM64 Details for cadmea-0.1.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
cadmea-0.1.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for cadmea-0.1.0-cp310-cp310-win_amd64.whl
cadmea-0.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for cadmea-0.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
cadmea-0.1.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ ARM64 Details for cadmea-0.1.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Total release size: 21.2 MB

Release files / cadmea-0.1.0-cp314-cp314-win_amd64.whl

Download URL cadmea-0.1.0-cp314-cp314-win_amd64.whl
Size 3.9 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
e17c66010e676805cbd5d9be11b49958ee3371d15042faedc5b2cefb102544a1
BLAKE2b-256 checksum
How to use checksums
625d64349adf0777ff940dfc553c228e30b28258c3aa484f86889a7e62137adc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / cadmea-0.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL cadmea-0.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 198.3 kB
Tags CPython 3.14 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
9b1f2ad0ef672bed034bcbf33d3aa7e4d2fc677109154b0ffc42732211aedffa
BLAKE2b-256 checksum
How to use checksums
64e8b7e12823e08821041c6cb07c92fbe87c99863ceb67f0757be880812b59c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / cadmea-0.1.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL cadmea-0.1.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 187.2 kB
Tags CPython 3.14 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
8e0c87800a0f50a54a382908fcfc356d1f7f03e4e603fdd640badc499996cec1
BLAKE2b-256 checksum
How to use checksums
332b25a12c23ccee1113b9c1e2933a0113334615b2daacc44b10003a5e97c5e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / cadmea-0.1.0-cp313-cp313-win_amd64.whl

Download URL cadmea-0.1.0-cp313-cp313-win_amd64.whl
Size 3.9 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
5e074d9246d44850ede1bcc1be1938c0b91f2fec550aae2b3efb955fd328f4c0
BLAKE2b-256 checksum
How to use checksums
c819d4f4e18395f95bfa81efa0fba64fcff64c87a5abd313626a739f05af92e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / cadmea-0.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL cadmea-0.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 198.2 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
1a34bfbecf23dc6449fb72c6adfb2658cfdb433fbc5600745b359d42fb7741d3
BLAKE2b-256 checksum
How to use checksums
a3717ce8b85711139a5d77e6f8e17f9dc7dfd91471e8ca2c10b771e3b1b54afd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / cadmea-0.1.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL cadmea-0.1.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 186.9 kB
Tags CPython 3.13 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
594d8b0aeb8fbf48cfa157ff86076375f9fe1b47f79383785cf8b5a11bd9ec7c
BLAKE2b-256 checksum
How to use checksums
9433af98c4f622ba25b48ab551bbc7309f3ad16809f5d5ccde3ae46626e825d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / cadmea-0.1.0-cp312-cp312-win_amd64.whl

Download URL cadmea-0.1.0-cp312-cp312-win_amd64.whl
Size 3.9 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
26b56c92fc5326a7550a96ad7ea719f5335bb80ceae4592ac35018e8f92f7bbb
BLAKE2b-256 checksum
How to use checksums
62f47353d009c532b7c14d3758a37de2f7a4a056a434b1f7ed62216c3c142415
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / cadmea-0.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL cadmea-0.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 198.2 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
74c8f56b4aa7380b141d7b434cb06ad5b1d9c914d79dd9a43b163540161a55e4
BLAKE2b-256 checksum
How to use checksums
8f32e9bb8c1057d506d56af13da8fdf298876044a78b1ca5ec1cbb822d7bdfe2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / cadmea-0.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL cadmea-0.1.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 186.7 kB
Tags CPython 3.12 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
c3aa74011c7c0f007335a34f05c5cf9175df256ea4102c1eb394f3ac0ae0b25b
BLAKE2b-256 checksum
How to use checksums
4bbbd2937a51ddc289387b6cca32312d405983dba80f2cc09db714a4735153f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / cadmea-0.1.0-cp311-cp311-win_amd64.whl

Download URL cadmea-0.1.0-cp311-cp311-win_amd64.whl
Size 3.9 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
8a9191ee43e335a004818ae556350f95b002f288bcedd7e86ecb1e21bff1e95c
BLAKE2b-256 checksum
How to use checksums
727747e7b46c7a3ebe73c572400c4eb4434c9914153142adcd6ebf51ff39f5c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / cadmea-0.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL cadmea-0.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 198.3 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
76785613e2c2a095b61f5b9d251915880ee2876346276ed0335c43a5a6b63507
BLAKE2b-256 checksum
How to use checksums
3df500c40e88cc1cda8c6ccd27c4e6a712cfe7f5fca28676090afc52bed4e718
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / cadmea-0.1.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL cadmea-0.1.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 187.4 kB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
fae35904e4261bb83f75a0899144f79e014e2a69008ae98d818c4921a469899c
BLAKE2b-256 checksum
How to use checksums
028888d8b22981f35496110c041f83df6cccced3338ccf5972c6fad1378712d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / cadmea-0.1.0-cp310-cp310-win_amd64.whl

Download URL cadmea-0.1.0-cp310-cp310-win_amd64.whl
Size 3.9 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
e5ef18492e8c00425ab22883cc94280b41c86c10a7adbed2964d5f7aa1e400d0
BLAKE2b-256 checksum
How to use checksums
4d49c4213b32564e31b43138f1aaa77a907c21bcbd3659651975ef7c954548f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / cadmea-0.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL cadmea-0.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 197.1 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
5b99821dd3e52f8ec5fb83c076f95df958ecc3b60ba4ec849f37710693c4c88f
BLAKE2b-256 checksum
How to use checksums
35d955af3c9281f0b2cc9379c6377805bf45e90f073f8b9fed5b9b235fd0f5a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / cadmea-0.1.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL cadmea-0.1.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 186.0 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
37a31bb36cc219cf687dab5a9263b54e1d1ee5839cb643af335a19f99a46e75f
BLAKE2b-256 checksum
How to use checksums
24f4bd511b86e09e6f4cae6bbbfe09dee06ae95b2c9717af42f4707704a1615f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for cadmea 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

15 release files No provenance

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