brainevent.csrmm_p#
- brainevent.csrmm_p = <brainevent.XLACustomKernel object>#
Low-level XLA custom-kernel primitive for
csrmm.This
XLACustomKernelinstance dispatches the CSR sparse matrix-matrix multiplication with floating-point weights operation to registered backends (numba,pallas), using runtime shape/dtype metadata provided by the high-level wrapper.All elements of the input matrix contribute to the result, performing standard sparse matrix-matrix multiplication with explicit floating-point weights.
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
csrmm_p.available_backends(platform), and the default backend can be configured withcsrmm_p.set_default(platform, backend).See also
csrmmHigh-level user-facing function wrapper.