ngsolve 6.2.2506.post74.dev0__cp314-cp314-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.
- netgen/include/analytic_integrals.hpp +10 -0
- netgen/include/arnoldi.hpp +55 -0
- netgen/include/bandmatrix.hpp +334 -0
- netgen/include/basematrix.hpp +957 -0
- netgen/include/basevector.hpp +1268 -0
- netgen/include/bdbequations.hpp +2805 -0
- netgen/include/bdbintegrator.hpp +1660 -0
- netgen/include/bem_diffops.hpp +475 -0
- netgen/include/bessel.hpp +1064 -0
- netgen/include/bilinearform.hpp +963 -0
- netgen/include/bla.hpp +29 -0
- netgen/include/blockalloc.hpp +95 -0
- netgen/include/blockjacobi.hpp +328 -0
- netgen/include/bspline.hpp +116 -0
- netgen/include/calcinverse.hpp +141 -0
- netgen/include/cg.hpp +368 -0
- netgen/include/chebyshev.hpp +44 -0
- netgen/include/cholesky.hpp +720 -0
- netgen/include/clapack.h +7254 -0
- netgen/include/code_generation.hpp +296 -0
- netgen/include/coefficient.hpp +2033 -0
- netgen/include/coefficient_impl.hpp +19 -0
- netgen/include/coefficient_stdmath.hpp +167 -0
- netgen/include/commutingAMG.hpp +106 -0
- netgen/include/comp.hpp +79 -0
- netgen/include/compatibility.hpp +41 -0
- netgen/include/complex_wrapper.hpp +73 -0
- netgen/include/compressedfespace.hpp +110 -0
- netgen/include/contact.hpp +235 -0
- netgen/include/diagonalmatrix.hpp +154 -0
- netgen/include/differentialoperator.hpp +276 -0
- netgen/include/diffop.hpp +1286 -0
- netgen/include/diffop_impl.hpp +328 -0
- netgen/include/diffopwithfactor.hpp +123 -0
- netgen/include/discontinuous.hpp +84 -0
- netgen/include/dump.hpp +949 -0
- netgen/include/ectypes.hpp +121 -0
- netgen/include/eigen.hpp +60 -0
- netgen/include/eigensystem.hpp +18 -0
- netgen/include/elasticity_equations.hpp +595 -0
- netgen/include/elementbyelement.hpp +195 -0
- netgen/include/elementtopology.hpp +1760 -0
- netgen/include/elementtransformation.hpp +339 -0
- netgen/include/evalfunc.hpp +405 -0
- netgen/include/expr.hpp +1686 -0
- netgen/include/facetfe.hpp +175 -0
- netgen/include/facetfespace.hpp +180 -0
- netgen/include/facethofe.hpp +111 -0
- netgen/include/facetsurffespace.hpp +112 -0
- netgen/include/fe_interfaces.hpp +32 -0
- netgen/include/fem.hpp +87 -0
- netgen/include/fesconvert.hpp +14 -0
- netgen/include/fespace.hpp +1449 -0
- netgen/include/finiteelement.hpp +286 -0
- netgen/include/globalinterfacespace.hpp +77 -0
- netgen/include/globalspace.hpp +115 -0
- netgen/include/gridfunction.hpp +525 -0
- netgen/include/h1amg.hpp +124 -0
- netgen/include/h1hofe.hpp +188 -0
- netgen/include/h1hofe_impl.hpp +1262 -0
- netgen/include/h1hofefo.hpp +148 -0
- netgen/include/h1hofefo_impl.hpp +185 -0
- netgen/include/h1hofespace.hpp +167 -0
- netgen/include/h1lofe.hpp +1240 -0
- netgen/include/h1lumping.hpp +41 -0
- netgen/include/hcurl_equations.hpp +1381 -0
- netgen/include/hcurlcurlfe.hpp +2241 -0
- netgen/include/hcurlcurlfespace.hpp +78 -0
- netgen/include/hcurlfe.hpp +259 -0
- netgen/include/hcurlfe_utils.hpp +107 -0
- netgen/include/hcurlhdiv_dshape.hpp +857 -0
- netgen/include/hcurlhdivfes.hpp +308 -0
- netgen/include/hcurlhofe.hpp +175 -0
- netgen/include/hcurlhofe_impl.hpp +1871 -0
- netgen/include/hcurlhofespace.hpp +193 -0
- netgen/include/hcurllofe.hpp +1146 -0
- netgen/include/hdiv_equations.hpp +880 -0
- netgen/include/hdivdivfe.hpp +2923 -0
- netgen/include/hdivdivsurfacespace.hpp +76 -0
- netgen/include/hdivfe.hpp +206 -0
- netgen/include/hdivfe_utils.hpp +717 -0
- netgen/include/hdivfes.hpp +75 -0
- netgen/include/hdivhofe.hpp +447 -0
- netgen/include/hdivhofe_impl.hpp +1107 -0
- netgen/include/hdivhofefo.hpp +229 -0
- netgen/include/hdivhofespace.hpp +177 -0
- netgen/include/hdivhosurfacefespace.hpp +106 -0
- netgen/include/hdivlofe.hpp +773 -0
- netgen/include/hidden.hpp +74 -0
- netgen/include/householder.hpp +181 -0
- netgen/include/hypre_ams_precond.hpp +123 -0
- netgen/include/hypre_precond.hpp +73 -0
- netgen/include/integrator.hpp +2012 -0
- netgen/include/integratorcf.hpp +253 -0
- netgen/include/interpolate.hpp +49 -0
- netgen/include/intrule.hpp +2542 -0
- netgen/include/intrules_SauterSchwab.hpp +25 -0
- netgen/include/irspace.hpp +49 -0
- netgen/include/jacobi.hpp +153 -0
- netgen/include/kernels.hpp +762 -0
- netgen/include/l2hofe.hpp +194 -0
- netgen/include/l2hofe_impl.hpp +564 -0
- netgen/include/l2hofefo.hpp +542 -0
- netgen/include/l2hofespace.hpp +344 -0
- netgen/include/la.hpp +38 -0
- netgen/include/linearform.hpp +266 -0
- netgen/include/matrix.hpp +2140 -0
- netgen/include/memusage.hpp +41 -0
- netgen/include/meshaccess.hpp +1359 -0
- netgen/include/mgpre.hpp +204 -0
- netgen/include/mp_coefficient.hpp +145 -0
- netgen/include/mptools.hpp +2281 -0
- netgen/include/multigrid.hpp +42 -0
- netgen/include/multivector.hpp +447 -0
- netgen/include/mumpsinverse.hpp +187 -0
- netgen/include/mycomplex.hpp +361 -0
- netgen/include/ng_lapack.hpp +1661 -0
- netgen/include/ngblas.hpp +1232 -0
- netgen/include/ngs_defines.hpp +30 -0
- netgen/include/ngs_stdcpp_include.hpp +106 -0
- netgen/include/ngs_utils.hpp +121 -0
- netgen/include/ngsobject.hpp +1019 -0
- netgen/include/ngsstream.hpp +113 -0
- netgen/include/ngstd.hpp +72 -0
- netgen/include/nodalhofe.hpp +96 -0
- netgen/include/nodalhofe_impl.hpp +141 -0
- netgen/include/normalfacetfe.hpp +223 -0
- netgen/include/normalfacetfespace.hpp +98 -0
- netgen/include/normalfacetsurfacefespace.hpp +84 -0
- netgen/include/order.hpp +251 -0
- netgen/include/parallel_matrices.hpp +222 -0
- netgen/include/paralleldofs.hpp +340 -0
- netgen/include/parallelngs.hpp +23 -0
- netgen/include/parallelvector.hpp +269 -0
- netgen/include/pardisoinverse.hpp +200 -0
- netgen/include/periodic.hpp +129 -0
- netgen/include/plateaufespace.hpp +25 -0
- netgen/include/pml.hpp +275 -0
- netgen/include/pmltrafo.hpp +631 -0
- netgen/include/postproc.hpp +142 -0
- netgen/include/potentialtools.hpp +22 -0
- netgen/include/precomp.hpp +60 -0
- netgen/include/preconditioner.hpp +602 -0
- netgen/include/prolongation.hpp +377 -0
- netgen/include/python_comp.hpp +107 -0
- netgen/include/python_fem.hpp +89 -0
- netgen/include/python_linalg.hpp +58 -0
- netgen/include/python_ngstd.hpp +386 -0
- netgen/include/recursive_pol.hpp +4896 -0
- netgen/include/recursive_pol_tet.hpp +395 -0
- netgen/include/recursive_pol_trig.hpp +492 -0
- netgen/include/reorderedfespace.hpp +81 -0
- netgen/include/sample_sort.hpp +105 -0
- netgen/include/scalarfe.hpp +335 -0
- netgen/include/shapefunction_utils.hpp +113 -0
- netgen/include/simd_complex.hpp +329 -0
- netgen/include/smoother.hpp +253 -0
- netgen/include/solve.hpp +89 -0
- netgen/include/sparsecholesky.hpp +313 -0
- netgen/include/sparsematrix.hpp +1038 -0
- netgen/include/sparsematrix_dyn.hpp +90 -0
- netgen/include/sparsematrix_impl.hpp +1013 -0
- netgen/include/special_matrix.hpp +463 -0
- netgen/include/specialelement.hpp +125 -0
- netgen/include/statushandler.hpp +33 -0
- netgen/include/stringops.hpp +12 -0
- netgen/include/superluinverse.hpp +136 -0
- netgen/include/symbolicintegrator.hpp +850 -0
- netgen/include/symmetricmatrix.hpp +144 -0
- netgen/include/tangentialfacetfe.hpp +224 -0
- netgen/include/tangentialfacetfespace.hpp +91 -0
- netgen/include/tensor.hpp +522 -0
- netgen/include/tensorcoefficient.hpp +446 -0
- netgen/include/tensorproductintegrator.hpp +113 -0
- netgen/include/thcurlfe.hpp +128 -0
- netgen/include/thcurlfe_impl.hpp +380 -0
- netgen/include/thdivfe.hpp +80 -0
- netgen/include/thdivfe_impl.hpp +492 -0
- netgen/include/tpdiffop.hpp +461 -0
- netgen/include/tpfes.hpp +133 -0
- netgen/include/tpintrule.hpp +224 -0
- netgen/include/triangular.hpp +465 -0
- netgen/include/tscalarfe.hpp +245 -0
- netgen/include/tscalarfe_impl.hpp +1029 -0
- netgen/include/umfpackinverse.hpp +148 -0
- netgen/include/vector.hpp +1273 -0
- netgen/include/voxelcoefficientfunction.hpp +41 -0
- netgen/include/vtkoutput.hpp +198 -0
- netgen/include/vvector.hpp +208 -0
- netgen/include/webgui.hpp +92 -0
- netgen/libngbla.dylib +0 -0
- netgen/libngcomp.dylib +0 -0
- netgen/libngfem.dylib +0 -0
- netgen/libngla.dylib +0 -0
- netgen/libngsbem.dylib +0 -0
- netgen/libngsolve.dylib +0 -0
- netgen/libngstd.dylib +0 -0
- ngsolve/TensorProductTools.py +210 -0
- ngsolve/__console.py +94 -0
- ngsolve/__expr.py +181 -0
- ngsolve/__init__.py +148 -0
- ngsolve/__init__.pyi +233 -0
- ngsolve/_scikit_build_core_dependencies.py +30 -0
- ngsolve/bla.pyi +1153 -0
- ngsolve/bvp.py +78 -0
- ngsolve/bvp.pyi +32 -0
- ngsolve/cmake/NGSolveConfig.cmake +102 -0
- ngsolve/cmake/ngsolve-targets-release.cmake +79 -0
- ngsolve/cmake/ngsolve-targets.cmake +163 -0
- ngsolve/comp/__init__.pyi +5449 -0
- ngsolve/comp/pml.pyi +89 -0
- ngsolve/config/__init__.py +1 -0
- ngsolve/config/__init__.pyi +43 -0
- ngsolve/config/__main__.py +4 -0
- ngsolve/config/config.py +60 -0
- ngsolve/config/config.pyi +45 -0
- ngsolve/demos/TensorProduct/__init__.py +0 -0
- ngsolve/demos/TensorProduct/tp_dg_1d_1d.py +80 -0
- ngsolve/demos/TensorProduct/tp_dg_1d_2d.py +73 -0
- ngsolve/demos/TensorProduct/tp_dg_2d_1d.py +72 -0
- ngsolve/demos/TensorProduct/tp_dg_2d_2d.py +66 -0
- ngsolve/demos/__init__.py +0 -0
- ngsolve/demos/howto/__init__.py +0 -0
- ngsolve/demos/howto/hhj.py +44 -0
- ngsolve/demos/howto/hybrid_dg.py +53 -0
- ngsolve/demos/howto/mixed.py +30 -0
- ngsolve/demos/howto/nonlin.py +29 -0
- ngsolve/demos/howto/pickling.py +26 -0
- ngsolve/demos/howto/pml.py +31 -0
- ngsolve/demos/howto/taskmanager.py +20 -0
- ngsolve/demos/howto/tdnns.py +47 -0
- ngsolve/demos/howto/timeDG-skeleton.py +45 -0
- ngsolve/demos/howto/timeDG.py +38 -0
- ngsolve/demos/howto/timeDGlap.py +42 -0
- ngsolve/demos/howto/timeDGwave.py +61 -0
- ngsolve/demos/intro/__init__.py +0 -0
- ngsolve/demos/intro/adaptive.py +123 -0
- ngsolve/demos/intro/cmagnet.py +59 -0
- ngsolve/demos/intro/elasticity.py +76 -0
- ngsolve/demos/intro/navierstokes.py +74 -0
- ngsolve/demos/intro/poisson.ipynb +170 -0
- ngsolve/demos/intro/poisson.py +41 -0
- ngsolve/demos/mpi/__init__.py +0 -0
- ngsolve/demos/mpi/mpi_cmagnet.py +87 -0
- ngsolve/demos/mpi/mpi_navierstokes.py +117 -0
- ngsolve/demos/mpi/mpi_poisson.py +89 -0
- ngsolve/demos/mpi/mpi_timeDG.py +82 -0
- ngsolve/directsolvers.py +26 -0
- ngsolve/directsolvers.pyi +15 -0
- ngsolve/eigenvalues.py +364 -0
- ngsolve/eigenvalues.pyi +30 -0
- ngsolve/fem.pyi +1647 -0
- ngsolve/internal.py +89 -0
- ngsolve/krylovspace.py +1013 -0
- ngsolve/krylovspace.pyi +298 -0
- ngsolve/la.pyi +1230 -0
- ngsolve/meshes.py +748 -0
- ngsolve/ngs2petsc.py +310 -0
- ngsolve/ngscxx.py +42 -0
- ngsolve/ngslib.so +0 -0
- ngsolve/ngstd.pyi +59 -0
- ngsolve/nonlinearsolvers.py +203 -0
- ngsolve/nonlinearsolvers.pyi +95 -0
- ngsolve/preconditioners.py +11 -0
- ngsolve/preconditioners.pyi +7 -0
- ngsolve/solve.pyi +109 -0
- ngsolve/solve_implementation.py +168 -0
- ngsolve/solve_implementation.pyi +42 -0
- ngsolve/solvers.py +7 -0
- ngsolve/solvers.pyi +14 -0
- ngsolve/timestepping.py +185 -0
- ngsolve/timestepping.pyi +28 -0
- ngsolve/timing.py +108 -0
- ngsolve/timing.pyi +54 -0
- ngsolve/utils.py +167 -0
- ngsolve/utils.pyi +273 -0
- ngsolve/webgui.py +670 -0
- ngsolve-6.2.2506.post74.dev0.data/data/Netgen.icns +0 -0
- ngsolve-6.2.2506.post74.dev0.data/data/bin/ngscxx +17 -0
- ngsolve-6.2.2506.post74.dev0.data/data/bin/ngsld +13 -0
- ngsolve-6.2.2506.post74.dev0.data/data/bin/ngsolve.tcl +648 -0
- ngsolve-6.2.2506.post74.dev0.data/data/bin/ngspy +2 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/beam.geo +17 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/beam.vol +240 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/chip.in2d +41 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/chip.vol +614 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/coil.geo +12 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/coil.vol +2560 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/coilshield.geo +24 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/coilshield.vol +3179 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/cube.geo +19 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/cube.vol +1832 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/d10_DGdoubleglazing.pde +50 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/d11_chip_nitsche.pde +40 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/d1_square.pde +43 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/d2_chip.pde +35 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/d3_helmholtz.pde +22 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/d4_cube.pde +46 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/d5_beam.pde +74 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/d6_shaft.pde +73 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/d7_coil.pde +50 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/d8_coilshield.pde +49 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/d9_hybridDG.pde +72 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/doubleglazing.in2d +27 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/doubleglazing.vol +737 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/piezo2d40round4.vol.gz +0 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/shaft.geo +73 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/shaft.vol +4291 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/square.in2d +17 -0
- ngsolve-6.2.2506.post74.dev0.data/data/share/ngsolve/square.vol +149 -0
- ngsolve-6.2.2506.post74.dev0.dist-info/METADATA +13 -0
- ngsolve-6.2.2506.post74.dev0.dist-info/RECORD +315 -0
- ngsolve-6.2.2506.post74.dev0.dist-info/WHEEL +5 -0
- ngsolve-6.2.2506.post74.dev0.dist-info/licenses/LICENSE +504 -0
- ngsolve-6.2.2506.post74.dev0.dist-info/top_level.txt +2 -0
ngsolve/bla.pyi
ADDED
|
@@ -0,0 +1,1153 @@
|
|
|
1
|
+
"""
|
|
2
|
+
pybind bla
|
|
3
|
+
"""
|
|
4
|
+
from __future__ import annotations
|
|
5
|
+
import collections.abc
|
|
6
|
+
import numpy
|
|
7
|
+
import numpy.typing
|
|
8
|
+
import typing
|
|
9
|
+
__all__: list[str] = ['CheckPerformance', 'FlatMatrixC', 'FlatMatrixD', 'FlatVectorC', 'FlatVectorD', 'InnerProduct', 'Mat2C', 'Mat2D', 'Mat3C', 'Mat3D', 'Matrix', 'MatrixC', 'MatrixD', 'Norm', 'SliceVectorC', 'SliceVectorD', 'SparseVector', 'Vec1D', 'Vec2D', 'Vec3D', 'Vector', 'VectorC', 'VectorD']
|
|
10
|
+
class FlatMatrixC:
|
|
11
|
+
@typing.overload
|
|
12
|
+
def Height(self) -> int:
|
|
13
|
+
"""
|
|
14
|
+
Return height of matrix
|
|
15
|
+
"""
|
|
16
|
+
@typing.overload
|
|
17
|
+
def Height(self) -> int:
|
|
18
|
+
"""
|
|
19
|
+
Returns height of the matrix
|
|
20
|
+
"""
|
|
21
|
+
def Identity(self) -> ...:
|
|
22
|
+
...
|
|
23
|
+
def Norm(self) -> float:
|
|
24
|
+
"""
|
|
25
|
+
Returns L2-norm
|
|
26
|
+
"""
|
|
27
|
+
def NumPy(self) -> typing.Any:
|
|
28
|
+
"""
|
|
29
|
+
Return NumPy object
|
|
30
|
+
"""
|
|
31
|
+
@typing.overload
|
|
32
|
+
def Width(self) -> int:
|
|
33
|
+
"""
|
|
34
|
+
Return width of matrix
|
|
35
|
+
"""
|
|
36
|
+
@typing.overload
|
|
37
|
+
def Width(self) -> int:
|
|
38
|
+
"""
|
|
39
|
+
Returns width of the matrix
|
|
40
|
+
"""
|
|
41
|
+
@typing.overload
|
|
42
|
+
def __add__(self, mat: FlatMatrixC) -> ...:
|
|
43
|
+
...
|
|
44
|
+
@typing.overload
|
|
45
|
+
def __add__(self, mat: FlatMatrixD) -> ...:
|
|
46
|
+
...
|
|
47
|
+
def __buffer__(self, flags):
|
|
48
|
+
"""
|
|
49
|
+
Return a buffer object that exposes the underlying memory of the object.
|
|
50
|
+
"""
|
|
51
|
+
@typing.overload
|
|
52
|
+
def __getitem__(self, arg0: tuple) -> typing.Any:
|
|
53
|
+
...
|
|
54
|
+
@typing.overload
|
|
55
|
+
def __getitem__(self, arg0: typing.SupportsInt) -> VectorC:
|
|
56
|
+
...
|
|
57
|
+
@typing.overload
|
|
58
|
+
def __getitem__(self, arg0: slice) -> ...:
|
|
59
|
+
...
|
|
60
|
+
def __iadd__(self, arg0: FlatMatrixC) -> FlatMatrixC:
|
|
61
|
+
...
|
|
62
|
+
def __imul__(self, arg0: complex) -> FlatMatrixC:
|
|
63
|
+
...
|
|
64
|
+
def __isub__(self, arg0: FlatMatrixC) -> ...:
|
|
65
|
+
...
|
|
66
|
+
@typing.overload
|
|
67
|
+
def __len__(self) -> int:
|
|
68
|
+
"""
|
|
69
|
+
Return height of matrix
|
|
70
|
+
"""
|
|
71
|
+
@typing.overload
|
|
72
|
+
def __len__(self) -> int:
|
|
73
|
+
...
|
|
74
|
+
@typing.overload
|
|
75
|
+
def __mul__(self, mat: FlatMatrixC) -> ...:
|
|
76
|
+
...
|
|
77
|
+
@typing.overload
|
|
78
|
+
def __mul__(self, vec: FlatVectorC) -> VectorC:
|
|
79
|
+
...
|
|
80
|
+
@typing.overload
|
|
81
|
+
def __mul__(self, values: complex) -> ...:
|
|
82
|
+
...
|
|
83
|
+
@typing.overload
|
|
84
|
+
def __mul__(self, mat: FlatMatrixD) -> ...:
|
|
85
|
+
...
|
|
86
|
+
@typing.overload
|
|
87
|
+
def __mul__(self, vec: FlatVectorD) -> VectorC:
|
|
88
|
+
...
|
|
89
|
+
@typing.overload
|
|
90
|
+
def __mul__(self, value: typing.SupportsFloat) -> ...:
|
|
91
|
+
...
|
|
92
|
+
def __neg__(self) -> ...:
|
|
93
|
+
...
|
|
94
|
+
def __radd__(self, mat: FlatMatrixD) -> ...:
|
|
95
|
+
...
|
|
96
|
+
def __release_buffer__(self, buffer):
|
|
97
|
+
"""
|
|
98
|
+
Release the buffer object that exposes the underlying memory of the object.
|
|
99
|
+
"""
|
|
100
|
+
def __repr__(self) -> str:
|
|
101
|
+
...
|
|
102
|
+
@typing.overload
|
|
103
|
+
def __rmul__(self, value: complex) -> ...:
|
|
104
|
+
...
|
|
105
|
+
@typing.overload
|
|
106
|
+
def __rmul__(self, mat: FlatMatrixD) -> ...:
|
|
107
|
+
...
|
|
108
|
+
@typing.overload
|
|
109
|
+
def __rmul__(self, value: typing.SupportsFloat) -> ...:
|
|
110
|
+
...
|
|
111
|
+
def __rsub__(self, mat: FlatMatrixD) -> ...:
|
|
112
|
+
...
|
|
113
|
+
@typing.overload
|
|
114
|
+
def __setitem__(self, arg0: tuple, arg1: FlatMatrixC) -> None:
|
|
115
|
+
...
|
|
116
|
+
@typing.overload
|
|
117
|
+
def __setitem__(self, arg0: tuple, arg1: complex) -> None:
|
|
118
|
+
...
|
|
119
|
+
@typing.overload
|
|
120
|
+
def __setitem__(self, arg0: tuple, arg1: FlatVectorC) -> None:
|
|
121
|
+
...
|
|
122
|
+
@typing.overload
|
|
123
|
+
def __setitem__(self, arg0: typing.SupportsInt, arg1: VectorC) -> None:
|
|
124
|
+
...
|
|
125
|
+
@typing.overload
|
|
126
|
+
def __setitem__(self, arg0: typing.SupportsInt, arg1: complex) -> None:
|
|
127
|
+
...
|
|
128
|
+
@typing.overload
|
|
129
|
+
def __setitem__(self, arg0: slice, arg1: FlatMatrixC) -> None:
|
|
130
|
+
...
|
|
131
|
+
@typing.overload
|
|
132
|
+
def __setitem__(self, arg0: slice, arg1: complex) -> None:
|
|
133
|
+
...
|
|
134
|
+
def __str__(self) -> str:
|
|
135
|
+
...
|
|
136
|
+
@typing.overload
|
|
137
|
+
def __sub__(self, mat: FlatMatrixC) -> ...:
|
|
138
|
+
...
|
|
139
|
+
@typing.overload
|
|
140
|
+
def __sub__(self, mat: FlatMatrixD) -> ...:
|
|
141
|
+
...
|
|
142
|
+
@property
|
|
143
|
+
def A(self) -> VectorC:
|
|
144
|
+
"""
|
|
145
|
+
Returns matrix as vector
|
|
146
|
+
"""
|
|
147
|
+
@property
|
|
148
|
+
def C(self) -> ...:
|
|
149
|
+
"""
|
|
150
|
+
Return conjugate matrix
|
|
151
|
+
"""
|
|
152
|
+
@property
|
|
153
|
+
def H(self) -> ...:
|
|
154
|
+
"""
|
|
155
|
+
Return conjugate and transposed matrix
|
|
156
|
+
"""
|
|
157
|
+
@property
|
|
158
|
+
def I(self) -> ...:
|
|
159
|
+
...
|
|
160
|
+
@property
|
|
161
|
+
def T(self) -> ...:
|
|
162
|
+
"""
|
|
163
|
+
Return transpose of matrix
|
|
164
|
+
"""
|
|
165
|
+
@property
|
|
166
|
+
def diag(self) -> VectorC:
|
|
167
|
+
...
|
|
168
|
+
@diag.setter
|
|
169
|
+
def diag(self, arg1: FlatVectorC) -> None:
|
|
170
|
+
...
|
|
171
|
+
@property
|
|
172
|
+
def h(self) -> int:
|
|
173
|
+
"""
|
|
174
|
+
Height of the matrix
|
|
175
|
+
"""
|
|
176
|
+
@property
|
|
177
|
+
def shape(self) -> tuple[int, int]:
|
|
178
|
+
"""
|
|
179
|
+
Shape of the matrix
|
|
180
|
+
"""
|
|
181
|
+
@property
|
|
182
|
+
def w(self) -> int:
|
|
183
|
+
"""
|
|
184
|
+
Width of the matrix
|
|
185
|
+
"""
|
|
186
|
+
class FlatMatrixD:
|
|
187
|
+
def Height(self) -> int:
|
|
188
|
+
"""
|
|
189
|
+
Return height of matrix
|
|
190
|
+
"""
|
|
191
|
+
def Identity(self) -> ...:
|
|
192
|
+
...
|
|
193
|
+
def Inverse(self, arg0: FlatMatrixD) -> None:
|
|
194
|
+
...
|
|
195
|
+
def Norm(self) -> float:
|
|
196
|
+
"""
|
|
197
|
+
Returns L2-norm
|
|
198
|
+
"""
|
|
199
|
+
def NumPy(self) -> typing.Any:
|
|
200
|
+
"""
|
|
201
|
+
Return NumPy object
|
|
202
|
+
"""
|
|
203
|
+
def Width(self) -> int:
|
|
204
|
+
"""
|
|
205
|
+
Return width of matrix
|
|
206
|
+
"""
|
|
207
|
+
def __add__(self, mat: FlatMatrixD) -> ...:
|
|
208
|
+
...
|
|
209
|
+
def __buffer__(self, flags):
|
|
210
|
+
"""
|
|
211
|
+
Return a buffer object that exposes the underlying memory of the object.
|
|
212
|
+
"""
|
|
213
|
+
@typing.overload
|
|
214
|
+
def __getitem__(self, arg0: tuple) -> typing.Any:
|
|
215
|
+
...
|
|
216
|
+
@typing.overload
|
|
217
|
+
def __getitem__(self, arg0: typing.SupportsInt) -> VectorD:
|
|
218
|
+
...
|
|
219
|
+
@typing.overload
|
|
220
|
+
def __getitem__(self, arg0: slice) -> ...:
|
|
221
|
+
...
|
|
222
|
+
def __iadd__(self, arg0: FlatMatrixD) -> FlatMatrixD:
|
|
223
|
+
...
|
|
224
|
+
def __imul__(self, arg0: typing.SupportsFloat) -> FlatMatrixD:
|
|
225
|
+
...
|
|
226
|
+
def __isub__(self, arg0: FlatMatrixD) -> ...:
|
|
227
|
+
...
|
|
228
|
+
def __len__(self) -> int:
|
|
229
|
+
"""
|
|
230
|
+
Return height of matrix
|
|
231
|
+
"""
|
|
232
|
+
@typing.overload
|
|
233
|
+
def __mul__(self, mat: FlatMatrixD) -> ...:
|
|
234
|
+
...
|
|
235
|
+
@typing.overload
|
|
236
|
+
def __mul__(self, vec: FlatVectorD) -> VectorD:
|
|
237
|
+
...
|
|
238
|
+
@typing.overload
|
|
239
|
+
def __mul__(self, values: typing.SupportsFloat) -> ...:
|
|
240
|
+
...
|
|
241
|
+
def __neg__(self) -> ...:
|
|
242
|
+
...
|
|
243
|
+
def __release_buffer__(self, buffer):
|
|
244
|
+
"""
|
|
245
|
+
Release the buffer object that exposes the underlying memory of the object.
|
|
246
|
+
"""
|
|
247
|
+
def __repr__(self) -> str:
|
|
248
|
+
...
|
|
249
|
+
def __rmul__(self, value: typing.SupportsFloat) -> ...:
|
|
250
|
+
...
|
|
251
|
+
@typing.overload
|
|
252
|
+
def __setitem__(self, arg0: tuple, arg1: FlatMatrixD) -> None:
|
|
253
|
+
...
|
|
254
|
+
@typing.overload
|
|
255
|
+
def __setitem__(self, arg0: tuple, arg1: typing.SupportsFloat) -> None:
|
|
256
|
+
...
|
|
257
|
+
@typing.overload
|
|
258
|
+
def __setitem__(self, arg0: tuple, arg1: FlatVectorD) -> None:
|
|
259
|
+
...
|
|
260
|
+
@typing.overload
|
|
261
|
+
def __setitem__(self, arg0: typing.SupportsInt, arg1: VectorD) -> None:
|
|
262
|
+
...
|
|
263
|
+
@typing.overload
|
|
264
|
+
def __setitem__(self, arg0: typing.SupportsInt, arg1: typing.SupportsFloat) -> None:
|
|
265
|
+
...
|
|
266
|
+
@typing.overload
|
|
267
|
+
def __setitem__(self, arg0: slice, arg1: FlatMatrixD) -> None:
|
|
268
|
+
...
|
|
269
|
+
@typing.overload
|
|
270
|
+
def __setitem__(self, arg0: slice, arg1: typing.SupportsFloat) -> None:
|
|
271
|
+
...
|
|
272
|
+
def __str__(self) -> str:
|
|
273
|
+
...
|
|
274
|
+
def __sub__(self, mat: FlatMatrixD) -> ...:
|
|
275
|
+
...
|
|
276
|
+
@property
|
|
277
|
+
def A(self) -> VectorD:
|
|
278
|
+
"""
|
|
279
|
+
Returns matrix as vector
|
|
280
|
+
"""
|
|
281
|
+
@A.setter
|
|
282
|
+
def A(self, arg1: VectorD) -> None:
|
|
283
|
+
...
|
|
284
|
+
@property
|
|
285
|
+
def C(self) -> ...:
|
|
286
|
+
"""
|
|
287
|
+
return conjugate of matrix
|
|
288
|
+
"""
|
|
289
|
+
@property
|
|
290
|
+
def H(self) -> ...:
|
|
291
|
+
"""
|
|
292
|
+
return transpose of matrix
|
|
293
|
+
"""
|
|
294
|
+
@property
|
|
295
|
+
def I(self) -> ...:
|
|
296
|
+
...
|
|
297
|
+
@property
|
|
298
|
+
def T(self) -> ...:
|
|
299
|
+
"""
|
|
300
|
+
return transpose of matrix
|
|
301
|
+
"""
|
|
302
|
+
@property
|
|
303
|
+
def diag(self) -> VectorD:
|
|
304
|
+
...
|
|
305
|
+
@diag.setter
|
|
306
|
+
def diag(self, arg1: FlatVectorD) -> None:
|
|
307
|
+
...
|
|
308
|
+
@property
|
|
309
|
+
def h(self) -> int:
|
|
310
|
+
"""
|
|
311
|
+
Height of the matrix
|
|
312
|
+
"""
|
|
313
|
+
@property
|
|
314
|
+
def shape(self) -> tuple[int, int]:
|
|
315
|
+
"""
|
|
316
|
+
Shape of the matrix
|
|
317
|
+
"""
|
|
318
|
+
@property
|
|
319
|
+
def w(self) -> int:
|
|
320
|
+
"""
|
|
321
|
+
Width of the matrix
|
|
322
|
+
"""
|
|
323
|
+
class FlatVectorC:
|
|
324
|
+
def Get(self, pos: typing.SupportsInt) -> complex:
|
|
325
|
+
"""
|
|
326
|
+
Return value at given position
|
|
327
|
+
"""
|
|
328
|
+
def InnerProduct(self, y: FlatVectorC, conjugate: bool = True) -> complex:
|
|
329
|
+
"""
|
|
330
|
+
Returns InnerProduct with other object
|
|
331
|
+
"""
|
|
332
|
+
def Norm(self) -> float:
|
|
333
|
+
"""
|
|
334
|
+
Returns L2-norm
|
|
335
|
+
"""
|
|
336
|
+
def NumPy(self) -> typing.Any:
|
|
337
|
+
"""
|
|
338
|
+
Return NumPy object
|
|
339
|
+
"""
|
|
340
|
+
def Range(self, arg0: typing.SupportsInt, arg1: typing.SupportsInt) -> FlatVectorC:
|
|
341
|
+
...
|
|
342
|
+
def Set(self, pos: typing.SupportsInt, value: complex) -> None:
|
|
343
|
+
"""
|
|
344
|
+
Set value at given position
|
|
345
|
+
"""
|
|
346
|
+
def __add__(self, vec: FlatVectorC) -> ...:
|
|
347
|
+
...
|
|
348
|
+
def __buffer__(self, flags):
|
|
349
|
+
"""
|
|
350
|
+
Return a buffer object that exposes the underlying memory of the object.
|
|
351
|
+
"""
|
|
352
|
+
@typing.overload
|
|
353
|
+
def __getitem__(self, pos: typing.SupportsInt) -> complex:
|
|
354
|
+
"""
|
|
355
|
+
Return value at given position
|
|
356
|
+
"""
|
|
357
|
+
@typing.overload
|
|
358
|
+
def __getitem__(self, inds: slice) -> ...:
|
|
359
|
+
"""
|
|
360
|
+
Return values at given positions
|
|
361
|
+
"""
|
|
362
|
+
@typing.overload
|
|
363
|
+
def __getitem__(self, ind: list) -> ...:
|
|
364
|
+
"""
|
|
365
|
+
Return values at given positions
|
|
366
|
+
"""
|
|
367
|
+
def __iadd__(self, arg0: FlatVectorC) -> FlatVectorC:
|
|
368
|
+
...
|
|
369
|
+
@typing.overload
|
|
370
|
+
def __imul__(self, arg0: complex) -> FlatVectorC:
|
|
371
|
+
...
|
|
372
|
+
@typing.overload
|
|
373
|
+
def __imul__(self, arg0: typing.SupportsFloat) -> FlatVectorC:
|
|
374
|
+
...
|
|
375
|
+
def __init__(self, arg0: typing.SupportsInt, arg1: complex) -> None:
|
|
376
|
+
...
|
|
377
|
+
def __isub__(self, arg0: FlatVectorC) -> ...:
|
|
378
|
+
...
|
|
379
|
+
def __iter__(self) -> collections.abc.Iterator[complex]:
|
|
380
|
+
...
|
|
381
|
+
def __len__(self) -> int:
|
|
382
|
+
"""
|
|
383
|
+
Return length of the array
|
|
384
|
+
"""
|
|
385
|
+
def __mul__(self, value: complex) -> ...:
|
|
386
|
+
...
|
|
387
|
+
def __neg__(self) -> ...:
|
|
388
|
+
...
|
|
389
|
+
def __release_buffer__(self, buffer):
|
|
390
|
+
"""
|
|
391
|
+
Release the buffer object that exposes the underlying memory of the object.
|
|
392
|
+
"""
|
|
393
|
+
def __repr__(self) -> str:
|
|
394
|
+
...
|
|
395
|
+
def __rmul__(self, value: complex) -> ...:
|
|
396
|
+
...
|
|
397
|
+
@typing.overload
|
|
398
|
+
def __setitem__(self, pos: typing.SupportsInt, value: complex) -> None:
|
|
399
|
+
"""
|
|
400
|
+
Set value at given position
|
|
401
|
+
"""
|
|
402
|
+
@typing.overload
|
|
403
|
+
def __setitem__(self, inds: slice, rv: FlatVectorC) -> None:
|
|
404
|
+
"""
|
|
405
|
+
Set values at given positions
|
|
406
|
+
"""
|
|
407
|
+
@typing.overload
|
|
408
|
+
def __setitem__(self, inds: slice, value: complex) -> None:
|
|
409
|
+
"""
|
|
410
|
+
Set value at given positions
|
|
411
|
+
"""
|
|
412
|
+
@typing.overload
|
|
413
|
+
def __setitem__(self, inds: slice, value: typing.Annotated[numpy.typing.ArrayLike, numpy.complex128]) -> None:
|
|
414
|
+
"""
|
|
415
|
+
Set value at given positions
|
|
416
|
+
"""
|
|
417
|
+
def __str__(self) -> str:
|
|
418
|
+
...
|
|
419
|
+
def __sub__(self, vec: FlatVectorC) -> ...:
|
|
420
|
+
...
|
|
421
|
+
@property
|
|
422
|
+
def imag(self) -> ...:
|
|
423
|
+
...
|
|
424
|
+
@imag.setter
|
|
425
|
+
def imag(self, arg1: typing.SupportsFloat) -> None:
|
|
426
|
+
...
|
|
427
|
+
@property
|
|
428
|
+
def real(self) -> ...:
|
|
429
|
+
...
|
|
430
|
+
@real.setter
|
|
431
|
+
def real(self, arg1: typing.SupportsFloat) -> None:
|
|
432
|
+
...
|
|
433
|
+
class FlatVectorD:
|
|
434
|
+
def Get(self, pos: typing.SupportsInt) -> float:
|
|
435
|
+
"""
|
|
436
|
+
Return value at given position
|
|
437
|
+
"""
|
|
438
|
+
def InnerProduct(self, y: FlatVectorD, conjugate: bool = True) -> float:
|
|
439
|
+
"""
|
|
440
|
+
Returns InnerProduct with other object
|
|
441
|
+
"""
|
|
442
|
+
def MinMax(self, ignore_inf: bool = False) -> tuple[float, float]:
|
|
443
|
+
...
|
|
444
|
+
def Norm(self) -> float:
|
|
445
|
+
"""
|
|
446
|
+
Returns L2-norm
|
|
447
|
+
"""
|
|
448
|
+
def NumPy(self) -> typing.Any:
|
|
449
|
+
"""
|
|
450
|
+
Return NumPy object
|
|
451
|
+
"""
|
|
452
|
+
def Range(self, arg0: typing.SupportsInt, arg1: typing.SupportsInt) -> FlatVectorD:
|
|
453
|
+
...
|
|
454
|
+
def Set(self, pos: typing.SupportsInt, value: typing.SupportsFloat) -> None:
|
|
455
|
+
"""
|
|
456
|
+
Set value at given position
|
|
457
|
+
"""
|
|
458
|
+
def __add__(self, vec: FlatVectorD) -> ...:
|
|
459
|
+
...
|
|
460
|
+
def __buffer__(self, flags):
|
|
461
|
+
"""
|
|
462
|
+
Return a buffer object that exposes the underlying memory of the object.
|
|
463
|
+
"""
|
|
464
|
+
@typing.overload
|
|
465
|
+
def __getitem__(self, pos: typing.SupportsInt) -> float:
|
|
466
|
+
"""
|
|
467
|
+
Return value at given position
|
|
468
|
+
"""
|
|
469
|
+
@typing.overload
|
|
470
|
+
def __getitem__(self, inds: slice) -> ...:
|
|
471
|
+
"""
|
|
472
|
+
Return values at given positions
|
|
473
|
+
"""
|
|
474
|
+
@typing.overload
|
|
475
|
+
def __getitem__(self, ind: list) -> ...:
|
|
476
|
+
"""
|
|
477
|
+
Return values at given positions
|
|
478
|
+
"""
|
|
479
|
+
def __iadd__(self, arg0: FlatVectorD) -> FlatVectorD:
|
|
480
|
+
...
|
|
481
|
+
def __imul__(self, arg0: typing.SupportsFloat) -> FlatVectorD:
|
|
482
|
+
...
|
|
483
|
+
def __init__(self, arg0: typing.SupportsInt, arg1: typing.SupportsFloat) -> None:
|
|
484
|
+
...
|
|
485
|
+
def __isub__(self, arg0: FlatVectorD) -> ...:
|
|
486
|
+
...
|
|
487
|
+
def __iter__(self) -> collections.abc.Iterator[float]:
|
|
488
|
+
...
|
|
489
|
+
def __len__(self) -> int:
|
|
490
|
+
"""
|
|
491
|
+
Return length of the array
|
|
492
|
+
"""
|
|
493
|
+
def __mul__(self, value: typing.SupportsFloat) -> ...:
|
|
494
|
+
...
|
|
495
|
+
def __neg__(self) -> ...:
|
|
496
|
+
...
|
|
497
|
+
def __release_buffer__(self, buffer):
|
|
498
|
+
"""
|
|
499
|
+
Release the buffer object that exposes the underlying memory of the object.
|
|
500
|
+
"""
|
|
501
|
+
def __repr__(self) -> str:
|
|
502
|
+
...
|
|
503
|
+
def __rmul__(self, value: typing.SupportsFloat) -> ...:
|
|
504
|
+
...
|
|
505
|
+
@typing.overload
|
|
506
|
+
def __setitem__(self, pos: typing.SupportsInt, value: typing.SupportsFloat) -> None:
|
|
507
|
+
"""
|
|
508
|
+
Set value at given position
|
|
509
|
+
"""
|
|
510
|
+
@typing.overload
|
|
511
|
+
def __setitem__(self, inds: slice, rv: FlatVectorD) -> None:
|
|
512
|
+
"""
|
|
513
|
+
Set values at given positions
|
|
514
|
+
"""
|
|
515
|
+
@typing.overload
|
|
516
|
+
def __setitem__(self, inds: slice, value: typing.SupportsFloat) -> None:
|
|
517
|
+
"""
|
|
518
|
+
Set value at given positions
|
|
519
|
+
"""
|
|
520
|
+
@typing.overload
|
|
521
|
+
def __setitem__(self, inds: slice, value: typing.Annotated[numpy.typing.ArrayLike, numpy.float64]) -> None:
|
|
522
|
+
"""
|
|
523
|
+
Set value at given positions
|
|
524
|
+
"""
|
|
525
|
+
def __str__(self) -> str:
|
|
526
|
+
...
|
|
527
|
+
def __sub__(self, vec: FlatVectorD) -> ...:
|
|
528
|
+
...
|
|
529
|
+
class Mat2C:
|
|
530
|
+
def NumPy(self) -> typing.Any:
|
|
531
|
+
"""
|
|
532
|
+
Return NumPy object
|
|
533
|
+
"""
|
|
534
|
+
def __buffer__(self, flags):
|
|
535
|
+
"""
|
|
536
|
+
Return a buffer object that exposes the underlying memory of the object.
|
|
537
|
+
"""
|
|
538
|
+
def __getitem__(self, arg0: tuple) -> complex:
|
|
539
|
+
...
|
|
540
|
+
def __release_buffer__(self, buffer):
|
|
541
|
+
"""
|
|
542
|
+
Release the buffer object that exposes the underlying memory of the object.
|
|
543
|
+
"""
|
|
544
|
+
class Mat2D:
|
|
545
|
+
def NumPy(self) -> typing.Any:
|
|
546
|
+
"""
|
|
547
|
+
Return NumPy object
|
|
548
|
+
"""
|
|
549
|
+
def __buffer__(self, flags):
|
|
550
|
+
"""
|
|
551
|
+
Return a buffer object that exposes the underlying memory of the object.
|
|
552
|
+
"""
|
|
553
|
+
def __getitem__(self, arg0: tuple) -> float:
|
|
554
|
+
...
|
|
555
|
+
def __release_buffer__(self, buffer):
|
|
556
|
+
"""
|
|
557
|
+
Release the buffer object that exposes the underlying memory of the object.
|
|
558
|
+
"""
|
|
559
|
+
class Mat3C:
|
|
560
|
+
def NumPy(self) -> typing.Any:
|
|
561
|
+
"""
|
|
562
|
+
Return NumPy object
|
|
563
|
+
"""
|
|
564
|
+
def __buffer__(self, flags):
|
|
565
|
+
"""
|
|
566
|
+
Return a buffer object that exposes the underlying memory of the object.
|
|
567
|
+
"""
|
|
568
|
+
def __getitem__(self, arg0: tuple) -> complex:
|
|
569
|
+
...
|
|
570
|
+
def __release_buffer__(self, buffer):
|
|
571
|
+
"""
|
|
572
|
+
Release the buffer object that exposes the underlying memory of the object.
|
|
573
|
+
"""
|
|
574
|
+
class Mat3D:
|
|
575
|
+
def NumPy(self) -> typing.Any:
|
|
576
|
+
"""
|
|
577
|
+
Return NumPy object
|
|
578
|
+
"""
|
|
579
|
+
def __buffer__(self, flags):
|
|
580
|
+
"""
|
|
581
|
+
Return a buffer object that exposes the underlying memory of the object.
|
|
582
|
+
"""
|
|
583
|
+
def __getitem__(self, arg0: tuple) -> float:
|
|
584
|
+
...
|
|
585
|
+
def __release_buffer__(self, buffer):
|
|
586
|
+
"""
|
|
587
|
+
Release the buffer object that exposes the underlying memory of the object.
|
|
588
|
+
"""
|
|
589
|
+
class MatrixC(FlatMatrixC):
|
|
590
|
+
def NumPy(self) -> typing.Any:
|
|
591
|
+
"""
|
|
592
|
+
Return NumPy object
|
|
593
|
+
"""
|
|
594
|
+
def __buffer__(self, flags):
|
|
595
|
+
"""
|
|
596
|
+
Return a buffer object that exposes the underlying memory of the object.
|
|
597
|
+
"""
|
|
598
|
+
def __iadd__(self, arg0: MatrixC) -> MatrixC:
|
|
599
|
+
...
|
|
600
|
+
def __imul__(self, arg0: complex) -> MatrixC:
|
|
601
|
+
...
|
|
602
|
+
def __init__(self, n: typing.SupportsInt, m: typing.SupportsInt) -> None:
|
|
603
|
+
"""
|
|
604
|
+
Makes matrix of dimension n x m
|
|
605
|
+
"""
|
|
606
|
+
def __isub__(self, arg0: MatrixC) -> MatrixC:
|
|
607
|
+
...
|
|
608
|
+
def __release_buffer__(self, buffer):
|
|
609
|
+
"""
|
|
610
|
+
Release the buffer object that exposes the underlying memory of the object.
|
|
611
|
+
"""
|
|
612
|
+
class MatrixD(FlatMatrixD):
|
|
613
|
+
def NumPy(self) -> typing.Any:
|
|
614
|
+
"""
|
|
615
|
+
Return NumPy object
|
|
616
|
+
"""
|
|
617
|
+
def __buffer__(self, flags):
|
|
618
|
+
"""
|
|
619
|
+
Return a buffer object that exposes the underlying memory of the object.
|
|
620
|
+
"""
|
|
621
|
+
def __iadd__(self, arg0: MatrixD) -> MatrixD:
|
|
622
|
+
...
|
|
623
|
+
def __imul__(self, arg0: typing.SupportsFloat) -> MatrixD:
|
|
624
|
+
...
|
|
625
|
+
def __init__(self, n: typing.SupportsInt, m: typing.SupportsInt) -> None:
|
|
626
|
+
"""
|
|
627
|
+
Makes matrix of dimension n x m
|
|
628
|
+
"""
|
|
629
|
+
def __isub__(self, arg0: MatrixD) -> MatrixD:
|
|
630
|
+
...
|
|
631
|
+
def __release_buffer__(self, buffer):
|
|
632
|
+
"""
|
|
633
|
+
Release the buffer object that exposes the underlying memory of the object.
|
|
634
|
+
"""
|
|
635
|
+
class SliceVectorC:
|
|
636
|
+
def Get(self, pos: typing.SupportsInt) -> complex:
|
|
637
|
+
"""
|
|
638
|
+
Return value at given position
|
|
639
|
+
"""
|
|
640
|
+
def InnerProduct(self, y: SliceVectorC, conjugate: bool = True) -> complex:
|
|
641
|
+
"""
|
|
642
|
+
Returns InnerProduct with other object
|
|
643
|
+
"""
|
|
644
|
+
def Norm(self) -> float:
|
|
645
|
+
"""
|
|
646
|
+
Returns L2-norm
|
|
647
|
+
"""
|
|
648
|
+
def NumPy(self) -> typing.Any:
|
|
649
|
+
"""
|
|
650
|
+
Return NumPy object
|
|
651
|
+
"""
|
|
652
|
+
def Range(self, arg0: typing.SupportsInt, arg1: typing.SupportsInt) -> SliceVectorC:
|
|
653
|
+
...
|
|
654
|
+
def Set(self, pos: typing.SupportsInt, value: complex) -> None:
|
|
655
|
+
"""
|
|
656
|
+
Set value at given position
|
|
657
|
+
"""
|
|
658
|
+
def __add__(self, vec: SliceVectorC) -> ...:
|
|
659
|
+
...
|
|
660
|
+
def __buffer__(self, flags):
|
|
661
|
+
"""
|
|
662
|
+
Return a buffer object that exposes the underlying memory of the object.
|
|
663
|
+
"""
|
|
664
|
+
@typing.overload
|
|
665
|
+
def __getitem__(self, pos: typing.SupportsInt) -> complex:
|
|
666
|
+
"""
|
|
667
|
+
Return value at given position
|
|
668
|
+
"""
|
|
669
|
+
@typing.overload
|
|
670
|
+
def __getitem__(self, inds: slice) -> ...:
|
|
671
|
+
"""
|
|
672
|
+
Return values at given positions
|
|
673
|
+
"""
|
|
674
|
+
@typing.overload
|
|
675
|
+
def __getitem__(self, ind: list) -> ...:
|
|
676
|
+
"""
|
|
677
|
+
Return values at given positions
|
|
678
|
+
"""
|
|
679
|
+
def __iadd__(self, arg0: SliceVectorC) -> SliceVectorC:
|
|
680
|
+
...
|
|
681
|
+
@typing.overload
|
|
682
|
+
def __imul__(self, arg0: complex) -> SliceVectorC:
|
|
683
|
+
...
|
|
684
|
+
@typing.overload
|
|
685
|
+
def __imul__(self, arg0: typing.SupportsFloat) -> SliceVectorC:
|
|
686
|
+
...
|
|
687
|
+
def __isub__(self, arg0: SliceVectorC) -> ...:
|
|
688
|
+
...
|
|
689
|
+
def __iter__(self) -> collections.abc.Iterator[complex]:
|
|
690
|
+
...
|
|
691
|
+
def __len__(self) -> int:
|
|
692
|
+
"""
|
|
693
|
+
Return length of the array
|
|
694
|
+
"""
|
|
695
|
+
def __mul__(self, value: complex) -> ...:
|
|
696
|
+
...
|
|
697
|
+
def __neg__(self) -> ...:
|
|
698
|
+
...
|
|
699
|
+
def __release_buffer__(self, buffer):
|
|
700
|
+
"""
|
|
701
|
+
Release the buffer object that exposes the underlying memory of the object.
|
|
702
|
+
"""
|
|
703
|
+
def __repr__(self) -> str:
|
|
704
|
+
...
|
|
705
|
+
def __rmul__(self, value: complex) -> ...:
|
|
706
|
+
...
|
|
707
|
+
@typing.overload
|
|
708
|
+
def __setitem__(self, pos: typing.SupportsInt, value: complex) -> None:
|
|
709
|
+
"""
|
|
710
|
+
Set value at given position
|
|
711
|
+
"""
|
|
712
|
+
@typing.overload
|
|
713
|
+
def __setitem__(self, inds: slice, rv: SliceVectorC) -> None:
|
|
714
|
+
"""
|
|
715
|
+
Set values at given positions
|
|
716
|
+
"""
|
|
717
|
+
@typing.overload
|
|
718
|
+
def __setitem__(self, inds: slice, value: complex) -> None:
|
|
719
|
+
"""
|
|
720
|
+
Set value at given positions
|
|
721
|
+
"""
|
|
722
|
+
@typing.overload
|
|
723
|
+
def __setitem__(self, inds: slice, value: typing.Annotated[numpy.typing.ArrayLike, numpy.complex128]) -> None:
|
|
724
|
+
"""
|
|
725
|
+
Set value at given positions
|
|
726
|
+
"""
|
|
727
|
+
def __str__(self) -> str:
|
|
728
|
+
...
|
|
729
|
+
def __sub__(self, vec: SliceVectorC) -> ...:
|
|
730
|
+
...
|
|
731
|
+
class SliceVectorD:
|
|
732
|
+
def Get(self, pos: typing.SupportsInt) -> float:
|
|
733
|
+
"""
|
|
734
|
+
Return value at given position
|
|
735
|
+
"""
|
|
736
|
+
def InnerProduct(self, y: SliceVectorD, conjugate: bool = True) -> float:
|
|
737
|
+
"""
|
|
738
|
+
Returns InnerProduct with other object
|
|
739
|
+
"""
|
|
740
|
+
def MinMax(self, ignore_inf: bool = False) -> tuple[float, float]:
|
|
741
|
+
...
|
|
742
|
+
def Norm(self) -> float:
|
|
743
|
+
"""
|
|
744
|
+
Returns L2-norm
|
|
745
|
+
"""
|
|
746
|
+
def NumPy(self) -> typing.Any:
|
|
747
|
+
"""
|
|
748
|
+
Return NumPy object
|
|
749
|
+
"""
|
|
750
|
+
def Range(self, arg0: typing.SupportsInt, arg1: typing.SupportsInt) -> SliceVectorD:
|
|
751
|
+
...
|
|
752
|
+
def Set(self, pos: typing.SupportsInt, value: typing.SupportsFloat) -> None:
|
|
753
|
+
"""
|
|
754
|
+
Set value at given position
|
|
755
|
+
"""
|
|
756
|
+
def __add__(self, vec: SliceVectorD) -> ...:
|
|
757
|
+
...
|
|
758
|
+
def __buffer__(self, flags):
|
|
759
|
+
"""
|
|
760
|
+
Return a buffer object that exposes the underlying memory of the object.
|
|
761
|
+
"""
|
|
762
|
+
@typing.overload
|
|
763
|
+
def __getitem__(self, pos: typing.SupportsInt) -> float:
|
|
764
|
+
"""
|
|
765
|
+
Return value at given position
|
|
766
|
+
"""
|
|
767
|
+
@typing.overload
|
|
768
|
+
def __getitem__(self, inds: slice) -> ...:
|
|
769
|
+
"""
|
|
770
|
+
Return values at given positions
|
|
771
|
+
"""
|
|
772
|
+
@typing.overload
|
|
773
|
+
def __getitem__(self, ind: list) -> ...:
|
|
774
|
+
"""
|
|
775
|
+
Return values at given positions
|
|
776
|
+
"""
|
|
777
|
+
def __iadd__(self, arg0: SliceVectorD) -> SliceVectorD:
|
|
778
|
+
...
|
|
779
|
+
def __imul__(self, arg0: typing.SupportsFloat) -> SliceVectorD:
|
|
780
|
+
...
|
|
781
|
+
def __init__(self, arg0: FlatVectorD) -> None:
|
|
782
|
+
...
|
|
783
|
+
def __isub__(self, arg0: SliceVectorD) -> ...:
|
|
784
|
+
...
|
|
785
|
+
def __iter__(self) -> collections.abc.Iterator[float]:
|
|
786
|
+
...
|
|
787
|
+
def __len__(self) -> int:
|
|
788
|
+
"""
|
|
789
|
+
Return length of the array
|
|
790
|
+
"""
|
|
791
|
+
def __mul__(self, value: typing.SupportsFloat) -> ...:
|
|
792
|
+
...
|
|
793
|
+
def __neg__(self) -> ...:
|
|
794
|
+
...
|
|
795
|
+
def __release_buffer__(self, buffer):
|
|
796
|
+
"""
|
|
797
|
+
Release the buffer object that exposes the underlying memory of the object.
|
|
798
|
+
"""
|
|
799
|
+
def __repr__(self) -> str:
|
|
800
|
+
...
|
|
801
|
+
def __rmul__(self, value: typing.SupportsFloat) -> ...:
|
|
802
|
+
...
|
|
803
|
+
@typing.overload
|
|
804
|
+
def __setitem__(self, pos: typing.SupportsInt, value: typing.SupportsFloat) -> None:
|
|
805
|
+
"""
|
|
806
|
+
Set value at given position
|
|
807
|
+
"""
|
|
808
|
+
@typing.overload
|
|
809
|
+
def __setitem__(self, inds: slice, rv: SliceVectorD) -> None:
|
|
810
|
+
"""
|
|
811
|
+
Set values at given positions
|
|
812
|
+
"""
|
|
813
|
+
@typing.overload
|
|
814
|
+
def __setitem__(self, inds: slice, value: typing.SupportsFloat) -> None:
|
|
815
|
+
"""
|
|
816
|
+
Set value at given positions
|
|
817
|
+
"""
|
|
818
|
+
@typing.overload
|
|
819
|
+
def __setitem__(self, inds: slice, value: typing.Annotated[numpy.typing.ArrayLike, numpy.float64]) -> None:
|
|
820
|
+
"""
|
|
821
|
+
Set value at given positions
|
|
822
|
+
"""
|
|
823
|
+
def __str__(self) -> str:
|
|
824
|
+
...
|
|
825
|
+
def __sub__(self, vec: SliceVectorD) -> ...:
|
|
826
|
+
...
|
|
827
|
+
class SparseVector:
|
|
828
|
+
def InnerProduct(self, arg0: FlatVectorD) -> float:
|
|
829
|
+
...
|
|
830
|
+
def __getitem__(self, arg0: typing.SupportsInt) -> float:
|
|
831
|
+
...
|
|
832
|
+
def __init__(self, arg0: typing.SupportsInt) -> None:
|
|
833
|
+
...
|
|
834
|
+
def __setitem__(self, arg0: typing.SupportsInt, arg1: typing.SupportsFloat) -> None:
|
|
835
|
+
...
|
|
836
|
+
def __str__(self) -> str:
|
|
837
|
+
...
|
|
838
|
+
class Vec1D:
|
|
839
|
+
def Get(self, pos: typing.SupportsInt) -> float:
|
|
840
|
+
"""
|
|
841
|
+
Return value at given position
|
|
842
|
+
"""
|
|
843
|
+
def InnerProduct(self, y: Vec1D, conjugate: bool = True) -> float:
|
|
844
|
+
"""
|
|
845
|
+
Returns InnerProduct with other object
|
|
846
|
+
"""
|
|
847
|
+
def Norm(self) -> float:
|
|
848
|
+
"""
|
|
849
|
+
Returns L2-norm
|
|
850
|
+
"""
|
|
851
|
+
def __add__(self, vec: Vec1D) -> Vec1D:
|
|
852
|
+
...
|
|
853
|
+
@typing.overload
|
|
854
|
+
def __getitem__(self, inds: slice) -> Vec1D:
|
|
855
|
+
"""
|
|
856
|
+
Return values at given positions
|
|
857
|
+
"""
|
|
858
|
+
@typing.overload
|
|
859
|
+
def __getitem__(self, ind: list) -> Vec1D:
|
|
860
|
+
"""
|
|
861
|
+
Return values at given positions
|
|
862
|
+
"""
|
|
863
|
+
@typing.overload
|
|
864
|
+
def __getitem__(self, pos: typing.SupportsInt) -> float:
|
|
865
|
+
"""
|
|
866
|
+
Return value at given position
|
|
867
|
+
"""
|
|
868
|
+
def __mul__(self, value: typing.SupportsFloat) -> Vec1D:
|
|
869
|
+
...
|
|
870
|
+
def __neg__(self) -> Vec1D:
|
|
871
|
+
...
|
|
872
|
+
def __rmul__(self, value: typing.SupportsFloat) -> Vec1D:
|
|
873
|
+
...
|
|
874
|
+
@typing.overload
|
|
875
|
+
def __setitem__(self, inds: slice, rv: Vec1D) -> None:
|
|
876
|
+
"""
|
|
877
|
+
Set values at given positions
|
|
878
|
+
"""
|
|
879
|
+
@typing.overload
|
|
880
|
+
def __setitem__(self, inds: slice, value: typing.SupportsFloat) -> None:
|
|
881
|
+
"""
|
|
882
|
+
Set value at given positions
|
|
883
|
+
"""
|
|
884
|
+
@typing.overload
|
|
885
|
+
def __setitem__(self, inds: slice, value: typing.Annotated[numpy.typing.ArrayLike, numpy.float64]) -> None:
|
|
886
|
+
"""
|
|
887
|
+
Set value at given positions
|
|
888
|
+
"""
|
|
889
|
+
def __sub__(self, vec: Vec1D) -> Vec1D:
|
|
890
|
+
...
|
|
891
|
+
class Vec2D:
|
|
892
|
+
def Get(self, pos: typing.SupportsInt) -> float:
|
|
893
|
+
"""
|
|
894
|
+
Return value at given position
|
|
895
|
+
"""
|
|
896
|
+
def InnerProduct(self, y: Vec2D, conjugate: bool = True) -> float:
|
|
897
|
+
"""
|
|
898
|
+
Returns InnerProduct with other object
|
|
899
|
+
"""
|
|
900
|
+
def Norm(self) -> float:
|
|
901
|
+
"""
|
|
902
|
+
Returns L2-norm
|
|
903
|
+
"""
|
|
904
|
+
def __add__(self, vec: Vec2D) -> Vec2D:
|
|
905
|
+
...
|
|
906
|
+
@typing.overload
|
|
907
|
+
def __getitem__(self, inds: slice) -> Vec2D:
|
|
908
|
+
"""
|
|
909
|
+
Return values at given positions
|
|
910
|
+
"""
|
|
911
|
+
@typing.overload
|
|
912
|
+
def __getitem__(self, ind: list) -> Vec2D:
|
|
913
|
+
"""
|
|
914
|
+
Return values at given positions
|
|
915
|
+
"""
|
|
916
|
+
@typing.overload
|
|
917
|
+
def __getitem__(self, pos: typing.SupportsInt) -> float:
|
|
918
|
+
"""
|
|
919
|
+
Return value at given position
|
|
920
|
+
"""
|
|
921
|
+
@typing.overload
|
|
922
|
+
def __init__(self, arg0: typing.SupportsFloat, arg1: typing.SupportsFloat) -> None:
|
|
923
|
+
...
|
|
924
|
+
@typing.overload
|
|
925
|
+
def __init__(self, t: tuple) -> None:
|
|
926
|
+
...
|
|
927
|
+
def __mul__(self, value: typing.SupportsFloat) -> Vec2D:
|
|
928
|
+
...
|
|
929
|
+
def __neg__(self) -> Vec2D:
|
|
930
|
+
...
|
|
931
|
+
def __rmul__(self, value: typing.SupportsFloat) -> Vec2D:
|
|
932
|
+
...
|
|
933
|
+
@typing.overload
|
|
934
|
+
def __setitem__(self, inds: slice, rv: Vec2D) -> None:
|
|
935
|
+
"""
|
|
936
|
+
Set values at given positions
|
|
937
|
+
"""
|
|
938
|
+
@typing.overload
|
|
939
|
+
def __setitem__(self, inds: slice, value: typing.SupportsFloat) -> None:
|
|
940
|
+
"""
|
|
941
|
+
Set value at given positions
|
|
942
|
+
"""
|
|
943
|
+
@typing.overload
|
|
944
|
+
def __setitem__(self, inds: slice, value: typing.Annotated[numpy.typing.ArrayLike, numpy.float64]) -> None:
|
|
945
|
+
"""
|
|
946
|
+
Set value at given positions
|
|
947
|
+
"""
|
|
948
|
+
def __sub__(self, vec: Vec2D) -> Vec2D:
|
|
949
|
+
...
|
|
950
|
+
class Vec3D:
|
|
951
|
+
def Get(self, pos: typing.SupportsInt) -> float:
|
|
952
|
+
"""
|
|
953
|
+
Return value at given position
|
|
954
|
+
"""
|
|
955
|
+
def InnerProduct(self, y: Vec3D, conjugate: bool = True) -> float:
|
|
956
|
+
"""
|
|
957
|
+
Returns InnerProduct with other object
|
|
958
|
+
"""
|
|
959
|
+
def Norm(self) -> float:
|
|
960
|
+
"""
|
|
961
|
+
Returns L2-norm
|
|
962
|
+
"""
|
|
963
|
+
def __add__(self, vec: Vec3D) -> Vec3D:
|
|
964
|
+
...
|
|
965
|
+
@typing.overload
|
|
966
|
+
def __getitem__(self, inds: slice) -> Vec3D:
|
|
967
|
+
"""
|
|
968
|
+
Return values at given positions
|
|
969
|
+
"""
|
|
970
|
+
@typing.overload
|
|
971
|
+
def __getitem__(self, ind: list) -> Vec3D:
|
|
972
|
+
"""
|
|
973
|
+
Return values at given positions
|
|
974
|
+
"""
|
|
975
|
+
@typing.overload
|
|
976
|
+
def __getitem__(self, pos: typing.SupportsInt) -> float:
|
|
977
|
+
"""
|
|
978
|
+
Return value at given position
|
|
979
|
+
"""
|
|
980
|
+
@typing.overload
|
|
981
|
+
def __init__(self, arg0: typing.SupportsFloat, arg1: typing.SupportsFloat, arg2: typing.SupportsFloat) -> None:
|
|
982
|
+
...
|
|
983
|
+
@typing.overload
|
|
984
|
+
def __init__(self, t: tuple) -> None:
|
|
985
|
+
...
|
|
986
|
+
def __mul__(self, value: typing.SupportsFloat) -> Vec3D:
|
|
987
|
+
...
|
|
988
|
+
def __neg__(self) -> Vec3D:
|
|
989
|
+
...
|
|
990
|
+
def __rmul__(self, value: typing.SupportsFloat) -> Vec3D:
|
|
991
|
+
...
|
|
992
|
+
@typing.overload
|
|
993
|
+
def __setitem__(self, inds: slice, rv: Vec3D) -> None:
|
|
994
|
+
"""
|
|
995
|
+
Set values at given positions
|
|
996
|
+
"""
|
|
997
|
+
@typing.overload
|
|
998
|
+
def __setitem__(self, inds: slice, value: typing.SupportsFloat) -> None:
|
|
999
|
+
"""
|
|
1000
|
+
Set value at given positions
|
|
1001
|
+
"""
|
|
1002
|
+
@typing.overload
|
|
1003
|
+
def __setitem__(self, inds: slice, value: typing.Annotated[numpy.typing.ArrayLike, numpy.float64]) -> None:
|
|
1004
|
+
"""
|
|
1005
|
+
Set value at given positions
|
|
1006
|
+
"""
|
|
1007
|
+
def __sub__(self, vec: Vec3D) -> Vec3D:
|
|
1008
|
+
...
|
|
1009
|
+
class VectorC(FlatVectorC):
|
|
1010
|
+
def NumPy(self) -> typing.Any:
|
|
1011
|
+
"""
|
|
1012
|
+
Return NumPy object
|
|
1013
|
+
"""
|
|
1014
|
+
def __buffer__(self, flags):
|
|
1015
|
+
"""
|
|
1016
|
+
Return a buffer object that exposes the underlying memory of the object.
|
|
1017
|
+
"""
|
|
1018
|
+
def __iadd__(self, arg0: VectorC) -> VectorC:
|
|
1019
|
+
...
|
|
1020
|
+
def __imul__(self, arg0: complex) -> VectorC:
|
|
1021
|
+
...
|
|
1022
|
+
def __init__(self, arg0: typing.SupportsInt) -> None:
|
|
1023
|
+
...
|
|
1024
|
+
def __isub__(self, arg0: VectorC) -> VectorC:
|
|
1025
|
+
...
|
|
1026
|
+
def __release_buffer__(self, buffer):
|
|
1027
|
+
"""
|
|
1028
|
+
Release the buffer object that exposes the underlying memory of the object.
|
|
1029
|
+
"""
|
|
1030
|
+
class VectorD(FlatVectorD):
|
|
1031
|
+
def NumPy(self) -> typing.Any:
|
|
1032
|
+
"""
|
|
1033
|
+
Return NumPy object
|
|
1034
|
+
"""
|
|
1035
|
+
def __buffer__(self, flags):
|
|
1036
|
+
"""
|
|
1037
|
+
Return a buffer object that exposes the underlying memory of the object.
|
|
1038
|
+
"""
|
|
1039
|
+
def __iadd__(self, arg0: VectorD) -> VectorD:
|
|
1040
|
+
...
|
|
1041
|
+
def __imul__(self, arg0: typing.SupportsFloat) -> VectorD:
|
|
1042
|
+
...
|
|
1043
|
+
@typing.overload
|
|
1044
|
+
def __init__(self, arg0: SliceVectorD) -> None:
|
|
1045
|
+
...
|
|
1046
|
+
@typing.overload
|
|
1047
|
+
def __init__(self, arg0: typing.SupportsInt) -> None:
|
|
1048
|
+
...
|
|
1049
|
+
def __isub__(self, arg0: VectorD) -> VectorD:
|
|
1050
|
+
...
|
|
1051
|
+
def __release_buffer__(self, buffer):
|
|
1052
|
+
"""
|
|
1053
|
+
Release the buffer object that exposes the underlying memory of the object.
|
|
1054
|
+
"""
|
|
1055
|
+
def CheckPerformance(n: typing.SupportsInt, m: typing.SupportsInt, k: typing.SupportsInt) -> None:
|
|
1056
|
+
...
|
|
1057
|
+
def InnerProduct(x: typing.Any, y: typing.Any, **kwargs) -> typing.Any:
|
|
1058
|
+
"""
|
|
1059
|
+
Compute InnerProduct
|
|
1060
|
+
"""
|
|
1061
|
+
@typing.overload
|
|
1062
|
+
def Matrix(height: typing.SupportsInt, width: typing.SupportsInt | None = None, complex: bool = False) -> typing.Any:
|
|
1063
|
+
"""
|
|
1064
|
+
Creates a matrix of given height and width.
|
|
1065
|
+
|
|
1066
|
+
Parameters:
|
|
1067
|
+
|
|
1068
|
+
height : int
|
|
1069
|
+
input height
|
|
1070
|
+
|
|
1071
|
+
width : int
|
|
1072
|
+
input width
|
|
1073
|
+
|
|
1074
|
+
complex : bool
|
|
1075
|
+
input complex values
|
|
1076
|
+
"""
|
|
1077
|
+
@typing.overload
|
|
1078
|
+
def Matrix(buffer: collections.abc.Buffer, copy: bool = True) -> typing.Any:
|
|
1079
|
+
...
|
|
1080
|
+
@typing.overload
|
|
1081
|
+
def Matrix(arg0: collections.abc.Sequence[collections.abc.Sequence[typing.SupportsFloat]]) -> MatrixD:
|
|
1082
|
+
...
|
|
1083
|
+
@typing.overload
|
|
1084
|
+
def Matrix(arg0: collections.abc.Sequence[collections.abc.Sequence[complex]]) -> MatrixC:
|
|
1085
|
+
...
|
|
1086
|
+
def Norm(x: typing.Any) -> typing.Any:
|
|
1087
|
+
"""
|
|
1088
|
+
Compute Norm
|
|
1089
|
+
"""
|
|
1090
|
+
@typing.overload
|
|
1091
|
+
def Vector(length: typing.SupportsInt, complex: bool = False) -> typing.Any:
|
|
1092
|
+
"""
|
|
1093
|
+
Parameters:
|
|
1094
|
+
|
|
1095
|
+
length : int
|
|
1096
|
+
input length
|
|
1097
|
+
|
|
1098
|
+
complex : bool
|
|
1099
|
+
input complex values
|
|
1100
|
+
"""
|
|
1101
|
+
@typing.overload
|
|
1102
|
+
def Vector(buffer: collections.abc.Buffer, copy: bool = True) -> typing.Any:
|
|
1103
|
+
...
|
|
1104
|
+
@typing.overload
|
|
1105
|
+
def Vector(arg0: collections.abc.Sequence[typing.SupportsFloat]) -> VectorD:
|
|
1106
|
+
...
|
|
1107
|
+
@typing.overload
|
|
1108
|
+
def Vector(arg0: collections.abc.Sequence[complex]) -> VectorC:
|
|
1109
|
+
...
|
|
1110
|
+
def __timing__(what: typing.SupportsInt, n: typing.SupportsInt, m: typing.SupportsInt, k: typing.SupportsInt, lapack: bool = False, doubleprec: bool = True, maxits: typing.SupportsInt = 10000000000) -> list[tuple[str, float]]:
|
|
1111
|
+
"""
|
|
1112
|
+
Available options timings are:
|
|
1113
|
+
-1 .. this help
|
|
1114
|
+
0 ... run all timings
|
|
1115
|
+
1 ... A = B, A,B = n*m, A = aligned, fixed dist
|
|
1116
|
+
2 ... A = 0, A = n*m, but sliced
|
|
1117
|
+
3 ... A = B^t, A = n*m,
|
|
1118
|
+
5 ... y = A*x, A = n*m
|
|
1119
|
+
6 ... y = A^t*x, A = n*m
|
|
1120
|
+
7 ... y += A^t*x(ind), A = n*m
|
|
1121
|
+
10 .. C = A * B, A=n*m, B=m*k, C=n*k
|
|
1122
|
+
11 .. C += A * B, A=n*m, B=m*k, C=n*k
|
|
1123
|
+
// "20 .. C = A * B A=n*m, B=n*k', C=n*k', k'=round(k), B aligned
|
|
1124
|
+
20 .. X = T * X T=n*n triangular, X=n*m "
|
|
1125
|
+
21 .. X = T^-1 * X T=n*n triangular, X=n*m "
|
|
1126
|
+
22 .. T^-1 T=n*n triangular"
|
|
1127
|
+
50 .. C += A * B^t, A=n*k, B=m*k, C=n*m
|
|
1128
|
+
51 .. C += A * B^t, A=n*k, B=m*k, C=n*m, A,B aligned
|
|
1129
|
+
52 .. C = A * B^t, A=n*k, B=m*k, C=n*m
|
|
1130
|
+
60 .. C -= A^t * D B, A=n*k, B=n*m, C = k*m, D=diag
|
|
1131
|
+
61 .. C = A^t B, A=n*k, B=n*m, C = k*m
|
|
1132
|
+
70 .. C += A B^t, A=n*k, B=m*k, C = n*m, A,B SIMD
|
|
1133
|
+
80 .. (x,y) inner product, size n
|
|
1134
|
+
100.. MultAddKernel C += A * B, A=4*n, B=n*3SW
|
|
1135
|
+
101.. MultAddKernel C += A * B, A=4*n, B=n*3SW, B aligned
|
|
1136
|
+
110.. MultAddKernel2 C += A * B, A=4*n, B=n*m, m multiple of 3*SW
|
|
1137
|
+
111.. MultAddKernel2 C += A * B, A=4*n, B=n*m, m multiple of 3*SW, B aligned
|
|
1138
|
+
150.. ScalKernel C = A * B^t, A=4*n, B = 3*n
|
|
1139
|
+
151.. ScalKernel C = A * B^t, A=4*n, B = 3*n\\n, A,B aligned
|
|
1140
|
+
200.. CalcInverse A = nxn
|
|
1141
|
+
201.. CalcInverse by LU A = nxn
|
|
1142
|
+
205.. LDL A = nxn
|
|
1143
|
+
210.. CalcInverseLapack A = nxn
|
|
1144
|
+
300.. CalcSVD A = nxn
|
|
1145
|
+
410 .. Complex MatVec A<RowMajor> = nxn FlatVector x,y
|
|
1146
|
+
411 .. Complex MatVec A<RowMajor> = nxn SliceVector x,y
|
|
1147
|
+
412 .. Complex MatVec A<ColMajor> = nxn FlatVector x,y
|
|
1148
|
+
413 .. Complex MatVec A<ColMajor> = nxn SliceVector x,y
|
|
1149
|
+
420 .. Complex MatMat RowMajor,RowMajor
|
|
1150
|
+
421 .. Complex MatMat RowMajor,ColMajor
|
|
1151
|
+
422 .. Complex MatMat ColMajor,RowMajor
|
|
1152
|
+
423 .. Complex MatMat ColMajor,ColMajor
|
|
1153
|
+
"""
|