pub struct GpuArrayView<'a, A>where
A: ArrayCompute,{ /* private fields */ }Implementations§
Source§impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
Source§impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
pub fn contiguous(self) -> Result<GpuArray, ArrOgpuErr>
Source§impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
Source§impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
pub fn abs(&self) -> Result<GpuArray, ArrOgpuErr>
Source§impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
pub fn dot<'b, B>(&'b self, arr: &'b B) -> Result<GpuArray, ArrOgpuErr>where
B: ArrayCompute + CheckArrayType<'b>,
Source§impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
pub fn add<B>(&self, arr: &B) -> Result<GpuArray, ArrOgpuErr>where
B: AbleElementWise,
pub fn sub<B>(&self, arr: &B) -> Result<GpuArray, ArrOgpuErr>where
B: AbleElementWise,
pub fn mul<B>(&self, arr: &B) -> Result<GpuArray, ArrOgpuErr>where
B: AbleElementWise,
pub fn div<B>(&self, arr: &B) -> Result<GpuArray, ArrOgpuErr>where
B: AbleElementWise,
Source§impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
pub fn log2(&self) -> Result<GpuArray, ArrOgpuErr>
Source§impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
pub fn matmul<B>(&self, arr: &B) -> Result<GpuArray, ArrOgpuErr>where
B: ArrayCompute,
Source§impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
Source§impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
pub fn sin(&self) -> Result<GpuArray, ArrOgpuErr>
pub fn cos(&self) -> Result<GpuArray, ArrOgpuErr>
pub fn tan(&self) -> Result<GpuArray, ArrOgpuErr>
Source§impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
pub fn sqrt(&self) -> Result<GpuArray, ArrOgpuErr>
Source§impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
pub fn sum(&self) -> Result<GpuArray, ArrOgpuErr>
pub fn sum_axis(&self, axis: &[u32]) -> Result<GpuArray, ArrOgpuErr>
pub fn sum_axis_keep_dim(&self, axis: &[u32]) -> Result<GpuArray, ArrOgpuErr>
Source§impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
pub fn broadcast( &self, broadcast: &[u32], ) -> Result<GpuArrayView<'_, GpuArrayView<'_, A>>, ArrOgpuErr>
Source§impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
pub fn index( &self, index: &[i32], ) -> Result<GpuArrayView<'_, GpuArrayView<'_, A>>, ArrOgpuErr>
Source§impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
pub fn permute( &self, permute: &[u32], ) -> Result<GpuArrayView<'_, GpuArrayView<'_, A>>, ArrOgpuErr>
Source§impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
pub fn slicing( &self, slice: &[SliceRangeNegativeAble], ) -> Result<GpuArrayView<'_, GpuArrayView<'_, A>>, ArrOgpuErr>
Source§impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
impl<'a, A> GpuArrayView<'a, A>where
A: ArrayCompute,
pub fn to_shape( &self, shape: &[u32], ) -> Result<GpuArrayView<'_, GpuArrayView<'_, A>>, ArrOgpuErr>
Trait Implementations§
Source§impl<'a, A> ArrayCompute for GpuArrayView<'a, A>where
A: ArrayCompute,
impl<'a, A> ArrayCompute for GpuArrayView<'a, A>where
A: ArrayCompute,
fn module(&self) -> &Arc<ArrOgpuModule>
fn pointer_to_arr(&self) -> [u32; 2]
fn dim(&self) -> usize
fn stride(&self) -> &Vec<u32>
fn shape(&self) -> &Vec<u32>
fn pointer(&self) -> (u32, u32)
fn offset(&self) -> u32
fn len(&self) -> u32
fn is_contiguous(&self) -> bool
fn metadata_compound(&self) -> Option<&MetadataCompound>
fn check_contiguous_or_view(&self) -> ArrayType<'_>
Source§impl<'a, A> CheckArrayType<'a> for GpuArrayView<'a, A>where
A: ArrayCompute,
impl<'a, A> CheckArrayType<'a> for GpuArrayView<'a, A>where
A: ArrayCompute,
Source§impl<'a, A> PowTrait for GpuArrayView<'a, A>where
A: ArrayCompute,
impl<'a, A> PowTrait for GpuArrayView<'a, A>where
A: ArrayCompute,
impl<'a, A> PowFloat for GpuArrayView<'a, A>where
A: ArrayCompute,
impl<'a, A> ViewArray for GpuArrayView<'a, A>where
A: ArrayCompute,
Auto Trait Implementations§
impl<'a, A> Freeze for GpuArrayView<'a, A>
impl<'a, A> !RefUnwindSafe for GpuArrayView<'a, A>
impl<'a, A> Send for GpuArrayView<'a, A>where
A: Sync,
impl<'a, A> Sync for GpuArrayView<'a, A>where
A: Sync,
impl<'a, A> Unpin for GpuArrayView<'a, A>
impl<'a, A> !UnwindSafe for GpuArrayView<'a, A>
Blanket Implementations§
Source§impl<'a, A> AbleElementWise for Awhere
A: ArrayCompute,
impl<'a, A> AbleElementWise for Awhere
A: ArrayCompute,
fn get_eble_element_wise(&self) -> ElementWiseOption<'_>
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