Planning complex matrix operations