Allow prox_trace to take matrix weightings