Linear combination of matrices