Struct ArrayFireBackend

Source
pub struct ArrayFireBackend<D: Directivity> { /* private fields */ }

Implementations§

Trait Implementations§

Source§

impl Default for ArrayFireBackend<Sphere>

Source§

fn default() -> Self

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

impl<D: Directivity> LinAlgBackend<D> for ArrayFireBackend<D>

Source§

type MatrixXc = Array<Complex<f32>>

Source§

type MatrixX = Array<f32>

Source§

type VectorXc = Array<Complex<f32>>

Source§

type VectorX = Array<f32>

Source§

fn generate_propagation_matrix( &self, geometry: &Geometry, env: &Environment, foci: &[Point3], filter: &TransducerFilter, ) -> Result<Self::MatrixXc, HoloError>

Source§

fn alloc_v(&self, size: usize) -> Result<Self::VectorX, HoloError>

Source§

fn alloc_m(&self, rows: usize, cols: usize) -> Result<Self::MatrixX, HoloError>

Source§

fn alloc_cv(&self, size: usize) -> Result<Self::VectorXc, HoloError>

Source§

fn alloc_cm( &self, rows: usize, cols: usize, ) -> Result<Self::MatrixXc, HoloError>

Source§

fn alloc_zeros_v(&self, size: usize) -> Result<Self::VectorX, HoloError>

Source§

fn alloc_zeros_cv(&self, size: usize) -> Result<Self::VectorXc, HoloError>

Source§

fn alloc_zeros_cm( &self, rows: usize, cols: usize, ) -> Result<Self::MatrixXc, HoloError>

Source§

fn to_host_v(&self, v: Self::VectorX) -> Result<VectorX, HoloError>

Source§

fn to_host_m(&self, v: Self::MatrixX) -> Result<MatrixX, HoloError>

Source§

fn to_host_cv(&self, v: Self::VectorXc) -> Result<VectorXc, HoloError>

Source§

fn to_host_cm(&self, v: Self::MatrixXc) -> Result<MatrixXc, HoloError>

Source§

fn from_slice_v(&self, v: &[f32]) -> Result<Self::VectorX, HoloError>

Source§

fn from_slice_m( &self, rows: usize, cols: usize, v: &[f32], ) -> Result<Self::MatrixX, HoloError>

Source§

fn from_slice_cv(&self, v: &[f32]) -> Result<Self::VectorXc, HoloError>

Source§

fn from_slice2_cv( &self, r: &[f32], i: &[f32], ) -> Result<Self::VectorXc, HoloError>

Source§

fn from_slice2_cm( &self, rows: usize, cols: usize, r: &[f32], i: &[f32], ) -> Result<Self::MatrixXc, HoloError>

Source§

fn copy_from_slice_v( &self, v: &[f32], dst: &mut Self::VectorX, ) -> Result<(), HoloError>

Source§

fn copy_to_v( &self, src: &Self::VectorX, dst: &mut Self::VectorX, ) -> Result<(), HoloError>

Source§

fn copy_to_m( &self, src: &Self::MatrixX, dst: &mut Self::MatrixX, ) -> Result<(), HoloError>

Source§

fn clone_v(&self, v: &Self::VectorX) -> Result<Self::VectorX, HoloError>

Source§

fn clone_m(&self, v: &Self::MatrixX) -> Result<Self::MatrixX, HoloError>

Source§

fn clone_cv(&self, v: &Self::VectorXc) -> Result<Self::VectorXc, HoloError>

Source§

fn clone_cm(&self, v: &Self::MatrixXc) -> Result<Self::MatrixXc, HoloError>

Source§

fn make_complex2_v( &self, real: &Self::VectorX, imag: &Self::VectorX, v: &mut Self::VectorXc, ) -> Result<(), HoloError>

Source§

fn create_diagonal( &self, v: &Self::VectorX, a: &mut Self::MatrixX, ) -> Result<(), HoloError>

Source§

fn create_diagonal_c( &self, v: &Self::VectorXc, a: &mut Self::MatrixXc, ) -> Result<(), HoloError>

Source§

