ngsolve 6.2.2506.post60.dev0__cp312-cp312-macosx_10_15_universal2.whl → 6.2.2506.post74.dev0__cp312-cp312-macosx_10_15_universal2.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.

Potentially problematic release.


This version of ngsolve might be problematic. Click here for more details.

Files changed (66) hide show
  1. netgen/include/kernels.hpp +40 -40
  2. netgen/include/mp_coefficient.hpp +2 -2
  3. netgen/include/mptools.hpp +45 -26
  4. netgen/include/preconditioner.hpp +2 -2
  5. netgen/libngbla.dylib +0 -0
  6. netgen/libngcomp.dylib +0 -0
  7. netgen/libngfem.dylib +0 -0
  8. netgen/libngla.dylib +0 -0
  9. netgen/libngsbem.dylib +0 -0
  10. netgen/libngsolve.dylib +0 -0
  11. netgen/libngstd.dylib +0 -0
  12. ngsolve/__init__.pyi +59 -59
  13. ngsolve/bla.pyi +150 -94
  14. ngsolve/cmake/NGSolveConfig.cmake +1 -1
  15. ngsolve/comp/__init__.pyi +387 -103
  16. ngsolve/comp/pml.pyi +4 -1
  17. ngsolve/config/__init__.pyi +6 -6
  18. ngsolve/config/config.py +5 -5
  19. ngsolve/config/config.pyi +6 -6
  20. ngsolve/eigenvalues.pyi +4 -4
  21. ngsolve/fem.pyi +194 -110
  22. ngsolve/krylovspace.pyi +9 -9
  23. ngsolve/la.pyi +251 -88
  24. ngsolve/ngslib.so +0 -0
  25. ngsolve/ngstd.pyi +23 -4
  26. ngsolve/nonlinearsolvers.pyi +2 -2
  27. ngsolve/solve.pyi +7 -6
  28. ngsolve/utils.pyi +71 -71
  29. {ngsolve-6.2.2506.post60.dev0.dist-info → ngsolve-6.2.2506.post74.dev0.dist-info}/METADATA +2 -2
  30. {ngsolve-6.2.2506.post60.dev0.dist-info → ngsolve-6.2.2506.post74.dev0.dist-info}/RECORD +66 -66
  31. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/Netgen.icns +0 -0
  32. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/bin/ngscxx +0 -0
  33. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/bin/ngsld +0 -0
  34. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/bin/ngsolve.tcl +0 -0
  35. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/bin/ngspy +0 -0
  36. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/beam.geo +0 -0
  37. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/beam.vol +0 -0
  38. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/chip.in2d +0 -0
  39. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/chip.vol +0 -0
  40. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/coil.geo +0 -0
  41. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/coil.vol +0 -0
  42. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/coilshield.geo +0 -0
  43. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/coilshield.vol +0 -0
  44. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/cube.geo +0 -0
  45. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/cube.vol +0 -0
  46. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/d10_DGdoubleglazing.pde +0 -0
  47. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/d11_chip_nitsche.pde +0 -0
  48. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/d1_square.pde +0 -0
  49. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/d2_chip.pde +0 -0
  50. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/d3_helmholtz.pde +0 -0
  51. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/d4_cube.pde +0 -0
  52. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/d5_beam.pde +0 -0
  53. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/d6_shaft.pde +0 -0
  54. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/d7_coil.pde +0 -0
  55. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/d8_coilshield.pde +0 -0
  56. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/d9_hybridDG.pde +0 -0
  57. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/doubleglazing.in2d +0 -0
  58. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/doubleglazing.vol +0 -0
  59. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/piezo2d40round4.vol.gz +0 -0
  60. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/shaft.geo +0 -0
  61. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/shaft.vol +0 -0
  62. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/square.in2d +0 -0
  63. {ngsolve-6.2.2506.post60.dev0.data → ngsolve-6.2.2506.post74.dev0.data}/data/share/ngsolve/square.vol +0 -0
  64. {ngsolve-6.2.2506.post60.dev0.dist-info → ngsolve-6.2.2506.post74.dev0.dist-info}/LICENSE +0 -0
  65. {ngsolve-6.2.2506.post60.dev0.dist-info → ngsolve-6.2.2506.post74.dev0.dist-info}/WHEEL +0 -0
  66. {ngsolve-6.2.2506.post60.dev0.dist-info → ngsolve-6.2.2506.post74.dev0.dist-info}/top_level.txt +0 -0
ngsolve/fem.pyi CHANGED
@@ -2,10 +2,11 @@
2
2
  pybind fem
3
3
  """
4
4
  from __future__ import annotations
5
+ import collections.abc
5
6
  import ngsolve.bla
6
7
  import ngsolve.ngstd
7
8
  import numpy
8
- import os
9
+ import numpy.typing
9
10
  import pyngcore.pyngcore
10
11
  import typing
11
12
  __all__ = ['BFI', 'BSpline', 'BSpline2D', 'BaseMappedIntegrationPoint', 'BlockBFI', 'BlockLFI', 'CELL', 'CacheCF', 'CoefficientFunction', 'Cof', 'CompilePythonModule', 'CompoundBFI', 'CompoundLFI', 'Conj', 'CoordCF', 'CoordinateTrafo', 'Cross', 'Det', 'DifferentialOperator', 'EDGE', 'ELEMENT', 'ET', 'Einsum', 'ElementTopology', 'ElementTransformation', 'FACE', 'FACET', 'FiniteElement', 'GenerateL2ElementCode', 'H1FE', 'HCurlFE', 'HDivDivFE', 'HDivFE', 'HEX', 'Id', 'IfPos', 'IntegrationPoint', 'IntegrationRule', 'Inv', 'L2FE', 'LFI', 'LeviCivitaSymbol', 'LoggingCF', 'MeshPoint', 'MinimizationCF', 'MixedFE', 'NODE_TYPE', 'NewtonCF', 'POINT', 'PRISM', 'PYRAMID', 'Parameter', 'ParameterC', 'PlaceholderCF', 'PointEvaluationFunctional', 'QUAD', 'SEGM', 'ScalarFE', 'SetPMLParameters', 'Skew', 'SpecialCFCreator', 'Sym', 'TET', 'TRIG', 'Trace', 'VERTEX', 'VoxelCoefficient', 'Zero', 'acos', 'asin', 'atan', 'atan2', 'ceil', 'cos', 'cosh', 'erf', 'exp', 'floor', 'log', 'pow', 'sin', 'sinh', 'specialcf', 'sqrt', 'tan']
@@ -41,7 +42,10 @@ class BFI:
41
42
  @staticmethod
42
43
  def __special_treated_flags__() -> dict:
43
44
  ...
44
- def ApplyElementMatrix(self, fel: FiniteElement, vec: ngsolve.bla.FlatVectorD, trafo: ElementTransformation, heapsize: int = 10000) -> typing.Any:
45
+ @staticmethod
46
+ def _pybind11_conduit_v1_(*args, **kwargs):
47
+ ...
48
+ def ApplyElementMatrix(self, fel: FiniteElement, vec: ngsolve.bla.FlatVectorD, trafo: ElementTransformation, heapsize: typing.SupportsInt = 10000) -> typing.Any:
45
49
  """
46
50
  Apply element matrix of a specific element.
47
51
 
@@ -59,7 +63,7 @@ class BFI:
59
63
  heapsize : int
60
64
  input heapsize
61
65
  """
62
- def CalcElementMatrix(self, fel: FiniteElement, trafo: ElementTransformation, heapsize: int = 10000, complex: bool = False) -> typing.Any:
66
+ def CalcElementMatrix(self, fel: FiniteElement, trafo: ElementTransformation, heapsize: typing.SupportsInt = 10000, complex: bool = False) -> typing.Any:
63
67
  """
64
68
  Calculate element matrix of a specific element.
65
69
 
@@ -77,7 +81,7 @@ class BFI:
77
81
  complex : bool
78
82
  input complex
