Docs / nablatensor-tensor / com.nablatensor.tensor
final class
Jit
Traces a fluent Tensor function and fuses each maximal elementwise chain (add/sub/mul/div/unary/scalar ops) between matmul/transpose boundaries into a single backend kernel launch, instead of one launch per op. Tracing itself is cheap (plain object graph building); backends cache compiled fused kernels by their generated source, so repeated calls with the same op chain and shape reuse the compiled kernel.
Methods
static Tensor apply(UnaryOperator<Tensor> body, Tensor input)