batmat main
Batched linear algebra routines
Loading...
Searching...
No Matches
batmat

Fast linear algebra routines for batches of small matrices.

Batmat is used as the linear algebra backend for the Cyqlone solver, where it is used to perform vectorized operations across multiple stages in an optimal control problem.

To enable vectorization, batmat stores batches of small matrices in an interleaved “compact” format in memory, where the corresponding elements of all matrices in a batch are stored together. Custom linear algebra routines then operate on all matrices in a batch simultaneously using SIMD instructions. These routines are built on top of highly optimized micro-kernels.

For an overview of the supported routines, see Linear algebra. For documentation of the batched matrix data structures, see Matrix data structures.


batmat logo