79
83
  """
80
- def CalcLinearizedElementMatrix(self, fel: FiniteElement, vec: ngsolve.bla.FlatVectorD, trafo: ElementTransformation, heapsize: int = 10000) -> typing.Any:
84
+ def CalcLinearizedElementMatrix(self, fel: FiniteElement, vec: ngsolve.bla.FlatVectorD, trafo: ElementTransformation, heapsize: typing.SupportsInt = 10000) -> typing.Any:
81
85
  """
82
86
  Calculate (linearized) element matrix of a specific element.
83
87
 
@@ -129,7 +133,7 @@ class BFI:
129
133
  intrule : ngsolve.fem.Integrationrule
130
134
  input integration rule
131
135
  """
132
- def __init__(self, name: str = '', coef: typing.Any, dim: int = -1, imag: bool = False, filename: str = '', **kwargs) -> None:
136
+ def __init__(self, name: str = '', coef: typing.Any, dim: typing.SupportsInt = -1, imag: bool = False, filename: str = '', **kwargs) -> None:
133
137
  ...
134
138
  def __initialize__(self, **kwargs) -> None:
135
139
  ...
@@ -160,6 +164,9 @@ class BSpline:
160
164
  list of float
161
165
 
162
166
  """
167
+ @staticmethod
168
+ def _pybind11_conduit_v1_(*args, **kwargs):
169
+ ...
163
170
  def Differentiate(self) -> BSpline:
164
171
  """
165
172
  Differentiate the BSpline
@@ -169,12 +176,12 @@ class BSpline:
169
176
  Integrate the BSpline
170
177
  """
171
178
  @typing.overload
172
- def __call__(self, pt: float) -> float:
179
+ def __call__(self, pt: typing.SupportsFloat) -> float:
173
180
  ...
174
181
  @typing.overload
175
182
  def __call__(self, cf: CoefficientFunction) -> CoefficientFunction:
176
183
  ...
177
- def __init__(self, order: int, knots: list, vals: list) -> None:
184
+ def __init__(self, order: typing.SupportsInt, knots: list, vals: list) -> None:
178
185
  """
179
186
  B-Spline of a certain order, provide knot and value vectors
180
187
  """
@@ -186,15 +193,18 @@ class BSpline2D:
186
193
  Bilinear intepolation of data given on a regular grid
187
194
 
188
195
  """
196
+ @staticmethod
197
+ def _pybind11_conduit_v1_(*args, **kwargs):
198
+ ...
189
199
  @typing.overload
190
- def __call__(self, x: numpy.ndarray[numpy.float64], y: numpy.ndarray[numpy.float64]) -> typing.Any:
200
+ def __call__(self, x: typing.Annotated[numpy.typing.ArrayLike, numpy.float64], y: typing.Annotated[numpy.typing.ArrayLike, numpy.float64]) -> typing.Any:
191
201
  ...
192
202
  @typing.overload
193
203
  def __call__(self, cx: CoefficientFunction, cy: CoefficientFunction) -> CoefficientFunction:
194
204
  ...
195
205
  def __getstate__(self) -> tuple:
196
206
  ...
197
- def __init__(self, x: list, y: list, vals: list, order: int = 1, extrapolate: bool = True) -> None:
207
+ def __init__(self, x: list, y: list, vals: list, order: typing.SupportsInt = 1, extrapolate: bool = True) -> None:
198
208
  """
199
209
  x : list, y: list
200
210
  sorted list of grid coordinates
@@ -213,6 +223,9 @@ class BSpline2D:
213
223
  def __str__(self) -> str:
214
224
  ...
215
225
  class BaseMappedIntegrationPoint:
226
+ @staticmethod
227
+ def _pybind11_conduit_v1_(*args, **kwargs):
228
+ ...
216
229
  def __init__(self, arg0: MeshPoint) -> None:
217
230
  ...
218
231
  def __str__(self) -> str:
@@ -261,8 +274,10 @@ class CoefficientFunction:
261
274
  Creates a domain-wise CF, use with generator expressions and mesh.GetMaterials()
262
275
  and mesh.GetBoundaries()
263
276
  """
264
- spacedim: int
265
- def Compile(self, realcompile: bool = False, maxderiv: int = 2, wait: bool = False, keep_files: bool = False) -> CoefficientFunction:
277
+ @staticmethod
278
+ def _pybind11_conduit_v1_(*args, **kwargs):
279
+ ...
280
+ def Compile(self, realcompile: bool = False, maxderiv: typing.SupportsInt = 2, wait: bool = False, keep_files: bool = False) -> CoefficientFunction:
266
281
  """
267
282
  Compile list of individual steps, experimental improvement for deep trees
268
283
 
@@ -288,7 +303,7 @@ class CoefficientFunction:
288
303
  """
289
304
  Compute directional derivative with respect to variable
290
305
  """
291
- def DiffShape(self, direction: CoefficientFunction = 1.0, Eulerian: list[CoefficientFunction] = []) -> CoefficientFunction:
306
+ def DiffShape(self, direction: CoefficientFunction = 1.0, Eulerian: collections.abc.Sequence[CoefficientFunction] = []) -> CoefficientFunction:
292
307
  """
293
308
  Compute shape derivative in direction
294
309
  """
@@ -327,7 +342,7 @@ class CoefficientFunction:
327
342
  """
328
343
  Evaluate on other element, as needed for DG jumps
329
344
  """
330
- def Replace(self, arg0: dict[CoefficientFunction, CoefficientFunction]) -> CoefficientFunction:
345
+ def Replace(self, arg0: collections.abc.Mapping[CoefficientFunction, CoefficientFunction]) -> CoefficientFunction:
331
346
  ...
332
347
  def Reshape(self, arg0: tuple) -> CoefficientFunction:
333
348
  """
@@ -335,13 +350,13 @@ class CoefficientFunction:
335
350
  """
336
351
  def TensorTranspose(self, arg0: tuple) -> CoefficientFunction:
337
352
  ...
338
- def _BuildFieldLines(self, mesh: ..., start_points: list[tuple[float, float, float]], num_fieldlines: int = 100, length: float = 0.5, max_points: float = 500, thickness: float = 0.0015, tolerance: float = 0.0005, direction: int = 0, randomized: bool = True, critical_value: float = -1) -> dict:
353
+ def _BuildFieldLines(self, mesh: ..., start_points: collections.abc.Sequence[tuple[typing.SupportsFloat, typing.SupportsFloat, typing.SupportsFloat]], num_fieldlines: typing.SupportsInt = 100, length: typing.SupportsFloat = 0.5, max_points: typing.SupportsFloat = 500, thickness: typing.SupportsFloat = 0.0015, tolerance: typing.SupportsFloat = 0.0005, direction: typing.SupportsInt = 0, randomized: bool = True, critical_value: typing.SupportsFloat = -1) -> dict:
339
354
  ...
340
355
  @typing.overload
341
356
  def __add__(self, cf: CoefficientFunction) -> CoefficientFunction:
342
357
  ...
343
358
  @typing.overload
344
- def __add__(self, value: float) -> CoefficientFunction:
359
+ def __add__(self, value: typing.SupportsFloat) -> CoefficientFunction:
345
360
  ...
346
361
  @typing.overload
347
362
  def __add__(self, value: complex) -> CoefficientFunction:
@@ -352,7 +367,7 @@ class CoefficientFunction:
352
367
  evaluate CF at a mapped integrationpoint mip. mip can be generated by calling mesh(x,y,z)
353
368
  """
354
369
  @typing.overload
355
- def __call__(self, x: float, y: float | None = None, z: float | None = None) -> ...:
370
+ def __call__(self, x: typing.SupportsFloat, y: typing.SupportsFloat | None = None, z: typing.SupportsFloat | None = None) -> ...:
356
371
  ...
357
372
  @typing.overload
358
373
  def __call__(self, arg0: CoordinateTrafo) -> CoefficientFunction:
@@ -361,10 +376,10 @@ class CoefficientFunction:
361
376
  def __call__(self, arg0: MeshPoint) -> typing.Any:
362
377
  ...
363
378
  @typing.overload
364
- def __call__(self, arg0: numpy.ndarray[MeshPoint]) -> numpy.ndarray:
379
+ def __call__(self, arg0: typing.Annotated[numpy.typing.ArrayLike, MeshPoint]) -> numpy.ndarray:
365
380
  ...
366
381
  @typing.overload
367
- def __getitem__(self, comp: int) -> CoefficientFunction:
382
+ def __getitem__(self, comp: typing.SupportsInt) -> CoefficientFunction:
368
383
  """
