fn from_elem(ctx: &Context, shape: Self::Shape, elem: Self::Elem) -> Self {
        let mut mem = unsafe { Self::uninitialized(ctx, shape) };
        mem.set(elem);
        mem
    }
/// uniformly initialized
///
/// Panic
/// ------
/// - if shape is zero
uniformly initialized
Panic

if shape is zero
uniformly initialized Panic if shape is zero
fn from_elem(ctx: &Context, shape: Self::Shape, elem: Self::Elem) -> Self {
        let mut mem = unsafe { Self::uninitialized(ctx, shape) };
        mem.set(elem);
        mem
    }
fn from_elem ( ctx : & Context , shape : Self :: Shape , elem : Self :: Elem ) -> Self { let mut mem = unsafe { Self :: uninitialized ( ctx , shape ) } ; mem . set ( elem ) ; mem }
uniformly initialized
Panic
uniformly initialized Panic
ctx
&Context
shape
Self::Shape
elem
Self::Elem
ctx
&Context
shape
Self::Shape
elem
Self::Elem