coordinate-system 7.0.0__cp313-cp313-win_amd64.whl → 7.0.2__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.
@@ -23,12 +23,23 @@ Group Correspondence:
23
23
  - FourierFrame ∈ GL(1,C) = U(1) × R⁺
24
24
  - U3Frame ∈ U(3) = SU(3) × U(1)
25
25
 
26
- Version: 7.0.0-alpha
26
+ **Authors:** Pan Guojun
27
+ Version: 7.0.1
28
+ **DOI:** https://doi.org/10.5281/zenodo.14435613
27
29
  """
28
30
 
29
- __version__ = '7.0.0-alpha'
30
-
31
- from .coordinate_system import vec3, vec2
31
+ __version__ = '7.0.1'
32
+
33
+ from .coordinate_system import (
34
+ vec3,
35
+ vec2,
36
+ cross,
37
+ cross_right,
38
+ set_handedness,
39
+ get_handedness,
40
+ is_left_handed,
41
+ is_right_handed,
42
+ )
32
43
  from .coordinate_system import quat
33
44
  from .coordinate_system import coord3
34
45
 
@@ -40,24 +51,32 @@ from .differential_geometry import (
40
51
  Torus,
41
52
 
42
53
  # Core classes
43
- MetricTensor,
44
- GradientResult,
45
- IntrinsicGradientOperator,
46
- IntrinsicGradientCurvatureCalculator,
47
- CurvatureCalculator,
54
+ MetricTensor,
55
+ GradientResult,
56
+ IntrinsicGradientOperator,
57
+ IntrinsicGradientCurvatureCalculator,
58
+ LieGroupCurvatureCalculator,
59
+ CurvatureCalculator,
48
60
 
49
61
  # Intrinsic gradient method functions (default)
50
- compute_gaussian_curvature,
51
- compute_mean_curvature,
52
- compute_riemann_curvature,
53
- compute_all_curvatures,
54
- compute_intrinsic_gradient,
55
-
56
- # Classical method functions
57
- gaussian_curvature_classical,
58
- mean_curvature_classical,
59
- principal_curvatures_classical,
60
- all_curvatures_classical,
62
+ compute_gaussian_curvature,
63
+ compute_mean_curvature,
64
+ compute_riemann_curvature,
65
+ compute_curvature_tensor,
66
+ compute_all_curvatures,
67
+ compute_intrinsic_gradient,
68
+
69
+ # Intrinsic gradient legacy aliases
70
+ intrinsic_gradient_gaussian_curvature,
71
+ intrinsic_gradient_mean_curvature,
72
+ intrinsic_gradient_principal_curvatures,
73
+ intrinsic_gradient_all_curvatures,
74
+
75
+ # Classical method functions
76
+ gaussian_curvature_classical,
77
+ mean_curvature_classical,
78
+ principal_curvatures_classical,
79
+ all_curvatures_classical,
61
80
 
62
81
  # Backward compatibility aliases
63
82
  gaussian_curvature,
@@ -65,8 +84,9 @@ from .differential_geometry import (
65
84
  principal_curvatures,
66
85
  all_curvatures,
67
86
 
68
- # Method comparison
69
- compare_methods,
87
+ # Method comparison
88
+ compare_methods,
89
+ gaussian_curvature_lie,
70
90
 
71
91
  # Utility functions
72
92
  derivative_5pt,
@@ -114,11 +134,11 @@ from .u3_frame import (
114
134
  )
115
135
 
116
136
  # Complex Geometric Physics module (Christmas Equation, CFUT)
117
- from .complex_geometric_physics import (
118
- # Core classes
119
- ComplexFrame,
120
- EnergyMomentumTensor,
121
- ChristmasEquation,
137
+ from .complex_geometric_physics import (
138
+ # Core classes (U3Frame imported from u3_frame module above)
139
+ ComplexFrame,
140
+ EnergyMomentumTensor,
141
+ ChristmasEquation,
122
142
 
123
143
  # Utility functions
124
144
  create_flat_spacetime_frame,
@@ -128,6 +148,9 @@ from .complex_geometric_physics import (
128
148
  # Constants
129
149
  M_PLANCK,
130
150
  LAMBDA_TOPO,
151
+ ALPHA_FS,
152
+ LAMBDA_C,
153
+ ALPHA_PROJECTION,
131
154
  )
132
155
 
133
156
  # Visualization module
@@ -155,22 +178,28 @@ __all__ = [
155
178
  # Constants
156
179
  'ZERO3', 'UNITX', 'UNITY', 'UNITZ', 'ONE3', 'ONE4', 'ONEC',
157
180
 
158
- # Core types
159
- 'vec3', 'vec2', 'quat', 'coord3', 'lerp',
181
+ # Core types
182
+ 'vec3', 'vec2', 'quat', 'coord3', 'lerp', 'cross', 'cross_right',
183
+ 'set_handedness', 'get_handedness', 'is_left_handed', 'is_right_handed',
160
184
 
161
185
  # Differential geometry - Surface classes
162
186
  'Surface', 'Sphere', 'Torus',
163
187
 
164
188
  # Differential geometry - Core classes
165
189
  'MetricTensor', 'GradientResult',
166
- 'IntrinsicGradientOperator', 'IntrinsicGradientCurvatureCalculator',
167
- 'CurvatureCalculator',
190
+ 'IntrinsicGradientOperator', 'IntrinsicGradientCurvatureCalculator',
191
+ 'LieGroupCurvatureCalculator',
192
+ 'CurvatureCalculator',
168
193
 
169
194
  # Differential geometry - Intrinsic gradient method (default)
170
- 'compute_gaussian_curvature', 'compute_mean_curvature',
171
- 'compute_riemann_curvature', 'compute_all_curvatures',
172
- 'compute_intrinsic_gradient',
173
-
195
+ 'compute_gaussian_curvature', 'compute_mean_curvature',
196
+ 'compute_riemann_curvature', 'compute_curvature_tensor', 'compute_all_curvatures',
197
+ 'compute_intrinsic_gradient',
198
+
199
+ # Differential geometry - Intrinsic gradient legacy aliases
200
+ 'intrinsic_gradient_gaussian_curvature', 'intrinsic_gradient_mean_curvature',
201
+ 'intrinsic_gradient_principal_curvatures', 'intrinsic_gradient_all_curvatures',
202
+
174
203
  # Differential geometry - Classical method
175
204
  'gaussian_curvature_classical', 'mean_curvature_classical',
176
205
  'principal_curvatures_classical', 'all_curvatures_classical',
@@ -180,8 +209,8 @@ __all__ = [
180
209
  'principal_curvatures', 'all_curvatures',
181
210
 
182
211
  # Differential geometry - Comparison and utilities
183
- 'compare_methods',
184
- 'derivative_5pt', 'derivative_2nd_5pt', 'richardson_extrapolation',
212
+ 'compare_methods', 'gaussian_curvature_lie',
213
+ 'derivative_5pt', 'derivative_2nd_5pt', 'richardson_extrapolation',
185
214
 
186
215
  # Spectral geometry module (FourierFrame, GL(1,C))
187
216
  'FourierFrame', 'FourierFrameSpectrum',
@@ -190,16 +219,17 @@ __all__ = [
190
219
  'spectral_transform', 'inverse_spectral_transform',
191
220
  'HBAR', 'GPU_AVAILABLE',
192
221
 
193
- # U(3) Frame module (Gauge theory)
194
- 'U3Frame', 'SU3Component',
195
- 'GaugeConnection', 'FieldStrength',
196
- 'SymmetryBreakingPotential',
197
-
198
- # Complex Geometric Physics (Christmas Equation, CFUT)
199
- 'ComplexFrame', 'EnergyMomentumTensor', 'ChristmasEquation',
200
- 'create_flat_spacetime_frame', 'create_curved_spacetime_frame', 'create_gauge_field_frame',
201
- 'M_PLANCK', 'LAMBDA_TOPO',
202
-
222
+ # U(3) Frame module (Gauge theory)
223
+ 'U3Frame', 'SU3Component',
224
+ 'GaugeConnection', 'FieldStrength',
225
+ 'SymmetryBreakingPotential',
226
+
227
+ # Complex Geometric Physics
228
+ 'ComplexFrame', 'EnergyMomentumTensor', 'ChristmasEquation',
229
+ 'create_flat_spacetime_frame', 'create_curved_spacetime_frame',
230
+ 'create_gauge_field_frame', 'M_PLANCK', 'LAMBDA_TOPO',
231
+ 'ALPHA_FS', 'LAMBDA_C', 'ALPHA_PROJECTION',
232
+
203
233
  # Visualization
204
234
  'CoordinateSystemVisualizer', 'CurveVisualizer', 'ParametricCurve',
205
235
  'visualize_coord_system', 'visualize_curve',
@@ -286,16 +316,26 @@ class CoordTuple(tuple):
286
316
  return (result.x, result.y, result.z)
287
317
 
288
318
 
289
- # Store original coord3 operators
290
- _original_coord3_mul = coord3.__mul__
291
- _original_coord3_rmul = coord3.__rmul__
292
- _original_coord3_truediv = getattr(coord3, '__truediv__', None)
293
-
294
-
295
- def _new_coord3_mul(self, other):
296
- """Enhanced multiplication operator for coord3."""
297
- if isinstance(other, tuple):
298
- other = CoordTuple(other)
319
+ # Store original coord3 operators
320
+ _original_coord3_init = coord3.__init__
321
+ _original_coord3_mul = coord3.__mul__
322
+ _original_coord3_rmul = coord3.__rmul__
323
+ _original_coord3_truediv = getattr(coord3, '__truediv__', None)
324
+
325
+
326
+ def _new_coord3_init(self, *args, **kwargs):
327
+ """Extended coord3 initializer with two-axis convenience."""
328
+ if len(args) == 2 and all(isinstance(arg, vec3) for arg in args):
329
+ ux, uy = args
330
+ uz = ux.cross(uy)
331
+ return _original_coord3_init(self, ux, uy, uz)
332
+ return _original_coord3_init(self, *args, **kwargs)
333
+
334
+
335
+ def _new_coord3_mul(self, other):
336
+ """Enhanced multiplication operator for coord3."""
337
+ if isinstance(other, tuple):
338
+ other = CoordTuple(other)
299
339
  return other * self
300
340
  return _original_coord3_mul(self, other)
301
341
 
@@ -318,7 +358,8 @@ def _new_coord3_truediv(self, other):
318
358
  raise TypeError(f"unsupported operand type(s) for /: 'coord3' and {type(other).__name__}")
319
359
 
320
360
 
321
- # Apply enhancements to coord3 operators
322
- coord3.__mul__ = _new_coord3_mul
323
- coord3.__rmul__ = _new_coord3_rmul
324
- coord3.__truediv__ = _new_coord3_truediv
361
+ # Apply enhancements to coord3 operators
362
+ coord3.__init__ = _new_coord3_init
363
+ coord3.__mul__ = _new_coord3_mul
364
+ coord3.__rmul__ = _new_coord3_rmul
365
+ coord3.__truediv__ = _new_coord3_truediv