369
384
  returns component comp of vectorial CF
370
385
  """
@@ -392,7 +407,7 @@ class CoefficientFunction:
392
407
  def __mul__(self, cf: CoefficientFunction) -> CoefficientFunction:
393
408
  ...
394
409
  @typing.overload
395
- def __mul__(self, value: float) -> CoefficientFunction:
410
+ def __mul__(self, value: typing.SupportsFloat) -> CoefficientFunction:
396
411
  ...
397
412
  @typing.overload
398
413
  def __mul__(self, value: complex) -> CoefficientFunction:
@@ -409,32 +424,32 @@ class CoefficientFunction:
409
424
  def __or__(self, cf: ...) -> typing.Any:
410
425
  ...
411
426
  @typing.overload
412
- def __pow__(self, exponent: int) -> CoefficientFunction:
427
+ def __pow__(self, exponent: typing.SupportsInt) -> CoefficientFunction:
413
428
  ...
414
429
  @typing.overload
415
- def __pow__(self, arg0: float) -> typing.Any:
430
+ def __pow__(self, arg0: typing.SupportsFloat) -> typing.Any:
416
431
  ...
417
432
  @typing.overload
418
433
  def __pow__(self, arg0: CoefficientFunction) -> typing.Any:
419
434
  ...
420
435
  @typing.overload
421
- def __radd__(self, value: float) -> CoefficientFunction:
436
+ def __radd__(self, value: typing.SupportsFloat) -> CoefficientFunction:
422
437
  ...
423
438
  @typing.overload
424
439
  def __radd__(self, value: complex) -> CoefficientFunction:
425
440
  ...
426
441
  @typing.overload
427
- def __rmul__(self, value: float) -> CoefficientFunction:
442
+ def __rmul__(self, value: typing.SupportsFloat) -> CoefficientFunction:
428
443
  ...
429
444
  @typing.overload
430
445
  def __rmul__(self, value: complex) -> CoefficientFunction:
431
446
  ...
432
- def __rpow__(self, arg0: float) -> typing.Any:
447
+ def __rpow__(self, arg0: typing.SupportsFloat) -> typing.Any:
433
448
  ...
434
- def __rsub__(self, value: float) -> CoefficientFunction:
449
+ def __rsub__(self, value: typing.SupportsFloat) -> CoefficientFunction:
435
450
  ...
436
451
  @typing.overload
437
- def __rtruediv__(self, value: float) -> CoefficientFunction:
452
+ def __rtruediv__(self, value: typing.SupportsFloat) -> CoefficientFunction:
438
453
  ...
439
454
  @typing.overload
440
455
  def __rtruediv__(self, value: complex) -> CoefficientFunction:
@@ -447,13 +462,13 @@ class CoefficientFunction:
447
462
  def __sub__(self, cf: CoefficientFunction) -> CoefficientFunction:
448
463
  ...
449
464
  @typing.overload
450
- def __sub__(self, value: float) -> CoefficientFunction:
465
+ def __sub__(self, value: typing.SupportsFloat) -> CoefficientFunction:
451
466
  ...
452
467
  @typing.overload
453
468
  def __truediv__(self, cf: CoefficientFunction) -> CoefficientFunction:
454
469
  ...
455
470
  @typing.overload
456
- def __truediv__(self, value: float) -> CoefficientFunction:
471
+ def __truediv__(self, value: typing.SupportsFloat) -> CoefficientFunction:
457
472
  ...
458
473
  @typing.overload
459
474
  def __truediv__(self, value: complex) -> CoefficientFunction:
@@ -495,14 +510,26 @@ class CoefficientFunction:
495
510
  shape of CF
496
511
  """
497
512
  @property
513
+ def spacedim(self) -> int:
514
+ ...
515
+ @spacedim.setter
516
+ def spacedim(self, arg1: typing.SupportsInt) -> None:
517
+ ...
518
+ @property
498
519
  def trans(self) -> CoefficientFunction:
499
520
  """
500
521
  transpose of matrix-valued CF
501
522
  """
502
523
  class CoordinateTrafo:
524
+ @staticmethod
525
+ def _pybind11_conduit_v1_(*args, **kwargs):
526
+ ...
503
527
  def __init__(self, arg0: ..., arg1: ...) -> None:
504
528
  ...
505
529
  class DifferentialOperator:
530
+ @staticmethod
531
+ def _pybind11_conduit_v1_(*args, **kwargs):
532
+ ...
506
533
  def __call__(self, arg0: FiniteElement, arg1: MeshPoint) -> ngsolve.bla.MatrixD:
507
534
  ...
508
535
  def __timing__(self, arg0: FiniteElement, arg1: ElementTransformation, arg2: IntegrationRule) -> list[tuple[str, float]]:
@@ -538,6 +565,9 @@ class ET:
538
565
  TET: typing.ClassVar[ET] # value = <ET.TET: 20>
539
566
  TRIG: typing.ClassVar[ET] # value = <ET.TRIG: 10>
540
567
  __members__: typing.ClassVar[dict[str, ET]] # value = {'POINT': <ET.POINT: 0>, 'SEGM': <ET.SEGM: 1>, 'TRIG': <ET.TRIG: 10>, 'QUAD': <ET.QUAD: 11>, 'TET': <ET.TET: 20>, 'PRISM': <ET.PRISM: 22>, 'PYRAMID': <ET.PYRAMID: 21>, 'HEX': <ET.HEX: 24>}
568
+ @staticmethod
569
+ def _pybind11_conduit_v1_(*args, **kwargs):
570
+ ...
541
571
  def __eq__(self, other: typing.Any) -> bool:
542
572
  ...
543
573
  def __getstate__(self) -> int:
@@ -546,7 +576,7 @@ class ET:
546
576
  ...
547
577
  def __index__(self) -> int:
548
578
  ...
549
- def __init__(self, value: int) -> None:
579
+ def __init__(self, value: typing.SupportsInt) -> None:
550
580
  ...
551
581
  def __int__(self) -> int:
552
582
  ...
@@ -554,7 +584,7 @@ class ET:
554
584
  ...
555
585
  def __repr__(self) -> str:
556
586
  ...
557
- def __setstate__(self, state: int) -> None:
587
+ def __setstate__(self, state: typing.SupportsInt) -> None:
558
588
  ...
559
589
  def __str__(self) -> str:
560
590
  ...
@@ -575,6 +605,9 @@ class ElementTopology:
575
605
  input element type
576
606
 
577
607
  """
608
+ @staticmethod
609
+ def _pybind11_conduit_v1_(*args, **kwargs):
610
+ ...
578
611
  def __init__(self, et: ET) -> None:
579
612
  ...
580
613
  @property
@@ -588,14 +621,17 @@ class ElementTopology:
588
621
  Vertices of the element topology
589
622
  """
590
623
  class ElementTransformation:
624
+ @staticmethod
625
+ def _pybind11_conduit_v1_(*args, **kwargs):
626
+ ...
591
627
  @typing.overload
592
- def __call__(self, x: float, y: float = 0, z: float = 0) -> BaseMappedIntegrationPoint:
628
+ def __call__(self, x: typing.SupportsFloat, y: typing.SupportsFloat = 0, z: typing.SupportsFloat = 0) -> BaseMappedIntegrationPoint:
593
629
  ...
594
630
  @typing.overload
595
631
  def __call__(self, ip: IntegrationPoint) -> BaseMappedIntegrationPoint:
596
632
  ...
