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

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 smathlib 0.1.0
File Interpreter ABI Platform
smathlib-0.1.0-py3-none-any.whl Python 3 none any Details

Release files / smathlib-0.1.0-py3-none-any.whl

Download URL smathlib-0.1.0-py3-none-any.whl
Size 63.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1a2e1195351b2fa3dc2496b31ac8539b6d44f88cd84d4c0f53f8d1cde3406b3
BLAKE2b-256 checksum
How to use checksums
937866626b8745824c621c12956244c1026cd8f57db6e1bdee421b70a039f107
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

0.1.1

1 release file

This release

0.1.0 This release

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