coordinate-system 6.0.3__cp313-cp313-win_amd64.whl → 6.0.4__cp313-cp313-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,244 @@
1
+ Metadata-Version: 2.1
2
+ Name: coordinate_system
3
+ Version: 6.0.4
4
+ Summary: High-performance 3D coordinate system library with unified differential geometry, quantum frame algebra, spectral transforms, and professional curvature visualization
5
+ Home-page: https://github.com/panguojun/Coordinate-System
6
+ Author: PanGuoJun
7
+ Author-email: 18858146@qq.com
8
+ License: MIT
9
+ Project-URL: Bug Reports, https://github.com/panguojun/Coordinate-System/issues
10
+ Project-URL: Source, https://github.com/panguojun/Coordinate-System
11
+ Project-URL: Documentation, https://github.com/panguojun/Coordinate-System/blob/main/README.md
12
+ Keywords: 3d math vector quaternion coordinate-system geometry graphics spatial-computing differential-geometry curvature curve-interpolation c2-continuity frenet-frames fourier-transform operator-overloading quantum-coordinates heisenberg-uncertainty visualization rgb-frames catmull-rom squad intrinsic-gradient spectral-analysis surface-visualization
13
+ Platform: Windows
14
+ Platform: Linux
15
+ Platform: macOS
16
+ Platform: Android
17
+ Platform: iOS
18
+ Classifier: Development Status :: 5 - Production/Stable
19
+ Classifier: Intended Audience :: Developers
20
+ Classifier: Intended Audience :: Science/Research
21
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
+ Classifier: Topic :: Scientific/Engineering :: Mathematics
23
+ Classifier: Topic :: Multimedia :: Graphics :: 3D Modeling
24
+ Classifier: License :: OSI Approved :: MIT License
25
+ Classifier: Programming Language :: Python :: 3
26
+ Classifier: Programming Language :: Python :: 3.7
27
+ Classifier: Programming Language :: Python :: 3.8
28
+ Classifier: Programming Language :: Python :: 3.9
29
+ Classifier: Programming Language :: Python :: 3.10
30
+ Classifier: Programming Language :: Python :: 3.11
31
+ Classifier: Programming Language :: Python :: 3.12
32
+ Classifier: Programming Language :: Python :: 3.13
33
+ Classifier: Programming Language :: C++
34
+ Classifier: Operating System :: Microsoft :: Windows
35
+ Classifier: Operating System :: POSIX :: Linux
36
+ Classifier: Operating System :: MacOS
37
+ Requires-Python: >=3.7
38
+ Description-Content-Type: text/markdown
39
+ License-File: LICENSE
40
+ Requires-Dist: numpy>=1.19.0
41
+ Requires-Dist: matplotlib>=3.3.0
42
+
43
+ # Coordinate System Library
44
+
45
+ **High-performance 3D coordinate system and differential geometry library for Python**
46
+
47
+ [![PyPI version](https://badge.fury.io/py/coordinate-system.svg)](https://pypi.org/project/coordinate-system/)
48
+ [![Python](https://img.shields.io/pypi/pyversions/coordinate-system.svg)](https://pypi.org/project/coordinate-system/)
49
+ [![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
50
+
51
+ **Author:** PanGuoJun
52
+ **Version:** 6.0.4
53
+ **License:** MIT
54
+
55
+ ---
56
+
57
+ ## What's New in v6.0.4 (2025-12-08)
58
+
59
+ - **File Restructure**: `frames.py` → `spectral_geometry.py`, removed redundant `fourier_spectral.py`
60
+ - **Unified Documentation**: Complete "Complex Frame Field Algebra" theory document
61
+ - **Gaussian Curvature**: Unified to intrinsic gradient / Lie bracket method
62
+
63
+ ---
64
+
65
+ ## Module Structure
66
+
67
+ ```
68
+ coordinate_system/
69
+ ├── coordinate_system.pyd/.so # C++ core (vec3, quat, coord3)
70
+ ├── spectral_geometry.py # FourierFrame [GL(1,C)], spectral analysis
71
+ ├── u3_frame.py # U3Frame [U(3)], gauge field theory
72
+ ├── differential_geometry.py # Surface curvature calculation
73
+ ├── visualization.py # 3D visualization
74
+ └── curve_interpolation.py # C2-continuous interpolation
75
+ ```
76
+
77
+ ## Group Correspondence
78
+
79
+ | Class | Group | DOF | Use Case |
80
+ |-------|-------|-----|----------|
81
+ | `coord3` | Sim(3) = R³ ⋊ (SO(3) × R⁺) | 10 | 3D coordinate transform |
82
+ | `FourierFrame` | GL(1,C) = U(1) × R⁺ | 2 | Spectral geometry, heat kernel |
83
+ | `U3Frame` | U(3) = SU(3) × U(1) | 9 | Gauge field theory |
84
+
85
+ ---
86
+
87
+ ## Installation
88
+
89
+ ```bash
90
+ pip install coordinate-system
91
+ ```
92
+
93
+ ---
94
+
95
+ ## Quick Start
96
+
97
+ ### Basic Coordinate System
98
+
99
+ ```python
100
+ from coordinate_system import vec3, quat, coord3
101
+
102
+ # Vector operations
103
+ v1 = vec3(1, 2, 3)
104
+ v2 = vec3(4, 5, 6)
105
+ dot = v1.dot(v2)
106
+ cross = v1.cross(v2)
107
+
108
+ # Quaternion rotation
109
+ q = quat(1.5708, vec3(0, 0, 1)) # 90° around Z
110
+ rotated = q * v1
111
+
112
+ # Coordinate transform
113
+ frame = coord3.from_angle(1.57, vec3(0, 0, 1))
114
+ world_pos = v1 * frame # Local -> World
115
+ local_pos = world_pos / frame # World -> Local
116
+ ```
117
+
118
+ ### Differential Geometry
119
+
120
+ ```python
121
+ from coordinate_system import Sphere, compute_gaussian_curvature
122
+
123
+ sphere = Sphere(radius=1.0)
124
+ K = compute_gaussian_curvature(sphere, u=0.5, v=0.5) # K = 1.0
125
+ ```
126
+
127
+ **Gaussian Curvature via Lie Bracket:**
128
+ $$K = -\frac{\langle [G_u, G_v] e_v, e_u \rangle}{\sqrt{\det(g)}}$$
129
+
130
+ ### Spectral Geometry (FourierFrame)
131
+
132
+ ```python
133
+ from coordinate_system import (
134
+ FourierFrame, IntrinsicGradient, BerryPhase, ChernNumber, HeatKernel
135
+ )
136
+
137
+ # Create frame field
138
+ frame_field = [[FourierFrame(q_factor=1.0 + 0.1j*(i+j))
139
+ for j in range(16)] for i in range(16)]
140
+
141
+ # Intrinsic gradient: G_μ = d/dx^μ log Q
142
+ grad_op = IntrinsicGradient(frame_field)
143
+
144
+ # Berry phase: γ = ∮ G_μ dx^μ
145
+ berry = BerryPhase(grad_op)
146
+ path = [(4, 4), (4, 12), (12, 12), (12, 4), (4, 4)]
147
+ gamma = berry.compute_along_path(path, closed=True)
148
+
149
+ # Heat kernel trace
150
+ heat = HeatKernel(frame_field)
151
+ trace = heat.trace(t=0.1)
152
+ ```
153
+
154
+ ### Gauge Field Theory (U3Frame)
155
+
156
+ ```python
157
+ from coordinate_system import U3Frame, GaugeConnection, FieldStrength
158
+ import numpy as np
159
+
160
+ # Create U(3) frame
161
+ frame = U3Frame()
162
+
163
+ # Symmetry decomposition: U(3) = SU(3) × U(1)
164
+ su3_comp, u1_phase = frame.to_su3_u1()
165
+
166
+ # Gauge transforms
167
+ frame_u1 = frame.gauge_transform_u1(np.pi/4)
168
+ frame_su3 = frame.gauge_transform_su3(np.random.randn(8) * 0.1)
169
+
170
+ # Gauge connection and field strength
171
+ conn_x = GaugeConnection(su3_component=np.random.randn(8) * 0.1)
172
+ conn_y = GaugeConnection(su3_component=np.random.randn(8) * 0.1)
173
+ F_xy = conn_x.field_strength(conn_y)
174
+
175
+ # Yang-Mills action
176
+ S_YM = F_xy.yang_mills_action()
177
+ ```
178
+
179
+ ---
180
+
181
+ ## Key Formulas
182
+
183
+ | Concept | Formula | Code |
184
+ |---------|---------|------|
185
+ | Intrinsic Gradient | $G_\mu = \frac{d}{dx^\mu} \log C(x)$ | `IntrinsicGradient` |
186
+ | Curvature Tensor | $R_{\mu\nu} = [G_\mu, G_\nu]$ | `CurvatureFromFrame` |
187
+ | Gaussian Curvature | $K = -\langle [G_u, G_v] e_v, e_u \rangle / \sqrt{\det g}$ | `compute_gaussian_curvature` |
188
+ | Berry Phase | $\gamma = \oint G_\mu dx^\mu$ | `BerryPhase` |
189
+ | Chern Number | $c_1 = \frac{1}{2\pi} \iint R_{\mu\nu} dS$ | `ChernNumber` |
190
+ | Heat Kernel | $\text{Tr}(e^{t\Delta}) \sim (4\pi t)^{-d/2} \sum_k a_k t^k$ | `HeatKernel` |
191
+ | Yang-Mills Action | $S = -\frac{1}{4g^2} \text{Tr}(F_{\mu\nu} F^{\mu\nu})$ | `FieldStrength.yang_mills_action()` |
192
+
193
+ ---
194
+
195
+ ## FourierFrame vs U3Frame
196
+
197
+ | Property | FourierFrame | U3Frame |
198
+ |----------|--------------|---------|
199
+ | **Group** | GL(1,C) = C× | U(3) |
200
+ | **DOF** | 2 (phase + magnitude) | 9 (unitary matrix) |
201
+ | **Use Case** | Spectral analysis, heat kernel | Gauge field theory |
202
+ | **Fourier Transform** | `fourier_transform(θ)` | `gauge_transform_u1(θ)` |
203
+ | **Conformal Transform** | `conformal_transform(λ)` | Not supported |
204
+ | **SU(3) Transform** | Not supported | `gauge_transform_su3(...)` |
205
+
206
+ ---
207
+
208
+ ## Performance
209
+
210
+ | Operation | Ops/second |
211
+ |-----------|-----------|
212
+ | Vector addition | 5,200,000 |
213
+ | Quaternion rotation | 1,800,000 |
214
+ | Gaussian curvature | 85,000 |
215
+ | Spectral transform (GPU) | 12,000 |
216
+
217
+ ---
218
+
219
+ ## Changelog
220
+
221
+ ### v6.0.4 (2025-12-08)
222
+ - `frames.py` → `spectral_geometry.py`
223
+ - Removed `fourier_spectral.py`
224
+ - Unified theory documentation
225
+
226
+ ### v6.0.3 (2025-12-04)
227
+ - U3Frame: U(3) unitary frame
228
+ - GaugeConnection, FieldStrength
229
+
230
+ ### v6.0.1 (2025-12-04)
231
+ - FourierFrame spectral geometry
232
+ - Berry phase, Chern number, heat kernel
233
+
234
+ ---
235
+
236
+ ## License
237
+
238
+ MIT License - Copyright (c) 2024-2025 PanGuoJun
239
+
240
+ ## Links
241
+
242
+ - **PyPI**: https://pypi.org/project/coordinate-system/
243
+ - **GitHub**: https://github.com/panguojun/Coordinate-System
244
+ - **Email**: 18858146@qq.com
@@ -1,13 +1,14 @@
1
- coordinate_system/__init__.py,sha256=7L-_8D7-rBfDD1ZiTRkCVwxINi9BYYTKXqpVEytp6g8,8727
1
+ coordinate_system/__init__.py,sha256=_MYG9Wxum072_CZo80vOT8jpuChF6YNHOKsG5GJxpXU,9031
2
2
  coordinate_system/coordinate_system.cp313-win_amd64.pyd,sha256=GddVWsGjyZJ1JANMBRHLyU4agTAvMrxPwqDqNuBFlSw,499712
3
3
  coordinate_system/curve_interpolation.py,sha256=_HKsWozBNlD8TaVX1K0dzWTNFa_96Bqu6F_K4xhceSg,14753
4
4
  coordinate_system/differential_geometry.py,sha256=SYPVI6cYk-TharLOQCjMd-4kK0Em5ETTU6y6zvjCL3E,29388
5
5
  coordinate_system/fourier_spectral.py,sha256=0EjSxANwBS8AMn9R6LuxeIu3VsssgE7V3bPRZoR3KPM,3731
6
6
  coordinate_system/frames.py,sha256=k2Rb-wJSB5vZsCz-rTkHbiNd4IBhOCvDdsIezLsHewQ,51996
7
+ coordinate_system/spectral_geometry.py,sha256=k2Rb-wJSB5vZsCz-rTkHbiNd4IBhOCvDdsIezLsHewQ,51996
7
8
  coordinate_system/u3_frame.py,sha256=8CQcaZ8rSgM8vihO1T5w59tYPnvXAFBoaWlhqBiQ8bQ,27863
8
9
  coordinate_system/visualization.py,sha256=hnjQB66plimu24CimzW98ZBcFOBUCoJ9vhxjsQ417s0,34229
9
- coordinate_system-6.0.3.dist-info/LICENSE,sha256=tDnRkJxBYPzWdfh2gArRqrUPJxQZRZHJVs68qqBHIq4,1083
10
- coordinate_system-6.0.3.dist-info/METADATA,sha256=kEuqUZeFYZ3vUDlo0jo8rfUQQaSKHD5wrYIK6hDt8AQ,35151
11
- coordinate_system-6.0.3.dist-info/WHEEL,sha256=4-iQBlRoDdX1wfPofc7KLWa5Cys4eZSgXs6GVU8fKlQ,101
12
- coordinate_system-6.0.3.dist-info/top_level.txt,sha256=R6LguuPPZ5esrIsDTqPGi9UxCvZPIXwn7KRKX87c79M,18
13
- coordinate_system-6.0.3.dist-info/RECORD,,
10
+ coordinate_system-6.0.4.dist-info/LICENSE,sha256=tDnRkJxBYPzWdfh2gArRqrUPJxQZRZHJVs68qqBHIq4,1083
11
+ coordinate_system-6.0.4.dist-info/METADATA,sha256=3aGBlYB_IP-Zxt60ePLEs3L68reTnE5QYDLqoNiV6kw,8069
12
+ coordinate_system-6.0.4.dist-info/WHEEL,sha256=4-iQBlRoDdX1wfPofc7KLWa5Cys4eZSgXs6GVU8fKlQ,101
13
+ coordinate_system-6.0.4.dist-info/top_level.txt,sha256=R6LguuPPZ5esrIsDTqPGi9UxCvZPIXwn7KRKX87c79M,18
14
+ coordinate_system-6.0.4.dist-info/RECORD,,