597
633
  @typing.overload
598
- def __call__(self, arg0: IntegrationRule) -> numpy.ndarray[MeshPoint]:
634
+ def __call__(self, arg0: IntegrationRule) -> numpy.typing.NDArray[MeshPoint]:
599
635
  ...
600
636
  def __init__(self, et: ET = ..., vertices: list) -> None:
601
637
  ...
@@ -623,6 +659,9 @@ class FiniteElement:
623
659
  """
624
660
  any finite element
625
661
  """
662
+ @staticmethod
663
+ def _pybind11_conduit_v1_(*args, **kwargs):
664
+ ...
626
665
  def __str__(self) -> str:
627
666
  ...
628
667
  def __timing__(self) -> list[tuple[str, float]]:
@@ -656,10 +695,13 @@ class HCurlFE(FiniteElement):
656
695
  """
657
696
  an H(curl) finite element
658
697
  """
698
+ @staticmethod
699
+ def _pybind11_conduit_v1_(*args, **kwargs):
700
+ ...
659
701
  def CalcCurlShape(self, mip: ...) -> ngsolve.bla.MatrixD:
660
702
  ...
661
703
  @typing.overload
662
- def CalcShape(self, x: float, y: float = 0.0, z: float = 0.0) -> ngsolve.bla.MatrixD:
704
+ def CalcShape(self, x: typing.SupportsFloat, y: typing.SupportsFloat = 0.0, z: typing.SupportsFloat = 0.0) -> ngsolve.bla.MatrixD:
663
705
  ...
664
706
  @typing.overload
665
707
  def CalcShape(self, mip: ...) -> ngsolve.bla.MatrixD:
@@ -668,19 +710,28 @@ class HDivDivFE(FiniteElement):
668
710
  """
669
711
  an H(div div) finite element
670
712
  """
671
- def CalcDivShape(self, x: float, y: float = 0.0, z: float = 0.0) -> ngsolve.bla.MatrixD:
713
+ @staticmethod
714
+ def _pybind11_conduit_v1_(*args, **kwargs):
715
+ ...
716
+ def CalcDivShape(self, x: typing.SupportsFloat, y: typing.SupportsFloat = 0.0, z: typing.SupportsFloat = 0.0) -> ngsolve.bla.MatrixD:
672
717
  ...
673
- def CalcShape(self, x: float, y: float = 0.0, z: float = 0.0) -> ngsolve.bla.MatrixD:
718
+ def CalcShape(self, x: typing.SupportsFloat, y: typing.SupportsFloat = 0.0, z: typing.SupportsFloat = 0.0) -> ngsolve.bla.MatrixD:
674
719
  ...
675
720
  class HDivFE(FiniteElement):
676
721
  """
677
722
  an H(div) finite element
678
723
  """
679
- def CalcDivShape(self, x: float, y: float = 0.0, z: float = 0.0) -> ngsolve.bla.VectorD:
724
+ @staticmethod
725
+ def _pybind11_conduit_v1_(*args, **kwargs):
726
+ ...
727
+ def CalcDivShape(self, x: typing.SupportsFloat, y: typing.SupportsFloat = 0.0, z: typing.SupportsFloat = 0.0) -> ngsolve.bla.VectorD:
680
728
  ...
681
- def CalcShape(self, x: float, y: float = 0.0, z: float = 0.0) -> ngsolve.bla.MatrixD:
729
+ def CalcShape(self, x: typing.SupportsFloat, y: typing.SupportsFloat = 0.0, z: typing.SupportsFloat = 0.0) -> ngsolve.bla.MatrixD:
682
730
  ...
683
731
  class IntegrationPoint:
732
+ @staticmethod
733
+ def _pybind11_conduit_v1_(*args, **kwargs):
734
+ ...
684
735
  @property
685
736
  def point(self) -> tuple:
686
737
  """
@@ -725,11 +776,14 @@ class IntegrationRule:
725
776
  @typing.overload
726
777
  def __init__(*args, **kwargs) -> None:
727
778
  ...
779
+ @staticmethod
780
+ def _pybind11_conduit_v1_(*args, **kwargs):
781
+ ...
728
782
  def Integrate(self, func: typing.Any) -> typing.Any:
729
783
  """
730
784
  Integrates a given function
731
785
  """
732
- def __getitem__(self, nr: int) -> IntegrationPoint:
786
+ def __getitem__(self, nr: typing.SupportsInt) -> IntegrationPoint:
733
787
  """
734
788
  Return integration point at given position
735
789
  """
@@ -779,11 +833,14 @@ class LFI:
779
833
  input definedonelem
780
834
 
781
835
  """
836
+ @staticmethod
837
+ def _pybind11_conduit_v1_(*args, **kwargs):
838
+ ...
782
839
  @typing.overload
783
840
  def CalcElementVector(self, fel: FiniteElement, trafo: ElementTransformation, vec: ngsolve.bla.FlatVectorD, lh: ngsolve.ngstd.LocalHeap) -> None:
784
841
  ...
785
842
  @typing.overload
786
- def CalcElementVector(self, fel: FiniteElement, trafo: ElementTransformation, heapsize: int = 10000, complex: bool = False) -> typing.Any:
843
+ def CalcElementVector(self, fel: FiniteElement, trafo: ElementTransformation, heapsize: typing.SupportsInt = 10000, complex: bool = False) -> typing.Any:
787
844
  ...
788
845
  def GetDefinedOn(self) -> pyngcore.pyngcore.BitArray:
789
846
  """
@@ -810,7 +867,7 @@ class LFI:
810
867
  ir : ngsolve.fem.IntegrationRule
811
868
  input integration rule
812
869
  """
813
- def __init__(self, name: str = 'lfi', dim: int = -1, coef: typing.Any, definedon: ... | list | None = None, imag: bool = False, flags: pyngcore.pyngcore.Flags = {}, definedonelements: pyngcore.pyngcore.BitArray = None) -> None:
870
+ def __init__(self, name: str = 'lfi', dim: typing.SupportsInt = -1, coef: typing.Any, definedon: ... | list | None = None, imag: bool = False, flags: pyngcore.pyngcore.Flags = {}, definedonelements: pyngcore.pyngcore.BitArray = None) -> None:
814
871
  ...
815
872
  def __str__(self) -> str:
816
873
  ...
@@ -823,6 +880,9 @@ class LFI:
823
880
  def simd_evaluate(self, arg1: bool) -> None:
824
881
  ...
825
882
  class MeshPoint:
883
+ @staticmethod
884
+ def _pybind11_conduit_v1_(*args, **kwargs):
885
+ ...
826
886
  @property
827
887
  def mesh(self) -> ...:
828
888
  ...
@@ -841,6 +901,9 @@ class MixedFE(FiniteElement):
841
901
  """
842
902
  pair of finite elements for trial and test-functions
843
903
  """
904
+ @staticmethod
905
+ def _pybind11_conduit_v1_(*args, **kwargs):
906
+ ...
844
907
  def __init__(self, arg0: FiniteElement, arg1: FiniteElement) -> None:
845
908
  ...
846
909
  class NODE_TYPE:
@@ -868,6 +931,9 @@ class NODE_TYPE:
868
931
  FACET: typing.ClassVar[NODE_TYPE] # value = <NODE_TYPE.FACET: 5>
869
932
  VERTEX: typing.ClassVar[NODE_TYPE] # value = <NODE_TYPE.VERTEX: 0>
870
933
  __members__: typing.ClassVar[dict[str, NODE_TYPE]] # value = {'VERTEX': <NODE_TYPE.VERTEX: 0>, 'EDGE': <NODE_TYPE.EDGE: 1>, 'FACE': <NODE_TYPE.FACE: 2>, 'CELL': <NODE_TYPE.CELL: 3>, 'ELEMENT': <NODE_TYPE.ELEMENT: 4>, 'FACET': <NODE_TYPE.FACET: 5>}
934
+ @staticmethod
935
+ def _pybind11_conduit_v1_(*args, **kwargs):
936
+ ...
871
937
  def __eq__(self, other: typing.Any) -> bool:
