Compiled matrix computations