complete matrix calc