872
938
  ...
873
939
  def __getstate__(self) -> int:
@@ -876,7 +942,7 @@ class NODE_TYPE:
876
942
  ...
877
943
  def __index__(self) -> int:
878
944
  ...
879
- def __init__(self, value: int) -> None:
945
+ def __init__(self, value: typing.SupportsInt) -> None:
880
946
  ...
881
947
  def __int__(self) -> int:
882
948
  ...
@@ -884,7 +950,7 @@ class NODE_TYPE:
884
950
  ...
885
951
  def __repr__(self) -> str:
886
952
  ...
887
- def __setstate__(self, state: int) -> None:
953
+ def __setstate__(self, state: typing.SupportsInt) -> None:
888
954
  ...
889
955
  def __str__(self) -> str:
890
956
  ...
@@ -905,11 +971,14 @@ class Parameter(CoefficientFunction):
905
971
  Parameter value
906
972
 
907
973
  """
974
+ @staticmethod
975
+ def _pybind11_conduit_v1_(*args, **kwargs):
976
+ ...
908
977
  def Get(self) -> float:
909
978
  """
910
979
  return parameter value
911
980
  """
912
- def Set(self, value: float) -> None:
981
+ def Set(self, value: typing.SupportsFloat) -> None:
913
982
  """
914
983
  Modify parameter value.
915
984
 
@@ -918,27 +987,27 @@ class Parameter(CoefficientFunction):
918
987
  value : double
919
988
  input scalar
920
989
  """
921
- def __ge__(self, arg0: float) -> bool:
990
+ def __ge__(self, arg0: typing.SupportsFloat) -> bool:
922
991
  ...
923
992
  def __getstate__(self) -> tuple:
924
993
  ...
925
- def __gt__(self, arg0: float) -> bool:
994
+ def __gt__(self, arg0: typing.SupportsFloat) -> bool:
926
995
  ...
927
- def __iadd__(self, arg0: float) -> Parameter:
996
+ def __iadd__(self, arg0: typing.SupportsFloat) -> Parameter:
928
997
  ...
929
- def __imul__(self, arg0: float) -> Parameter:
998
+ def __imul__(self, arg0: typing.SupportsFloat) -> Parameter:
930
999
  ...
931
- def __init__(self, value: float) -> None:
1000
+ def __init__(self, value: typing.SupportsFloat) -> None:
932
1001
  """
933
1002
  Construct a ParameterCF from a scalar
934
1003
  """
935
- def __isub__(self, arg0: float) -> Parameter:
1004
+ def __isub__(self, arg0: typing.SupportsFloat) -> Parameter:
936
1005
  ...
937
- def __itruediv__(self, arg0: float) -> Parameter:
1006
+ def __itruediv__(self, arg0: typing.SupportsFloat) -> Parameter:
938
1007
  ...
939
- def __le__(self, arg0: float) -> bool:
1008
+ def __le__(self, arg0: typing.SupportsFloat) -> bool:
940
1009
  ...
941
- def __lt__(self, arg0: float) -> bool:
1010
+ def __lt__(self, arg0: typing.SupportsFloat) -> bool:
942
1011
  ...
943
1012
  def __setstate__(self, arg0: tuple) -> None:
944
1013
  ...
@@ -953,6 +1022,9 @@ class ParameterC(CoefficientFunction):
953
1022
  Parameter value
954
1023
 
955
1024
  """
1025
+ @staticmethod
1026
+ def _pybind11_conduit_v1_(*args, **kwargs):
1027
+ ...
956
1028
  def Get(self) -> complex:
957
1029
  """
958
1030
  return parameter value
@@ -975,17 +1047,26 @@ class ParameterC(CoefficientFunction):
975
1047
  def __setstate__(self, arg0: tuple) -> None:
976
1048
  ...
977
1049
  class PlaceholderCF(CoefficientFunction):
1050
+ @staticmethod
1051
+ def _pybind11_conduit_v1_(*args, **kwargs):
1052
+ ...
978
1053
  def Set(self, arg0: CoefficientFunction) -> None:
979
1054
  ...
980
1055
  def __init__(self, arg0: CoefficientFunction) -> None:
981
1056
  ...
982
1057
  class PointEvaluationFunctional:
1058
+ @staticmethod
1059
+ def _pybind11_conduit_v1_(*args, **kwargs):
1060
+ ...
983
1061
  def Assemble(self) -> ngsolve.bla.SparseVector:
984
1062
  ...
985
1063
  class ScalarFE(FiniteElement):
986
1064
  """
987
1065
  a scalar-valued finite element
988
1066
  """
1067
+ @staticmethod
1068
+ def _pybind11_conduit_v1_(*args, **kwargs):
1069
+ ...
989
1070
  @typing.overload
990
1071
  def CalcDShape(self, mip: ...) -> ngsolve.bla.MatrixD:
991
1072
  """
@@ -997,7 +1078,7 @@ class ScalarFE(FiniteElement):
997
1078
  input mapped integration point
998
1079
  """
999
1080
  @typing.overload
1000
- def CalcDShape(self, x: float, y: float = 0.0, z: float = 0.0) -> ngsolve.bla.MatrixD:
1081
+ def CalcDShape(self, x: typing.SupportsFloat, y: typing.SupportsFloat = 0.0, z: typing.SupportsFloat = 0.0) -> ngsolve.bla.MatrixD:
1001
1082
  """
1002
1083
  Computes derivative of the shape in an integration point.
1003
1084
 
@@ -1013,7 +1094,7 @@ class ScalarFE(FiniteElement):
1013
1094
  input z value
1014
1095
  """
1015
1096
  @typing.overload
1016
- def CalcShape(self, x: float, y: float = 0.0, z: float = 0.0) -> ngsolve.bla.VectorD:
1097
+ def CalcShape(self, x: typing.SupportsFloat, y: typing.SupportsFloat = 0.0, z: typing.SupportsFloat = 0.0) -> ngsolve.bla.VectorD:
1017
1098
  """
1018
1099
  Parameters:
1019
1100
 
@@ -1035,40 +1116,43 @@ class ScalarFE(FiniteElement):
1035
1116
  input mapped integration point
1036
1117
  """
1037
1118
  class SpecialCFCreator:
1038
- def EdgeCurvature(self, dim: int) -> ...:
1119
+ @staticmethod
1120
+ def _pybind11_conduit_v1_(*args, **kwargs):
1121
+ ...
1122
+ def EdgeCurvature(self, dim: typing.SupportsInt) -> ...:
1039
1123
  """
1040
1124
  EdgeCurvature
1041
1125
  space-dimension must be provided
1042
1126
  """
1043
- def EdgeFaceTangentialVectors(self, dim: int) -> ...:
1127
+ def EdgeFaceTangentialVectors(self, dim: typing.SupportsInt) -> ...:
1044
1128
  """
1045
1129
  EdgeFaceTangentialVectors
1046
1130
  space-dimension must be provided
1047
1131
  """
1048
1132
  @typing.overload
1049
- def JacobianMatrix(self, dim: int) -> ...:
1133
+ def JacobianMatrix(self, dim: typing.SupportsInt) -> ...:
1050
1134
  """
1051
1135
  Jacobian matrix of transformation to physical element
1052
1136
  space-dimension must be provided
1053
1137
  """
1054
1138
  @typing.overload
1055
- def JacobianMatrix(self, dimr: int, dims: int) -> ...:
1139
+ def JacobianMatrix(self, dimr: typing.SupportsInt, dims: typing.SupportsInt) -> ...:
1056
1140
  """
1057
1141
  Jacobian matrix of transformation to physical element
1058
1142
  space-dimensions dimr >= dims must be provided
1059
1143
  """
1060
- def VertexTangentialVectors(self, dim: int) -> ...:
1144
+ def VertexTangentialVectors(self, dim: typing.SupportsInt) -> ...:
1061
1145
  """
1062
1146
  VertexTangentialVectors
