Added compute_n_dofs and compute_mults