brainevent.jitn_p

Contents

brainevent.jitn_p#

brainevent.jitn_p = <brainevent.XLACustomKernel object>#

Low-level XLA custom-kernel primitive for jitn.

This XLACustomKernel instance dispatches the JIT normal 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 normally distributed with specified mean and standard deviation. 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 jitn_p.available_backends(platform), and the default backend can be configured with jitn_p.set_default(platform, backend).

See also

jitn

High-level user-facing function wrapper.