1063
1147
  space-dimension must be provided
1064
1148
  """
1065
- def Weingarten(self, dim: int) -> ...:
1149
+ def Weingarten(self, dim: typing.SupportsInt) -> ...:
1066
1150
  """
1067
1151
  Weingarten tensor
1068
1152
  space-dimension must be provided
1069
1153
  """
1070
1154
  @typing.overload
1071
- def normal(self, arg0: int) -> ...:
1155
+ def normal(self, arg0: typing.SupportsInt) -> ...:
1072
1156
  """
1073
1157
  depending on contents: normal-vector to geometry or element
1074
1158
  space-dimension must be provided.
@@ -1082,12 +1166,12 @@ class SpecialCFCreator:
1082
1166
  """
1083
1167
  number of elements on facet, available for element-bnd integrals, and surface integrals
1084
1168
  """
1085
- def tangential(self, dim: int, consistent: bool = False) -> ...:
1169
+ def tangential(self, dim: typing.SupportsInt, consistent: bool = False) -> ...:
1086
1170
  """
1087
1171
  depending on contents: tangential-vector to element
1088
1172
  space-dimension must be provided
1089
1173
  """
1090
- def xref(self, dim: int) -> ...:
1174
+ def xref(self, dim: typing.SupportsInt) -> ...:
1091
1175
  """
1092
1176
  element reference-coordinates
1093
1177
  """
@@ -1096,7 +1180,7 @@ class SpecialCFCreator:
1096
1180
  """
1097
1181
  local mesh-size (approximate element diameter) as CF
1098
1182
  """
1099
- def BlockBFI(bfi: BFI = 0, dim: int = 2, comp: int = 0) -> ...:
1183
+ def BlockBFI(bfi: BFI = 0, dim: typing.SupportsInt = 2, comp: typing.SupportsInt = 0) -> ...:
1100
1184
  """
1101
1185
  Block Bilinear Form Integrator
1102
1186
 
@@ -1111,7 +1195,7 @@ def BlockBFI(bfi: BFI = 0, dim: int = 2, comp: int = 0) -> ...:
1111
1195
  comp : int
1112
1196
  input comp
1113
1197
  """
1114
- def BlockLFI(lfi: LFI = 0, dim: int = 2, comp: int = 0) -> LFI:
1198
+ def BlockLFI(lfi: LFI = 0, dim: typing.SupportsInt = 2, comp: typing.SupportsInt = 0) -> LFI:
1115
1199
  """
1116
1200
  Block Linear Form Integrator
1117
1201
 
@@ -1165,7 +1249,7 @@ def CompilePythonModule(code: str, init_function_name: str = 'init', add_header:
1165
1249
  }
1166
1250
  """
1167
1251
  @typing.overload
1168
- def CompilePythonModule(file: os.PathLike, init_function_name: str = 'init') -> typing.Any:
1252
+ def CompilePythonModule(file: os.PathLike | str | bytes, init_function_name: str = 'init') -> typing.Any:
1169
1253
  """
1170
1254
  Utility function to compile a c++ file with python bindings at run-time.
1171
1255
 
@@ -1176,7 +1260,7 @@ def CompilePythonModule(file: os.PathLike, init_function_name: str = 'init') ->
1176
1260
  init_function_name (default = "init"): Function, which is called after the compiled code is loaded. The prototype must match:
1177
1261
  extern "C" void init_function_name(pybind11::object & res);
1178
1262
  """
1179
- def CompoundBFI(bfi: BFI = 0, comp: int = 0) -> ...:
1263
+ def CompoundBFI(bfi: BFI = 0, comp: typing.SupportsInt = 0) -> ...:
1180
1264
  """
1181
1265
  Compound Bilinear Form Integrator
1182
1266
 
@@ -1188,7 +1272,7 @@ def CompoundBFI(bfi: BFI = 0, comp: int = 0) -> ...:
1188
1272
  comp : int
1189
1273
  input component
1190
1274
  """
1191
- def CompoundLFI(lfi: LFI = 0, comp: int = 0) -> LFI:
1275
+ def CompoundLFI(lfi: LFI = 0, comp: typing.SupportsInt = 0) -> LFI:
1192
1276
  """
1193
1277
  Compound Linear Form Integrator
1194
1278
 
@@ -1204,7 +1288,7 @@ def Conj(arg0: CoefficientFunction) -> CoefficientFunction:
1204
1288
  """
1205
1289
  complex-conjugate
1206
1290
  """
1207
- def CoordCF(direction: int) -> ...:
1291
+ def CoordCF(direction: typing.SupportsInt) -> ...:
1208
1292
  """
1209
1293
  CoefficientFunction for x, y, z.
1210
1294
 
@@ -1236,9 +1320,9 @@ def Einsum(einsum_signature: str, *args, **kwargs) -> CoefficientFunction:
1236
1320
  "use_legacy_ops" (false) -- fall back to existing CFs implementing certain blas operations where possible
1237
1321
  "sparse_evaluation" (true) -- exploit sparsity of tensors
1238
1322
  """
1239
- def GenerateL2ElementCode(arg0: int) -> str:
1323
+ def GenerateL2ElementCode(arg0: typing.SupportsInt) -> str:
1240
1324
  ...
1241
- def H1FE(et: ET, order: int) -> None:
1325
+ def H1FE(et: ET, order: typing.SupportsInt) -> None:
1242
1326
  """
1243
1327
  Creates an H1 finite element of given geometric shape and polynomial order.
1244
1328
 
@@ -1251,7 +1335,7 @@ def H1FE(et: ET, order: int) -> None:
1251
1335
  input polynomial order
1252
1336
  """
1253
1337
  @typing.overload
1254
- def Id(dim: int) -> CoefficientFunction:
1338
+ def Id(dim: typing.SupportsInt) -> CoefficientFunction:
1255
1339
  """
1256
1340
  Identity matrix of given dimension
1257
1341
  """
@@ -1279,11 +1363,11 @@ def IfPos(c1: ..., then_obj: typing.Any, else_obj: typing.Any) -> ...:
1279
1363
  ngsolve.CoefficientFunction. See help(CoefficientFunction ) for information.
1280
1364
  """
1281
1365
  @typing.overload
1282
- def IfPos(arg0: numpy.ndarray[numpy.float64], arg1: numpy.ndarray[numpy.float64], arg2: numpy.ndarray[numpy.float64]) -> typing.Any:
1366
+ def IfPos(arg0: typing.Annotated[numpy.typing.ArrayLike, numpy.float64], arg1: typing.Annotated[numpy.typing.ArrayLike, numpy.float64], arg2: typing.Annotated[numpy.typing.ArrayLike, numpy.float64]) -> typing.Any:
1283
1367
  ...
1284
1368
  def Inv(arg0: CoefficientFunction) -> CoefficientFunction:
1285
1369
  ...
1286
- def L2FE(et: ET, order: int) -> None:
1370
+ def L2FE(et: ET, order: typing.SupportsInt) -> None:
1287
1371
  """
1288
1372
  Creates an L2 finite element of given geometric shape and polynomial order.
1289
1373
 
@@ -1295,11 +1379,11 @@ def L2FE(et: ET, order: int) -> None:
1295
1379
  order : int
1296
1380
  input polynomial order
1297
1381
  """
1298
- def LeviCivitaSymbol(arg0: int) -> CoefficientFunction:
1382
+ def LeviCivitaSymbol(arg0: typing.SupportsInt) -> CoefficientFunction:
1299
1383
  ...
1300
1384
  def LoggingCF(cf: CoefficientFunction, logfile: str = 'stdout') -> CoefficientFunction:
1301
1385
  ...
