Fix full-rank condition.
Add calc_x_l() to pxd.