Function one_pad

Source
pub fn one_pad<T>(data: ArrayView2<'_, T>) -> Array2<T>
where T: Copy + One,
Expand description

Prepend the input with a column of ones. Used to incorporate a constant intercept term in a regression.