Trait dfdx::shapes::HasShape

source ·
pub trait HasShape {
    type WithShape<New: Shape>: HasShape<Shape = New>;
    type Shape: Shape;

    // Required method
    fn shape(&self) -> &Self::Shape;
}
Expand description

Represents something that has a Shape.

Required Associated Types§

source

type WithShape<New: Shape>: HasShape<Shape = New>

source

type Shape: Shape

Required Methods§

source

fn shape(&self) -> &Self::Shape

Implementors§

source§

impl<S: Shape> HasShape for S

§

type WithShape<New: Shape> = New

§

type Shape = S

source§

impl<S: Shape, E, D: Storage<E>, T> HasShape for Tensor<S, E, D, T>

§

type WithShape<New: Shape> = Tensor<New, E, D, T>

§

type Shape = S