fn get_diagonal( &self, a: &Self::MatrixX, v: &mut Self::VectorX, ) -> Result<(), HoloError>

Source§

fn real_cm( &self, a: &Self::MatrixXc, b: &mut Self::MatrixX, ) -> Result<(), HoloError>

Source§

fn imag_cm( &self, a: &Self::MatrixXc, b: &mut Self::MatrixX, ) -> Result<(), HoloError>

Source§

fn scale_assign_cv( &self, a: Complex, b: &mut Self::VectorXc, ) -> Result<(), HoloError>

Source§

fn conj_assign_v(&self, b: &mut Self::VectorXc) -> Result<(), HoloError>

Source§

fn exp_assign_cv(&self, v: &mut Self::VectorXc) -> Result<(), HoloError>

Source§

fn concat_col_cm( &self, a: &Self::MatrixXc, b: &Self::MatrixXc, c: &mut Self::MatrixXc, ) -> Result<(), HoloError>

Source§

fn max_v(&self, m: &Self::VectorX) -> Result<f32, HoloError>

Source§

fn hadamard_product_cm( &self, x: &Self::MatrixXc, y: &Self::MatrixXc, z: &mut Self::MatrixXc, ) -> Result<(), HoloError>

Source§

fn dot(&self, x: &Self::VectorX, y: &Self::VectorX) -> Result<f32, HoloError>

Source§

fn dot_c( &self, x: &Self::VectorXc, y: &Self::VectorXc, ) -> Result<Complex, HoloError>

Source§

fn add_v( &self, alpha: f32, a: &Self::VectorX, b: &mut Self::VectorX, ) -> Result<(), HoloError>

Source§

fn add_m( &self, alpha: f32, a: &Self::MatrixX, b: &mut Self::MatrixX, ) -> Result<(), HoloError>

Source§

fn gevv_c( &self, trans_a: Trans, trans_b: Trans, alpha: Complex, a: &Self::VectorXc, x: &Self::VectorXc, beta: Complex, y: &mut Self::MatrixXc, ) -> Result<(), HoloError>

Source§

fn gemv_c( &self, trans: Trans, alpha: Complex, a: &Self::MatrixXc, x: &Self::VectorXc, beta: Complex, y: &mut Self::VectorXc, ) -> Result<(), HoloError>

Source§

fn gemm_c( &self, trans_a: Trans, trans_b: Trans, alpha: Complex, a: &Self::MatrixXc, b: &Self::MatrixXc, beta: Complex, y: &mut Self::MatrixXc, ) -> Result<(), HoloError>

Source§

fn solve_inplace( &self, a: &Self::MatrixX, x: &mut Self::VectorX, ) -> Result<(), HoloError>

Source§

fn reduce_col( &self, a: &Self::MatrixX, b: &mut Self::VectorX, ) -> Result<(), HoloError>

Source§

fn cols_c(&self, m: &Self::MatrixXc) -> Result<usize, HoloError>

Source§

fn scaled_to_cv( &self, a: &Self::VectorXc, b: &Self::VectorXc, c: &mut Self::VectorXc, ) -> Result<(), HoloError>

Source§

fn scaled_to_assign_cv( &self, a: &Self::VectorXc, b: &mut Self::VectorXc, ) -> Result<(), HoloError>

Source§

fn gen_back_prop( &self, m: usize, n: usize, transfer: &Self::MatrixXc, ) -> Result<Self::MatrixXc, HoloError>

Source§

fn norm_squared_cv( &self, a: &Self::VectorXc, b: &mut Self::VectorX, ) -> Result<(), HoloError>

Auto Trait Implementations§

§

impl<D> Freeze for ArrayFireBackend<D>

§

impl<D> RefUnwindSafe for ArrayFireBackend<D>
where D: RefUnwindSafe,

§

impl<D> Send for ArrayFireBackend<D>

§

impl<D> Sync for ArrayFireBackend<D>

§

impl<D> Unpin for ArrayFireBackend<D>
where D: Unpin,

§

impl<D> UnwindSafe for ArrayFireBackend<D>
where D: UnwindSafe,

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> 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V