1302
- def MinimizationCF(expression: CoefficientFunction, startingpoint: typing.Any, tol: float | None = 1e-06, rtol: float | None = 0.0, maxiter: int | None = 20, allow_fail: bool | None = False) -> CoefficientFunction:
1386
+ def MinimizationCF(expression: CoefficientFunction, startingpoint: typing.Any, tol: typing.SupportsFloat | None = 1e-06, rtol: typing.SupportsFloat | None = 0.0, maxiter: typing.SupportsInt | None = 20, allow_fail: bool | None = False) -> CoefficientFunction:
1303
1387
  """
1304
1388
  Creates a CoefficientFunction that returns the solution to a minimization problem.
1305
1389
  Convergence failure is indicated by returning NaNs. Set ngsgloals.message_level
@@ -1328,7 +1412,7 @@ def MinimizationCF(expression: CoefficientFunction, startingpoint: typing.Any, t
1328
1412
  Returns the result of the final Newton step, even if the tolerance is not reached.
1329
1413
  Otherwise NaNs are returned.
1330
1414
  """
1331
- def NewtonCF(expression: CoefficientFunction, startingpoint: typing.Any, tol: float | None = 1e-06, rtol: float | None = 0.0, maxiter: int | None = 10, allow_fail: bool | None = False) -> CoefficientFunction:
1415
+ def NewtonCF(expression: CoefficientFunction, startingpoint: typing.Any, tol: typing.SupportsFloat | None = 1e-06, rtol: typing.SupportsFloat | None = 0.0, maxiter: typing.SupportsInt | None = 10, allow_fail: bool | None = False) -> CoefficientFunction:
1332
1416
  """
1333
1417
  Creates a CoefficientFunction that returns the solution to a nonlinear problem.
1334
1418
  By default, convergence failure is indicated by returning NaNs. Set ngsgloals.message_level
@@ -1357,7 +1441,7 @@ def NewtonCF(expression: CoefficientFunction, startingpoint: typing.Any, tol: fl
1357
1441
  Returns the result of the final Newton step, even if the tolerance is not reached.
1358
1442
  Otherwise NaNs are returned.
1359
1443
  """
1360
- def SetPMLParameters(rad: float = 1, alpha: float = 1) -> None:
1444
+ def SetPMLParameters(rad: typing.SupportsFloat = 1, alpha: typing.SupportsFloat = 1) -> None:
1361
1445
  """
1362
1446
  Parameters:
1363
1447
 
@@ -1385,12 +1469,12 @@ def VoxelCoefficient(start: tuple, end: tuple, values: numpy.ndarray, linear: bo
1385
1469
  def Zero(arg0: pyngcore.pyngcore.Array_I_S) -> CoefficientFunction:
1386
1470
  ...
1387
1471
  @typing.overload
1388
- def acos(x: numpy.ndarray[numpy.float64]) -> typing.Any:
1472
+ def acos(x: typing.Annotated[numpy.typing.ArrayLike, numpy.float64]) -> typing.Any:
1389
1473
  """
1390
1474
  Inverse cosine in radians
1391
1475
  """
1392
1476
  @typing.overload
1393
- def acos(x: numpy.ndarray[numpy.complex128]) -> typing.Any:
1477
+ def acos(x: typing.Annotated[numpy.typing.ArrayLike, numpy.complex128]) -> typing.Any:
1394
1478
  """
1395
1479
  Inverse cosine in radians
1396
1480
  """
@@ -1400,12 +1484,12 @@ def acos(x: ...) -> ...:
1400
1484
  Inverse cosine in radians
1401
1485
  """
1402
1486
  @typing.overload
1403
- def asin(x: numpy.ndarray[numpy.float64]) -> typing.Any:
1487
+ def asin(x: typing.Annotated[numpy.typing.ArrayLike, numpy.float64]) -> typing.Any:
1404
1488
  """
1405
1489
  Inverse sine in radians
1406
1490
  """
1407
1491
  @typing.overload
1408
- def asin(x: numpy.ndarray[numpy.complex128]) -> typing.Any:
1492
+ def asin(x: typing.Annotated[numpy.typing.ArrayLike, numpy.complex128]) -> typing.Any:
1409
1493
  """
1410
1494
  Inverse sine in radians
1411
1495
  """
@@ -1415,12 +1499,12 @@ def asin(x: ...) -> ...:
1415
1499
  Inverse sine in radians
1416
1500
  """
1417
1501
  @typing.overload
1418
- def atan(x: numpy.ndarray[numpy.float64]) -> typing.Any:
1502
+ def atan(x: typing.Annotated[numpy.typing.ArrayLike, numpy.float64]) -> typing.Any:
1419
1503
  """
1420
1504
  Inverse tangent in radians
1421
1505
  """
1422
1506
  @typing.overload
1423
- def atan(x: numpy.ndarray[numpy.complex128]) -> typing.Any:
1507
+ def atan(x: typing.Annotated[numpy.typing.ArrayLike, numpy.complex128]) -> typing.Any:
1424
1508
  """
1425
1509
  Inverse tangent in radians
1426
1510
  """
@@ -1430,12 +1514,12 @@ def atan(x: ...) -> ...:
1430
1514
  Inverse tangent in radians
1431
1515
  """
1432
1516
  @typing.overload
1433
- def atan2(y: numpy.ndarray[numpy.float64], x: numpy.ndarray[numpy.float64]) -> typing.Any:
1517
+ def atan2(y: typing.Annotated[numpy.typing.ArrayLike, numpy.float64], x: typing.Annotated[numpy.typing.ArrayLike, numpy.float64]) -> typing.Any:
1434
1518
  """
1435
1519
  Four quadrant inverse tangent in radians
1436
1520
  """
1437
1521
  @typing.overload
1438
- def atan2(y: numpy.ndarray[numpy.complex128], x: numpy.ndarray[numpy.complex128]) -> typing.Any:
1522
+ def atan2(y: typing.Annotated[numpy.typing.ArrayLike, numpy.complex128], x: typing.Annotated[numpy.typing.ArrayLike, numpy.complex128]) -> typing.Any:
1439
1523
  """
1440
1524
  Four quadrant inverse tangent in radians
1441
1525
  """
@@ -1445,12 +1529,12 @@ def atan2(y: ..., x: ...) -> ...:
1445
1529
  Four quadrant inverse tangent in radians
1446
1530
  """
1447
1531
  @typing.overload
1448
- def ceil(x: numpy.ndarray[numpy.float64]) -> typing.Any:
1532
+ def ceil(x: typing.Annotated[numpy.typing.ArrayLike, numpy.float64]) -> typing.Any:
1449
1533
  """
1450
1534
  Round to next greater integer
1451
1535
  """
1452
1536
  @typing.overload
1453
- def ceil(x: numpy.ndarray[numpy.complex128]) -> typing.Any:
1537
+ def ceil(x: typing.Annotated[numpy.typing.ArrayLike, numpy.complex128]) -> typing.Any:
1454
1538
  """
1455
1539
  Round to next greater integer
1456
1540
  """
@@ -1460,12 +1544,12 @@ def ceil(x: ...) -> ...:
1460
1544
  Round to next greater integer
1461
1545
  """
1462
1546
  @typing.overload
1463
- def cos(x: numpy.ndarray[numpy.float64]) -> typing.Any:
1547
+ def cos(x: typing.Annotated[numpy.typing.ArrayLike, numpy.float64]) -> typing.Any:
1464
1548
  """
1465
1549
  Cosine of argument in radians
1466
1550
  """
1467
1551
  @typing.overload
1468
- def cos(x: numpy.ndarray[numpy.complex128]) -> typing.Any:
1552
+ def cos(x: typing.Annotated[numpy.typing.ArrayLike, numpy.complex128]) -> typing.Any:
1469
1553
  """
1470
1554
  Cosine of argument in radians
1471
1555
  """
@@ -1475,12 +1559,12 @@ def cos(x: ...) -> ...:
1475
1559
  Cosine of argument in radians
1476
1560
  """
1477
1561
  @typing.overload
1478
- def cosh(x: numpy.ndarray[numpy.float64]) -> typing.Any:
1562
+ def cosh(x: typing.Annotated[numpy.typing.ArrayLike, numpy.float64]) -> typing.Any:
1479
1563
  """
1480
1564
  Hyperbolic cosine of argument in radians
