Dpens function

Differentiable penalties