Skip to main content

smathlib

High-Performance C++20 SIMD Mathematics, Non-Euclidean Geometry & Physics Foundation.

Features

  • AVX2 / SSE4.1 / ARM NEON Hardware-accelerated Linear Algebra (Vec3, Mat4, Quat).
  • High-Performance Python FFI (Process 100k+ vector operations in <1ms).
  • XPBD Physics Solver (Extended Position Based Dynamics for cloth & constraints).
  • Signed Distance Fields (SDF) & Raycasting.
  • Non-Euclidean Geometry (Hyperbolic / Poincaré Ball / Spherical).

Quick Start (Python)

import smathlib as sm
import math

# Vectors
v1 = sm.Vec3(1, 0, 0)
v2 = sm.Vec3(0, 1, 0)
v3 = v1.cross(v2)
print("Cross:", v3)

# Quaternions
q = sm.Quat.from_axis_angle(sm.Vec3(0, 0, 1), math.pi * 0.5)
rotated = q.rotate(v1)
print("Rotated:", rotated)

Release files for smathlib 0.1.1

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

Source distribution (sdist)

Source distribution for smathlib 0.1.1
File Size Uploaded
smathlib-0.1.1.tar.gz 76.3 kB Details

Release files / smathlib-0.1.1.tar.gz

Download URL smathlib-0.1.1.tar.gz
Size 76.3 kB
Tags Source
SHA-256 checksum
How to use checksums
51f75aeebf32d7b525304ddc13262d510de1a791f34e000fb85b97ed40375a0e
BLAKE2b-256 checksum
How to use checksums
b7c6fdde58584f553200020aae6f90f321de71233ea413b3892b6774c48c299d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

1 release file

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