MCPcopy Create free account

hub / github.com/EelcoHoogendoorn/numga / functions

Functions937 in github.com/EelcoHoogendoorn/numga

↓ 46 callersMethodcopy
(self, kernel)
numga/operator/operator.py:23
↓ 40 callersMethodfrom_pqr
(p, q, r)
numga/algebra/algebra.py:36
↓ 40 callersMethodvector
(self)
numga/subspace/factory.py:105
↓ 39 callersFunctionrandom_subspace
(context, subspace, shape=())
numga/multivector/test/util.py:4
↓ 35 callersFunctionassert_close
(a, b, atol=1e-9)
numga/multivector/test/util.py:103
↓ 34 callersMethoddual
(self)
numga/examples/ga_sparse.py:148
↓ 34 callersMethodmultivector
(self)
numga/subspace/factory.py:133
↓ 32 callersMethodeven_grade
(self)
numga/subspace/factory.py:141
↓ 31 callersMethodproduct
non contracting tensor product
numga/operator/sparse_tensor.py:83
↓ 25 callersMethodbivector
(self)
numga/subspace/factory.py:107
↓ 24 callersMethodjoin
(self, other)
numga/multivector/multivector.py:116
↓ 23 callersFunctioncheck_inverse
(x, i, atol=1e-9)
numga/backend/jax/test/test_jax.py:94
↓ 22 callersMethodfrom_grades
(self, grades: List[int])
numga/subspace/factory.py:90
↓ 21 callersMethodsandwich
Compute (R * v) * ~R Only retain the grade-preserving part of the sandwich, which is usually what we are interested in, since proper motors compo
numga/operator/factory.py:520
↓ 21 callersMethodsymmetric_reverse_product
(self)
numga/multivector/multivector.py:162
↓ 21 callersMethodsymmetry
Enforce symmetry on the given input axes [a, b] That is the output op will have the property op(a, b) = op(b, a) We may choose to apply this t
numga/operator/operator.py:108
↓ 19 callersMethodscalar
(self)
numga/subspace/factory.py:103
↓ 19 callersMethodsquared
(self)
numga/multivector/multivector.py:158
↓ 19 callersMethodsum
Reduce one input axis by summation
numga/operator/operator.py:233
↓ 18 callersMethodcopy
(self, values=None, subspace=None)
numga/multivector/multivector.py:47
↓ 18 callersMethodinverse
(self)
numga/backend/jax/operator.py:95
↓ 15 callersMethodmultivector
(self, values=None, subspace=None)
numga/multivector/factory.py:81
↓ 14 callersMethodbasis
Construct a list of all canonical basis subspaces, as they appear in the 1-vector
numga/subspace/factory.py:71
↓ 14 callersMethodexp
(self, x)
numga/backend/jax/context.py:46
↓ 14 callersMethodgrades
Grade of each blade; number of basis vectors present in each blade Returns ------- np.ndarray, [n_blades], uint8 grade of each blade
numga/subspace/subspace.py:32
↓ 14 callersMethodk_vector
(self, k: int)
numga/subspace/factory.py:96
↓ 14 callersFunctionrandom_motor
(context, shape=())
numga/multivector/test/util.py:55
↓ 13 callersMethodflatten
(self)
numga/backend/numpy/multivector.py:69
↓ 13 callersMethodfrom_blades
(self, blades: List[int])
numga/subspace/factory.py:84
↓ 13 callersFunctionparity_to_sign
Turn even-odd parity of ints to a sign value [0, 1, 2, 3] -> [+1, -1, +1, -1]
numga/algebra/bitops.py:11
↓ 13 callersMethodproduct
Construct geometric product between elements of a and b Parameters ---------- a: np.ndarray, [a], blade_dtype basis blades encoded as intege
numga/algebra/algebra.py:160
↓ 13 callersMethodsqueeze
Drop known zero terms from output subspace
numga/operator/operator.py:208
↓ 12 callersMethodadd
(self, r, c, v)
numga/examples/ga_sparse.py:35
↓ 12 callersMethodcommutator
(self, other)
numga/multivector/multivector.py:120
↓ 12 callersMethodconcatenate
(self, other)
numga/examples/physics/base.py:70
↓ 12 callersMethodunion
Union of elements in both subspaces
numga/subspace/subspace.py:238
↓ 12 callersMethodwhere
(self, cond, a, b)
numga/backend/jax/context.py:35
↓ 11 callersMethodcopy
(self, motor=None, rate=None, gravity=None, damping=None)
numga/examples/physics/base.py:81
↓ 11 callersMethodinverse_la
Inverse of x such that x * x.inverse() == 1 == x.inverse() * x
numga/backend/jax/multivector.py:67
↓ 11 callersMethodk_vector
(self, k: int, values=None)
numga/multivector/factory.py:71
↓ 11 callersMethodpartial
(self, inputs: Dict[int, JaxMultiVector])
numga/backend/jax/operator.py:70
↓ 10 callersMethodantivector
(self)
numga/subspace/factory.py:118
↓ 10 callersFunctionexp2
(b)
numga/examples/physics/lie_integrators.py:30
↓ 10 callersMethodinverse_shirokov
Returns the inverted multivector `X^-1` such that `X * X^-1 = 1`. Using Shirokov's inverse algorithm that works in arbitrary dimensions, see ht
numga/multivector/multivector.py:324
↓ 10 callersMethodscalar
(self, values=None)
numga/multivector/factory.py:54
↓ 10 callersMethodset
(self, idx, values)
numga/multivector/helper.py:19
↓ 10 callersMethodsymmetric_reverse_product
x * ~x
numga/operator/factory.py:433
↓ 10 callersMethodwedge
(self, other)
numga/subspace/subspace.py:179
↓ 9 callersMethodis_n_simple
A subspace is n-simple if it maps to a scalar under n self-involution products
numga/subspace/subspace.py:305
↓ 9 callersMethodmotor
(self, values=None)
numga/multivector/factory.py:78
↓ 9 callersMethodselect_subspace
(self, subspace)
numga/multivector/multivector.py:238
↓ 9 callersMethodsqrt
(self)
numga/multivector/multivector.py:398
↓ 9 callersMethodvector
(self, values=None)
numga/multivector/factory.py:56
↓ 9 callersMethodzeros
(self)
numga/algebra/algebra.py:61
↓ 8 callersMethodbit_blades
Represent elements array in unpacked bit format, [n_elements, dimensions]
numga/subspace/subspace.py:57
↓ 8 callersMethodcos
(self)
numga/multivector/multivector.py:408
↓ 8 callersMethodinner
(self, other)
numga/subspace/subspace.py:182
↓ 8 callersFunctionmotor_properties
(m)
numga/multivector/test/util.py:82
↓ 8 callersMethodoperator
Nice place to nest and cache all our operator related stuff
numga/algebra/algebra.py:204
↓ 8 callersMethodpseudoscalar
(self)
numga/subspace/factory.py:114
↓ 8 callersFunctionrandom_non_motor
not-quite-motor, not too far from unity
numga/multivector/test/util.py:61
↓ 8 callersMethodreverse
Reverse the order of all basis blades
numga/operator/factory.py:116
↓ 8 callersMethodreverse
(self)
numga/examples/ga_sparse.py:140
↓ 8 callersMethodsin
(self)
numga/multivector/multivector.py:410
↓ 7 callersMethodantify
Compute *op(l*, v*); wrap the operator in left/right dualizatiom
numga/operator/factory.py:302
↓ 7 callersMethodcayley
Cayley table of the geometric product a * b Parameters ---------- a: np.ndarray, [...], blade_dtype basis blades encoded as integer bitpatte
numga/algebra/algebra.py:95
↓ 7 callersMethodcopy
(self, values)
numga/examples/ga_sparse.py:74
↓ 7 callersMethoddiagonal
Diagonal scaling operator
numga/operator/factory.py:71
↓ 7 callersMethodempty
(self)
numga/subspace/factory.py:137
↓ 7 callersMethodprecompute_einsum_partial
Build einsum expression for (partial) application of input arguments Parameters ---------- axes : Tuple[int, ...] sequence of integers denot
numga/operator/abstract.py:79
↓ 7 callersMethodselect_subspace
Remap to new output space; dropping outputs or adding implicit zeros
numga/operator/operator.py:191
↓ 7 callersMethodsqrt
(self, x)
numga/backend/jax/context.py:42
↓ 7 callersMethodtake
(self, idx, axis)
numga/operator/sparse_tensor.py:47
↓ 7 callersMethodtake_along_axis
(self, idx, axis)
numga/backend/jax/multivector.py:45
↓ 7 callersMethodupcast
Upcast general objects to scalar multivectors
numga/multivector/multivector.py:299
↓ 6 callersFunctionall_grade_combinations
(algebra)
numga/multivector/test/util.py:90
↓ 6 callersMethodbit_dot
Dot-product between bit-blades; counting their shared high bits
numga/algebra/algebra.py:76
↓ 6 callersMethodcoerce_array
(self, values, dtype=None)
numga/backend/torch/context.py:18
↓ 6 callersMethoddual_inverse
Hodge dual inverse
numga/multivector/multivector.py:67
↓ 6 callersMethodembed_point
Embed a Euclidian point in CGA space
numga/examples/conformal.py:190
↓ 6 callersMethodinertia_map
Construct unary operator, that maps rates to momenta, for the point in self. P v (P x B)
numga/multivector/multivector.py:388
↓ 6 callersMethodmake_product
Product with selected grades. Grade selection is not a regular linear operation so we need to apply it before binding any other operators
numga/operator/factory.py:219
↓ 6 callersFunctionpoint
(px, py)
numga/examples/pga2d.py:29
↓ 6 callersMethodreshape
Reshape axis such as to broadcast to whole kernel
numga/operator/operator.py:224
↓ 5 callersMethodall
(self, x, **kwargs)
numga/backend/jax/context.py:58
↓ 5 callersMethodbivector
(self, values=None)
numga/multivector/factory.py:58
↓ 5 callersMethodbivector_product
(self, other)
numga/multivector/multivector.py:112
↓ 5 callersMethodbuild
(self, kernel, axes)
numga/operator/factory.py:58
↓ 5 callersMethodcoerce_array
(self, values, dtype=None)
numga/backend/jax/context.py:17
↓ 5 callersMethoddegenerate
Select degenerate subspace
numga/subspace/subspace.py:149
↓ 5 callersMethoddifference
Difference of elements in both subspaces
numga/subspace/subspace.py:244
↓ 5 callersMethodempty
(self)
numga/multivector/factory.py:52
↓ 5 callersMethodgrade
Grade of each blade; number of basis vectors present in each blade Parameters ---------- a: np.ndarray, [...], blade_dtype basis blades enco
numga/algebra/algebra.py:80
↓ 5 callersMethodgrade
Get the grade of the subspace; raises if no single grade exists, and this is a mixed-grade subspace
numga/subspace/subspace.py:42
↓ 5 callersMethodk_reflection
(self, k: int)
numga/subspace/factory.py:159
↓ 5 callersFunctionnormalize_motor
Normalization of a motor, via numerical solution of the inverse-sandwich of the norm-squared of the motor In dimensions < 6, convergence should be
numga/multivector/numerical_normalize.py:46
↓ 5 callersFunctionplot_circle
(plt, cga, circle)
numga/examples/test_conformal.py:14
↓ 5 callersFunctionplot_point
(plt, cga, p)
numga/examples/test_conformal.py:9
↓ 5 callersMethodregressive
(self, other)
numga/multivector/multivector.py:101
↓ 5 callersMethodsandwich_map
Encode sandwich operation as linear map over the subspace v This can be used to map a quaternion to the equivalent rotation matrix, Or a motor to
numga/multivector/multivector.py:362
next →1–100 of 937, ranked by callers