brainevent.jitnmm_p

Contents

brainevent.jitnmm_p#

brainevent.jitnmm_p = <brainevent.XLACustomKernel object>#

Low-level XLA custom-kernel primitive for jitnmm.

This XLACustomKernel instance dispatches the JIT normal connectivity matrix-matrix multiplication with floating-point weights operation to registered backends (numba, pallas), using runtime shape/dtype metadata provided by the high-level wrapper.

In this operation, the connectivity matrix has weights normally distributed with specified mean and standard deviation, and the input matrix contains floating-point values. Each column of the input is processed independently in a standard matrix-matrix product.

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 jitnmm_p.available_backends(platform), and the default backend can be configured with jitnmm_p.set_default(platform, backend).

See also

jitnmm

High-level user-facing function wrapper.