pub fn col_span(&self) -> usize {
        match self {
            Shape::Scalar(_) => 1,
            Shape::Vector([n]) => *n as usize,
            Shape::Matrix([n, _]) => *n as usize,
            Shape::Tensor(shp) => shp[..shp.len() - 1].iter().map(|x| *x as usize).product(),
        }
    }
/// Number of columns spanned by this shape.
Number of columns spanned by this shape.
Number of columns spanned by this shape .
pub fn col_span(&self) -> usize {
        match self {
            Shape::Scalar(_) => 1,
            Shape::Vector([n]) => *n as usize,
            Shape::Matrix([n, _]) => *n as usize,
            Shape::Tensor(shp) => shp[..shp.len() - 1].iter().map(|x| *x as usize).product(),
        }
    }
pub fn col_span ( & self ) -> usize { match self { Shape :: Scalar ( _ ) => 1 , Shape :: Vector ( [ n ] ) => * n as usize , Shape :: Matrix ( [ n , _ ] ) => * n as usize , Shape :: Tensor ( shp ) => shp [ .. shp . len ( ) - 1 ] . iter ( ) . map ( | x | * x as usize ) . product ( ) , } }
Number of columns spanned by this shape.
Number of columns spanned by this shape .
&self