ferric-tensor 0.0.1

Ferric L2 — a general N-dimensional tensor runtime on the GPU fabric: arbitrary rank, strided views, broadcasting, general reductions, batched matmul (dtypes + autograd next).
Documentation

Ferric L2 — a general N-dimensional tensor runtime on the GPU fabric.

This is the substrate the whole ecosystem is meant to stand on: not fixed-shape, hand-fused kernels for one architecture, but a real tensor with arbitrary rank, strided views, and broadcasting, plus general elementwise ops, general reductions over any axes, and batched matmul. The transformer kernels in ferric-core become fused fast-paths of this.

Design: eager execution, tensors are Arc-shared f32 buffers described by (shape, strides, offset). Views (reshape/permute/transpose/broadcast_to) are zero-copy stride tricks; contiguous() materializes. One general strided kernel powers elementwise + broadcasting; a segmented kernel powers reductions; a batched kernel powers matmul. Validated against a strided CPU reference on general shapes (broadcasting, non-contiguous inputs, arbitrary reduction axes).

Next fabric layers (in progress): dtypes (f16/bf16/int), autograd tape for training, op fusion, and the heterogeneous scheduler.