Enum ndarray::ShapeError [] [src]

pub enum ShapeError {
    IncompatibleShapes(Box<[Ix]>, Box<[Ix]>),
    IncompatibleLayout,
    DimensionTooLarge(Box<[Ix]>),
}

An error that can be produced by .into_shape()

Variants

IncompatibleShapes

incompatible shapes in reshape, (from, to)

IncompatibleLayout

incompatible layout: not contiguous

DimensionTooLarge

Dimension too large (shape)

Trait Implementations

impl Error for ShapeError

fn description(&self) -> &str

1.0.0fn cause(&self) -> Option<&Error>

impl Display for ShapeError

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Debug for ShapeError

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for ShapeError

fn clone(&self) -> ShapeError

1.0.0fn clone_from(&mut self, source: &Self)