cirls: Constrained iteratively reweighted least-squares