brainevent.jitu_p

Contents

brainevent.jitu_p#

brainevent.jitu_p = <brainevent.XLACustomKernel object>#

Low-level XLA custom-kernel primitive for jitu.

This XLACustomKernel instance dispatches the JIT uniform connectivity matrix generation operation to registered backends (numba, pallas), using runtime shape/dtype metadata provided by the high-level wrapper.

This operation generates a sparse connectivity matrix where weights are uniformly distributed between specified lower and upper bounds. The connectivity pattern is generated on-the-fly using a deterministic PRNG seeded by the provided seed value.

Beyond backend dispatch, the primitive stores JAX transformation bindings (JVP, transpose, batching, and call registration) so the operation integrates correctly with jit, vmap, and autodiff.

Available backends can be queried with jitu_p.available_backends(platform), and the default backend can be configured with jitu_p.set_default(platform, backend).

See also

jitu

High-level user-facing function wrapper.