1481
1565
  """
1482
1566
  @typing.overload
1483
- def cosh(x: numpy.ndarray[numpy.complex128]) -> typing.Any:
1567
+ def cosh(x: typing.Annotated[numpy.typing.ArrayLike, numpy.complex128]) -> typing.Any:
1484
1568
  """
1485
1569
  Hyperbolic cosine of argument in radians
1486
1570
  """
@@ -1490,12 +1574,12 @@ def cosh(x: ...) -> ...:
1490
1574
  Hyperbolic cosine of argument in radians
1491
1575
  """
1492
1576
  @typing.overload
1493
- def erf(x: numpy.ndarray[numpy.float64]) -> typing.Any:
1577
+ def erf(x: typing.Annotated[numpy.typing.ArrayLike, numpy.float64]) -> typing.Any:
1494
1578
  """
1495
1579
  Error function
1496
1580
  """
1497
1581
  @typing.overload
1498
- def erf(x: numpy.ndarray[numpy.complex128]) -> typing.Any:
1582
+ def erf(x: typing.Annotated[numpy.typing.ArrayLike, numpy.complex128]) -> typing.Any:
1499
1583
  """
1500
1584
  Error function
1501
1585
  """
@@ -1505,12 +1589,12 @@ def erf(x: ...) -> ...:
1505
1589
  Error function
1506
1590
  """
1507
1591
  @typing.overload
1508
- def exp(x: numpy.ndarray[numpy.float64]) -> typing.Any:
1592
+ def exp(x: typing.Annotated[numpy.typing.ArrayLike, numpy.float64]) -> typing.Any:
1509
1593
  """
1510
1594
  Exponential function
1511
1595
  """
1512
1596
  @typing.overload
1513
- def exp(x: numpy.ndarray[numpy.complex128]) -> typing.Any:
1597
+ def exp(x: typing.Annotated[numpy.typing.ArrayLike, numpy.complex128]) -> typing.Any:
1514
1598
  """
1515
1599
  Exponential function
1516
1600
  """
@@ -1520,12 +1604,12 @@ def exp(x: ...) -> ...:
1520
1604
  Exponential function
1521
1605
  """
1522
1606
  @typing.overload
1523
- def floor(x: numpy.ndarray[numpy.float64]) -> typing.Any:
1607
+ def floor(x: typing.Annotated[numpy.typing.ArrayLike, numpy.float64]) -> typing.Any:
1524
1608
  """
1525
1609
  Round to next lower integer
1526
1610
  """
1527
1611
  @typing.overload
1528
- def floor(x: numpy.ndarray[numpy.complex128]) -> typing.Any:
1612
+ def floor(x: typing.Annotated[numpy.typing.ArrayLike, numpy.complex128]) -> typing.Any:
1529
1613
  """
1530
1614
  Round to next lower integer
1531
1615
  """
@@ -1535,12 +1619,12 @@ def floor(x: ...) -> ...:
1535
1619
  Round to next lower integer
1536
1620
  """
1537
1621
  @typing.overload
1538
- def log(x: numpy.ndarray[numpy.float64]) -> typing.Any:
1622
+ def log(x: typing.Annotated[numpy.typing.ArrayLike, numpy.float64]) -> typing.Any:
1539
1623
  """
1540
1624
  Logarithm function
1541
1625
  """
1542
1626
  @typing.overload
1543
- def log(x: numpy.ndarray[numpy.complex128]) -> typing.Any:
1627
+ def log(x: typing.Annotated[numpy.typing.ArrayLike, numpy.complex128]) -> typing.Any:
1544
1628
  """
1545
1629
  Logarithm function
1546
1630
  """
@@ -1550,12 +1634,12 @@ def log(x: ...) -> ...:
1550
1634
  Logarithm function
1551
1635
  """
1552
1636
  @typing.overload
1553
- def pow(x: numpy.ndarray[numpy.float64], y: numpy.ndarray[numpy.float64]) -> typing.Any:
1637
+ def pow(x: typing.Annotated[numpy.typing.ArrayLike, numpy.float64], y: typing.Annotated[numpy.typing.ArrayLike, numpy.float64]) -> typing.Any:
1554
1638
  """
1555
1639
  Power function
1556
1640
  """
1557
1641
  @typing.overload
1558
- def pow(x: numpy.ndarray[numpy.complex128], y: numpy.ndarray[numpy.complex128]) -> typing.Any:
1642
+ def pow(x: typing.Annotated[numpy.typing.ArrayLike, numpy.complex128], y: typing.Annotated[numpy.typing.ArrayLike, numpy.complex128]) -> typing.Any:
1559
1643
  """
1560
1644
  Power function
1561
1645
  """
@@ -1565,12 +1649,12 @@ def pow(x: ..., y: ...) -> ...:
1565
1649
  Power function
1566
1650
  """
1567
1651
  @typing.overload
1568
- def sin(x: numpy.ndarray[numpy.float64]) -> typing.Any:
1652
+ def sin(x: typing.Annotated[numpy.typing.ArrayLike, numpy.float64]) -> typing.Any:
1569
1653
  """
1570
1654
  Sine of argument in radians
1571
1655
  """
1572
1656
  @typing.overload
1573
- def sin(x: numpy.ndarray[numpy.complex128]) -> typing.Any:
1657
+ def sin(x: typing.Annotated[numpy.typing.ArrayLike, numpy.complex128]) -> typing.Any:
1574
1658
  """
1575
1659
  Sine of argument in radians
1576
1660
  """
@@ -1580,12 +1664,12 @@ def sin(x: ...) -> ...:
1580
1664
  Sine of argument in radians
1581
1665
  """
1582
1666
  @typing.overload
1583
- def sinh(x: numpy.ndarray[numpy.float64]) -> typing.Any:
1667
+ def sinh(x: typing.Annotated[numpy.typing.ArrayLike, numpy.float64]) -> typing.Any:
1584
1668
  """
1585
1669
  Hyperbolic sine of argument in radians
1586
1670
  """
1587
1671
  @typing.overload
1588
- def sinh(x: numpy.ndarray[numpy.complex128]) -> typing.Any:
1672
+ def sinh(x: typing.Annotated[numpy.typing.ArrayLike, numpy.complex128]) -> typing.Any:
1589
1673
  """
1590
1674
  Hyperbolic sine of argument in radians
1591
1675
  """
@@ -1595,12 +1679,12 @@ def sinh(x: ...) -> ...:
1595
1679
  Hyperbolic sine of argument in radians
1596
1680
  """
1597
1681
  @typing.overload
1598
- def sqrt(x: numpy.ndarray[numpy.float64]) -> typing.Any:
1682
+ def sqrt(x: typing.Annotated[numpy.typing.ArrayLike, numpy.float64]) -> typing.Any:
1599
1683
  """
1600
1684
  Square root function
1601
1685
  """
1602
1686
  @typing.overload
1603
- def sqrt(x: numpy.ndarray[numpy.complex128]) -> typing.Any:
1687
+ def sqrt(x: typing.Annotated[numpy.typing.ArrayLike, numpy.complex128]) -> typing.Any:
1604
1688
  """
1605
1689
  Square root function
1606
1690
  """
@@ -1610,12 +1694,12 @@ def sqrt(x: ...) -> ...:
1610
1694
  Square root function
1611
1695
  """
1612
1696
  @typing.overload
1613
- def tan(x: numpy.ndarray[numpy.float64]) -> typing.Any:
1697
+ def tan(x: typing.Annotated[numpy.typing.ArrayLike, numpy.float64]) -> typing.Any:
1614
1698
  """
1615
1699
  Tangent of argument in radians
1616
1700
  """
1617
1701
  @typing.overload
1618
- def tan(x: numpy.ndarray[numpy.complex128]) -> typing.Any:
1702
+ def tan(x: typing.Annotated[numpy.typing.ArrayLike, numpy.complex128]) -> typing.Any:
1619
1703
  """
1620
1704
  Tangent of argument in radians
1621
1705
  """