Fixes compatibility with linalg algorithms. matrix_power is missing due to the need for indexing support.