Skip to main content

ArrOgpuModule

Struct ArrOgpuModule 

Source
pub struct ArrOgpuModule { /* private fields */ }

Implementations§

Source§

impl ArrOgpuModule

Source§

impl ArrOgpuModule

Source

pub fn array_from_vector( &self, vector: &[f32], shape: &[u32], ) -> Result<GpuArray, ArrOgpuErr>

Source§

impl ArrOgpuModule

Source

pub fn create_metadata_compound( &self, pointer: [u32; 2], len: u32, dim: u32, offset: u32, shape: [u32; 8], stride: [u32; 8], o_stride: [u32; 8], ) -> MetadataCompound

Source§

impl ArrOgpuModule

Source

pub fn new<T>(&self, array: T) -> Result<GpuArray, ArrOgpuErr>
where T: FlatteTrait,

Source§

impl ArrOgpuModule

Source

pub fn array_view_from_array<'a>( &self, array: &'a GpuArray, ) -> Result<GpuArrayView<'a, GpuArray>, ArrOgpuErr>

Source§

impl ArrOgpuModule

Source

pub fn create_metadata_binding( &self, pointer: &[u32], shape: &[u32], iters: &[u32], stride: &[u32], offset: &u32, ) -> (BindGroupLayout, BindGroup)

Source§

impl ArrOgpuModule

Source

pub fn get_heap(&self) -> Vec<f32>

Source§

impl ArrOgpuModule

Source

pub fn index<'a, A>( &self, array: &'a A, index: &[i32], ) -> Result<GpuArrayView<'a, A>, ArrOgpuErr>
where A: ArrayCompute,

Source§

impl ArrOgpuModule

Source

pub fn broadcast<'a, A>( &self, array: &'a A, broadcast: &[u32], ) -> Result<GpuArrayView<'a, A>, ArrOgpuErr>
where A: ArrayCompute,

Source§

impl ArrOgpuModule

Source

pub fn slicing<'a, A>( &self, array: &'a A, slice: &[SliceRangeNegativeAble], ) -> Result<GpuArrayView<'a, A>, ArrOgpuErr>
where A: ArrayCompute,

Source§

impl ArrOgpuModule

Source

pub fn to_shape<'a, A>( &self, array: &'a A, shape: &[u32], ) -> Result<GpuArrayView<'a, A>, ArrOgpuErr>
where A: ArrayCompute,

Source§

impl ArrOgpuModule

Source

pub fn permute<'a, A>( &self, array: &'a A, permute: &[u32], ) -> Result<GpuArrayView<'a, A>, ArrOgpuErr>
where A: ArrayCompute,

Source§

impl ArrOgpuModule

Source

pub fn add<'a, A, B>( &self, array_a: &'a A, array_b: &'a B, ) -> Result<GpuArray, ArrOgpuErr>

arguments can be arrays and floats can only be the second argument

Source§

impl ArrOgpuModule

Source

pub fn div<'a, A, B>( &self, array_a: &'a A, array_b: &'a B, ) -> Result<GpuArray, ArrOgpuErr>

arguments can be arrays and floats can only be the second argument

Source§

impl ArrOgpuModule

Source

pub fn mul<'a, A, B>( &self, array_a: &'a A, array_b: &'a B, ) -> Result<GpuArray, ArrOgpuErr>

arguments can be arrays and floats can only be the second argument

Source§

impl ArrOgpuModule

Source

pub fn sub<'a, A, B>( &self, array_a: &'a A, array_b: &'a B, ) -> Result<GpuArray, ArrOgpuErr>

arguments can be arrays and floats can only be the second argument

Source§

impl ArrOgpuModule

Source

pub fn matmul<A, B>( &self, array_a: &A, array_b: &B, ) -> Result<GpuArray, ArrOgpuErr>

Source§

impl ArrOgpuModule

Source

pub fn dot_product<A, B>( &self, array_a: &A, array_b: &B, ) -> Result<GpuArray, ArrOgpuErr>

Source§

impl ArrOgpuModule

Source

pub fn sum<A>(&self, array_a: &A) -> Result<GpuArray, ArrOgpuErr>
where A: ArrayCompute,

Source§

impl ArrOgpuModule

Source

pub fn sum_axis<A>( &self, array: &A, axis: &[u32], ) -> Result<GpuArray, ArrOgpuErr>
where A: ArrayCompute,

Source§

impl ArrOgpuModule

Source

pub fn sum_axis_keep_dim<A>( &self, array: &A, axis: &[u32], ) -> Result<GpuArray, ArrOgpuErr>
where A: ArrayCompute,

Source§

impl ArrOgpuModule

Source

pub fn abs<A>(&self, array: &A) -> Result<GpuArray, ArrOgpuErr>
where A: ArrayCompute,

Source§

impl ArrOgpuModule

Source

pub fn log2<A>(&self, array: &A) -> Result<GpuArray, ArrOgpuErr>
where A: ArrayCompute,

Source§

impl ArrOgpuModule

Source

pub fn powf<A, B>(&self, array: &A, power: &B) -> Result<GpuArray, ArrOgpuErr>

Source§

impl ArrOgpuModule

Source

pub fn powi<A, B>(&self, array: &A, power: &B) -> Result<GpuArray, ArrOgpuErr>
where A: ArrayCompute, B: PowTrait + PowInt,

Source§

impl ArrOgpuModule

Source

pub fn cos<A>(&self, array: &A) -> Result<GpuArray, ArrOgpuErr>
where A: ArrayCompute,

Source§

impl ArrOgpuModule

Source

pub fn sin<A>(&self, array: &A) -> Result<GpuArray, ArrOgpuErr>
where A: ArrayCompute,

Source§

impl ArrOgpuModule

Source

pub fn tan<A>(&self, array: &A) -> Result<GpuArray, ArrOgpuErr>
where A: ArrayCompute,

Source§

impl ArrOgpuModule

Source

pub fn sqrt<A>(&self, array: &A) -> Result<GpuArray, ArrOgpuErr>
where A: ArrayCompute,

Source§

impl ArrOgpuModule

Source

pub fn init( arr_o_gpu_module_init: ArrOgpuModuleInit, ) -> Result<ArrOgpuModule, ArrOgpuErr>

Source§

impl ArrOgpuModule

Trait Implementations§

Source§

impl Clone for ArrOgpuModule

Source§

fn clone(&self) -> ArrOgpuModule

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for ArrOgpuModule

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V