pub fn reshape(&mut self, new_shape: impl Into<Shape>) -> &mut Self
    where
        T: Default,
    {
        let new_shape = new_shape.into();
        let new_len = new_shape.span();
        self.values.resize_with(new_len, Default::default);
        self.shape = new_shape;
        self
    }
/// Smaller shape span will result in the last items being 'cut'
Smaller shape span will result in the last items being 'cut'
Smaller shape span will result in the last items being ' cut '
pub fn reshape(&mut self, new_shape: impl Into<Shape>) -> &mut Self
    where
        T: Default,
    {
        let new_shape = new_shape.into();
        let new_len = new_shape.span();
        self.values.resize_with(new_len, Default::default);
        self.shape = new_shape;
        self
    }
pub fn reshape ( & mut self , new_shape : impl Into < Shape > ) -> & mut Self where T : Default , { let new_shape = new_shape . into ( ) ; let new_len = new_shape . span ( ) ; self . values . resize_with ( new_len , Default :: default ) ; self . shape = new_shape ; self }
Smaller shape span will result in the last items being 'cut'
Smaller shape span will result in the last items being ' cut '
&mut self
new_shape
impl Into<Shape>