Registry / analytics / pylinalg

pylinalg

JSON →
library0.6.8pypypi✓ verified 82d ago

Linear algebra utilities for Python, providing efficient vector and matrix operations built on numpy. Current version 0.6.8, updated June 2024. Release cadence is irregular, with several minor releases per year.

pip install pylinalg
INSTALL
IMPORT
SIG · PYLINALG
P
pylinalg
analyticspythonv0.6.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

aabb_to_sphere
from pylinalg import aabb_to_sphere
from pylinalg import vec
mat_combine
from pylinalg import mat_combine
from pylinalg import vec
quat_from_euler
from pylinalg import quat_from_euler
from pylinalg import vec

Basic vector and matrix operations using pylinalg.

from pylinalg import vec, mat import numpy as np v = vec([1, 2, 3]) print(v.length()) m = mat([[1, 0], [0, 1]]) w = m @ vec([4, 5]) print(w)
Debug
Known issues
breakingVersion 0.6.0 changed the vector and matrix classes from mutable to immutable (like tuples). Assigning to indices now raises TypeError.
fix
Use functions like vec.set(index, value) or create new vectors instead of index assignment.
affects: >=0.6.0
gotchaThe multiplication operator @ is overloaded for matrix multiplication but not element-wise. Use numpy functions for element-wise operations.
fix
For element-wise multiplication, use numpy.multiply(a, b) or the * operator on underlying numpy arrays.
affects: all
deprecatedThe 'angle' parameter in rotation functions (e.g., quat.from_angle_axis) has been renamed to 'theta' in v0.6.0.
fix
Use theta=... instead of angle=... in rotation constructors.
affects: >=0.6.0
Upgrade
Version history
0.6.8latest on PyPI · released Oct 28, 2025
Audit
Dependencies
numpyrequiredCore dependency for all array operations
Agent activity
32 hits · last 30 days
node
30
OpenAI (training)
1
Resources
pylinalg — pip install pylinalg · libregistry