pub struct GpuArray { /* private fields */ }Implementations§
Source§impl GpuArray
impl GpuArray
pub fn module(&self) -> &ArrOgpuModule
pub fn pointer(&self) -> (usize, usize)
pub fn len(&self) -> usize
pub fn shape(&self) -> &Vec<u32>
pub fn stride(&self) -> &Vec<u32>
pub fn space_type(&self) -> &SpaceType
pub fn dim(&self) -> usize
pub fn pointer_to_arr(&self) -> [u32; 2]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GpuArray
impl !RefUnwindSafe for GpuArray
impl Send for GpuArray
impl Sync for GpuArray
impl Unpin for GpuArray
impl !UnwindSafe for GpuArray
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more