Internal functions used by pamr
These functions are internal to the package and not meant to be called by users.
Trevor Hastie, Robert Tibshirani, Balasubramanian Narasimhan, and Gilbert Chu