Struct autd3_gain_holo::NalgebraBackend

source ·
pub struct NalgebraBackend<D: Directivity> { /* private fields */ }

Trait Implementations§

source§

impl Default for NalgebraBackend<Sphere>

source§

fn default() -> Self

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

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

§

type MatrixXc = Matrix<Complex<f32>, Dyn, Dyn, VecStorage<Complex<f32>, Dyn, Dyn>>

§

type MatrixX = Matrix<f32, Dyn, Dyn, VecStorage<f32, Dyn, Dyn>>

§

type VectorXc = Matrix<Complex<f32>, Dyn, Const<1>, VecStorage<Complex<f32>, Dyn, Const<1>>>

§

type VectorX = Matrix<f32, Dyn, Const<1>, VecStorage<f32, Dyn, Const<1>>>

source§

fn new() -> Result<Arc<Self>, HoloError>

source§

fn generate_propagation_matrix( &self, geometry: &Geometry, foci: &[Vector3], filter: &Option<HashMap<usize, BitVec<u32>>>, ) -> Result<Self::MatrixXc, HoloError>

source§

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

source§

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

source§

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

source§

fn alloc_v(&self, size: usize) -> Result<Self::VectorX, 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 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 make_complex2_v( &self, real: &Self::VectorX, imag: &Self::VectorX, v: &mut Self::VectorXc, ) -> 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 alloc_cv(&self, size: usize) -> Result<Self::VectorXc, HoloError>

source§

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

source§

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

source§

fn norm_squared_cv( &self, a: &Self::VectorXc, b: &mut Self::VectorX, ) -> 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 alloc_cm( &self, rows: usize, cols: usize, ) -> Result<Self::MatrixXc, 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 gen_back_prop( &self, m: usize, n: usize, transfer: &Self::MatrixXc, ) -> Result<Self::MatrixXc, HoloError>

source§

fn from_slice_cv(&self, real: &[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 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 dot_c( &self, x: &Self::VectorXc, y: &Self::VectorXc, ) -> Result<Complex, HoloError>

source§

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

source§

fn to_host_m(&self, v: Self::MatrixX) -> Result<MatrixX, 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 create_diagonal( &self, v: &Self::VectorX, a: &mut Self::MatrixX, ) -> 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 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 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, b: &Self::VectorXc, 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 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 cols_c(&self, m: &Self::MatrixXc) -> Result<usize, HoloError>

Auto Trait Implementations§

§

impl<D> Freeze for NalgebraBackend<D>

§

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

§

impl<D> Send for NalgebraBackend<D>

§

impl<D> Sync for NalgebraBackend<D>

§

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

§

impl<D> UnwindSafe for NalgebraBackend<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> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.
§

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

§

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>,

§

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>,

§

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

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more