← Open SourceLightweight tensor header
Problem: Even simple tensor operations pulled in the full MatX header.
Solution & result: Add a smaller header for tensors and basic operations. 64.8% less compile time (29.19 s → 10.28 s median; one small CUDA source file, five runs on Tesla T4).
Independent size and stride widths
Problem: Tensor sizes and strides had to use the same integer width.
Solution: Allow independent 32-bit or 64-bit sizes and strides while preserving existing build options.
mdspan and C++23 indexing
Problem: MatX lacked direct mdspan conversion and C++23 bracket indexing.
Solution: Add mdspan-based tensor views and multidimensional operator[] support.
Problem: Einsum required explicit batch labels and output notation.
Solution: Support ellipses for matching batch dimensions and infer the output when omitted.
Save multiple tensors to one MAT file
Problem: Writing tensors one at a time overwrites the MAT file.
Solution: Collect named tensors in a dictionary and save them together.
PR statuses checked Nov 28, 2026.