Trait Pad

Source
pub trait Pad<T> {
    type Output;

    // Required method
    fn pad(&self, mode: PadMode<T>, pad: &[[usize; 2]]) -> Self::Output;
}
Expand description

The Pad trait defines a padding operation for tensors.

Required Associated Types§

Required Methods§

Source

fn pad(&self, mode: PadMode<T>, pad: &[[usize; 2]]) -> Self::Output

Implementations on Foreign Types§

Source§

impl<A, S, D> Pad<A> for ArrayBase<S, D>
where A: Copy + FromPrimitive + Num, D: Dimension, S: DataOwned<Elem = A>,

Source§

type Output = ArrayBase<OwnedRepr<A>, D>

Source§

fn pad(&self, mode: PadMode<A>, pad: &[[usize; 2]]) -> Self::Output

Implementors§