Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EelcoHoogendoorn/numga
/ functions
Functions
937 in github.com/EelcoHoogendoorn/numga
⨍
Functions
937
◇
Types & classes
73
↓ 4 callers
Method
_complement
Construct an operator that maps the subspace/operator to a complementary set of blades
numga/operator/factory.py:75
↓ 4 callers
Method
add
(self, other: "Operator")
numga/operator/operator.py:82
↓ 4 callers
Function
check_inverse
(x, i, atol=1e-9)
numga/multivector/test/util.py:98
↓ 4 callers
Method
combine
fused-multiply-add on multivectors of arbitrary subspaces
numga/multivector/multivector.py:247
↓ 4 callers
Method
degenerate
(self)
numga/multivector/multivector.py:205
↓ 4 callers
Method
dual
Hodge dual
numga/multivector/multivector.py:64
↓ 4 callers
Method
indices
compute indices for reduceat expression, assuming rows idx are in sorted order
numga/examples/ga_sparse.py:89
↓ 4 callers
Method
integrate
Verlet style integrator
numga/examples/physics/core.py:80
↓ 4 callers
Method
inverse
(self)
numga/backend/torch/operator.py:87
↓ 4 callers
Method
make_commutator
(self, op, sign)
numga/operator/factory.py:374
↓ 4 callers
Function
match
Return unique value in sequence, if it exists
numga/util.py:17
↓ 4 callers
Method
negatives
Negatives signs picked up by dotting these blades with themselves
numga/operator/factory.py:62
↓ 4 callers
Function
newton_solver_wrap
wrap newton solve of a multivector function
numga/examples/physics/lie_integrators.py:22
↓ 4 callers
Method
nondegenerate
Select non-degenerate subspace
numga/subspace/subspace.py:153
↓ 4 callers
Method
nonscalar
(self)
numga/subspace/factory.py:129
↓ 4 callers
Method
product
(self, other)
numga/subspace/subspace.py:165
↓ 4 callers
Function
render
Render a 3d scene, as embedded in a 4d elliptical or euclidian space currently it specializes to pga only would it be hard to revive elliptical? no
numga/examples/physics/render_3.py:52
↓ 4 callers
Method
scalar_negation
(self, v)
numga/operator/factory.py:100
↓ 4 callers
Method
select_subspace
(self, other: "SubSpace")
numga/subspace/subspace.py:256
↓ 4 callers
Function
simplex_inertia_lumped
Inertia map of a uniform density simplex described by N corner points, described as antivectors as norm 1
numga/examples/test_simplex.py:28
↓ 4 callers
Method
slice_subspace
slice out part of subspace using indices relative to the indices of the subspace
numga/subspace/subspace.py:265
↓ 4 callers
Method
solve
Return operator for solving x * y = rhs, for unknown y
numga/operator/factory.py:605
↓ 3 callers
Method
_build
(self, subspace_or_operator: Tuple[SubSpace])
numga/operator/operator.py:46
↓ 3 callers
Method
abs
(self, x)
numga/backend/jax/context.py:39
↓ 3 callers
Method
antivector
(self, values=None)
numga/multivector/factory.py:64
↓ 3 callers
Method
argmin
(self, x, **kwargs)
numga/backend/jax/context.py:56
↓ 3 callers
Function
bit_count
Count the bits in each element of array b Parameters ---------- b: ndarray, [...] Returns ------- ndarray, [...], uint8 bitcounts of each el
numga/algebra/bitops.py:31
↓ 3 callers
Function
bit_pack
Packs a sequence of booleans as a singleton integer array
numga/algebra/bitops.py:25
↓ 3 callers
Function
biterator
Slice an array of elements into an iterable of its constituent bits
numga/algebra/bitops.py:55
↓ 3 callers
Method
broadcast_einsum
Overridable behavior for specifying broadcasting in einsum expression
numga/operator/abstract.py:105
↓ 3 callers
Method
coerce_array
(self, values, dtype=None)
numga/backend/numpy/context.py:21
↓ 3 callers
Method
complement
Complement of a set of blades
numga/algebra/algebra.py:71
↓ 3 callers
Method
conjugate
Reverse the signs and order of all basis blades
numga/operator/factory.py:129
↓ 3 callers
Method
construct
A place to provide subtype specific type coercions and so on
numga/multivector/multivector.py:43
↓ 3 callers
Method
diag
construct a diagonal matrix from a vector
numga/examples/ga_sparse.py:55
↓ 3 callers
Method
even_grade
(self, values=None)
numga/multivector/factory.py:74
↓ 3 callers
Function
exp_bisect
(b: BiVector, n=15)
numga/multivector/extension/logexp.py:122
↓ 3 callers
Method
full_sandwich
(self, other)
numga/multivector/multivector.py:193
↓ 3 callers
Method
inner
(self, other)
numga/multivector/multivector.py:106
↓ 3 callers
Method
intersection
Intersection of elements in both subspaces
numga/subspace/subspace.py:232
↓ 3 callers
Method
inverse_factor_completed_alt
Fusing with scalar negation gives different reduction possibilities
numga/operator/factory.py:582
↓ 3 callers
Method
is_subspace
True if all blades of other are contained in self Contains a shortcircuit to optimize the common case of identical subspaces being tested
numga/subspace/subspace.py:250
↓ 3 callers
Method
log
(self, x)
numga/backend/jax/context.py:44
↓ 3 callers
Function
log2
(r)
numga/examples/physics/lie_integrators.py:32
↓ 3 callers
Method
min
(self, x, **kwargs)
numga/backend/jax/context.py:54
↓ 3 callers
Method
mul
Scalar multiplication
numga/operator/operator.py:88
↓ 3 callers
Method
nan_to_num
(self, nan)
numga/multivector/multivector.py:403
↓ 3 callers
Method
normalize
normalize a CGA object o such that o.dot(ni) == -1
numga/examples/conformal.py:219
↓ 3 callers
Method
partial
(self, inputs: Dict[int, TorchMultiVector])
numga/backend/torch/operator.py:59
↓ 3 callers
Method
partial
Bind a subset of inputs
numga/operator/abstract.py:58
↓ 3 callers
Method
point_position
(self, p)
numga/examples/conformal.py:196
↓ 3 callers
Function
print_op
(op)
numga/backend/test/test_numpy.py:33
↓ 3 callers
Method
product
Binary geometric product between self and other of given symmetry
numga/multivector/multivector.py:90
↓ 3 callers
Function
random_nonnegative_normal_vector
Random vector from normal distribution with a norm >= 0
numga/multivector/test/util.py:13
↓ 3 callers
Function
random_reflection
(context, shape=())
numga/multivector/test/util.py:35
↓ 3 callers
Function
reduce
Sum over sequence, starting from first element, rather than zero
numga/util.py:30
↓ 3 callers
Function
render
(context, states, jit=lambda x: x)
numga/examples/physics/render.py:18
↓ 3 callers
Method
repeat
(self, pattern, **kwargs)
numga/backend/jax/multivector.py:63
↓ 3 callers
Method
reshape
(self, shape)
numga/backend/numpy/multivector.py:67
↓ 3 callers
Method
restrict_subspace
(self, subspace)
numga/multivector/multivector.py:240
↓ 3 callers
Method
restrict_subspace
(self, other: "SubSpace")
numga/subspace/subspace.py:259
↓ 3 callers
Method
reverse
~ operator, or blade-reversal
numga/multivector/multivector.py:70
↓ 3 callers
Method
reverse_product
(self, other)
numga/subspace/subspace.py:211
↓ 3 callers
Method
select
selection output subspace. think of better name?
numga/operator/factory.py:81
↓ 3 callers
Method
select_grade
Remap to new output space; dropping outputs or adding implicit zeros
numga/operator/operator.py:200
↓ 3 callers
Function
setup_bodies
Some really ugly code to initialize an nd chain of linked rigid bodies
numga/examples/physics/setup_chain.py:8
↓ 3 callers
Function
setup_rays
Set up perspective camera rays Returns ------- camera_motor: Motor defines world-to-camera space camera_motor >> local = world the origin of
numga/examples/physics/render_3.py:6
↓ 3 callers
Function
simplex_inertia
inertia map given [N x n] barycentric weights and n corner points
numga/examples/test_simplex.py:9
↓ 3 callers
Function
simplex_inertia_brute
generate cube of sampling points; and pick sum(C) < 1
numga/examples/test_simplex.py:34
↓ 3 callers
Function
simplify_inverses
Register inversion rules based on simplifying the expression by self-involutions We register the simplest paths first and only go 3 levels of recursi
numga/multivector/extension/inverse.py:47
↓ 3 callers
Method
squared
x * x
numga/operator/factory.py:456
↓ 3 callers
Method
squared
(self)
numga/subspace/subspace.py:189
↓ 3 callers
Function
summation
Sum over sequence, starting from first element, rather than zero
numga/util.py:36
↓ 3 callers
Method
to_relative_indices
convert blades to indices that index the subspace self.blades[indices] = blades anti-slice, if you will
numga/subspace/subspace.py:271
↓ 3 callers
Function
translator
(tx, ty)
numga/examples/pga2d.py:39
↓ 3 callers
Method
translator
(self)
numga/subspace/factory.py:146
↓ 3 callers
Function
write_animation_simulation
write an animation based on a set of states
numga/examples/physics/render.py:4
↓ 2 callers
Function
RK4
(f, y, h)
numga/examples/integrators.py:7
↓ 2 callers
Method
_divide
(self, other)
numga/multivector/multivector.py:307
↓ 2 callers
Method
_zeros
bool for each blade in the subspace, if it contains a degenerate basis vector
numga/subspace/subspace.py:145
↓ 2 callers
Method
abs
(self)
numga/multivector/multivector.py:405
↓ 2 callers
Method
anti_wedge
(self, other)
numga/multivector/multivector.py:99
↓ 2 callers
Method
as_dense
(self)
numga/examples/ga_sparse.py:234
↓ 2 callers
Method
basis
Construct a list of canonical basis 1-blades
numga/multivector/factory.py:38
↓ 2 callers
Method
bind
Bind input operators to operator `self` If inputs is a Dict[int, Operator], it is used as a partial apply Example ------- Given kernels with
numga/operator/operator.py:140
↓ 2 callers
Method
broadcast_allocate
Allocation for a set of inputs, with multivector components as last axis, and broadcasting axes on the left
numga/backend/numpy/operator.py:40
↓ 2 callers
Method
contract
(self, axes)
numga/operator/sparse_tensor.py:94
↓ 2 callers
Method
cross_product
Compute (l ^ r)*
numga/operator/factory.py:397
↓ 2 callers
Method
degenerate
Degenerate subspace
numga/subspace/factory.py:190
↓ 2 callers
Method
deslice
inverse of slice; blow up the kernel with zeros
numga/operator/operator.py:171
↓ 2 callers
Method
distribute_forque
Divide an anti-bivector impulse forque line in body local space, to two momentum-conserving bivector steps in body local space, which will move ou
numga/examples/physics/core.py:148
↓ 2 callers
Function
exp4
(b)
numga/examples/physics/lie_integrators.py:35
↓ 2 callers
Method
finalize
(self)
numga/examples/ga_sparse.py:41
↓ 2 callers
Method
from_cayley
(inputs: List[SubSpace], cayley, sign)
numga/operator/sparse_tensor.py:14
↓ 2 callers
Method
from_point_cloud
Initialize a body from a point cloud Parameters ---------- points: [..., n_points], Point Returns ------- [...], Body
numga/examples/physics/base.py:93
↓ 2 callers
Method
from_str
Construct algebra using interleaved basis names and signatures syntax Examples -------- 'x+y+z+w0' constructs the algebra corresponding to 3d P
numga/algebra/description.py:57
↓ 2 callers
Method
full_sandwich
Compute (R * v) * ~R, the full sandwich product The output subspace of the sandwich product contains both the input subspace grades, as well as t
numga/operator/factory.py:496
↓ 2 callers
Method
fuse
Fuse to operators; feed output of `self` into nth input argument of `other`
numga/operator/operator.py:130
↓ 2 callers
Method
geometric_product
Geometric product
numga/operator/factory.py:234
↓ 2 callers
Method
grade_selection
Apply a grade selection formula
numga/operator/operator.py:222
← previous
next →
101–200 of 937, ranked by callers