The article / paper you linked to is really interesting: The Linear Algebra Mapping Problem. Current State of Linear Algebra Languages and Libraries.
It shows some patterns which can be optimized.
For instance:
The article / paper you linked to is really interesting: The Linear Algebra Mapping Problem. Current State of Linear Algebra Languages and Libraries.
It shows some patterns which can be optimized.
For instance: