@larsmans: This one is:
  https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/utils/extmath.py#L175

Not that it matters...