complex_amplitude

Struct complex_amplitude 

Source
#[repr(C)]
pub struct complex_amplitude { pub N_PX: c_int, pub N: c_int, pub amplitude: *mut f32, pub phase: *mut f32, pub M: *mut mask, pub handle: cublasHandle_t, pub buffer: *mut f32, }

Fields§

§N_PX: c_int§N: c_int§amplitude: *mut f32§phase: *mut f32§M: *mut mask§handle: cublasHandle_t§buffer: *mut f32

Implementations§

Source§

impl complex_amplitude

Source

pub unsafe fn setup(&mut self, n_pixel: c_int)

Source

pub unsafe fn setup1(&mut self, n_pixel: c_int, n_src: c_int)

Source

pub unsafe fn cleanup(&mut self)

Source

pub unsafe fn reset(&mut self)

Source

pub unsafe fn reset1(&mut self, wavefront: *mut complex_amplitude)

Source

pub unsafe fn reset_amplitude(&mut self)

Source

pub unsafe fn reset_phase(&mut self)

Source

pub unsafe fn reset_phase1(&mut self, wavefront_prime: *mut complex_amplitude)

Source

pub unsafe fn add_phase(&mut self, alpha: f32, phase_prime: *mut f32)

Source

pub unsafe fn add_same_phase(&mut self, alpha: f32, phase_prime: *mut f32)

Source

pub unsafe fn masked(&mut self)

Source

pub unsafe fn masked1(&mut self, M_in: *mut mask)

Source

pub unsafe fn rms(&mut self, rms: *mut f32)

Source

pub unsafe fn finite_difference( &mut self, sx: *mut f32, sy: *mut f32, NL: c_int, d: f32, )

Source

pub unsafe fn finite_difference1( &mut self, sx: *mut f32, sy: *mut f32, NL: c_int, d: f32, valid_lenslet: *mut mask, )

Source

pub unsafe fn gradient_average( &mut self, sx: *mut f32, sy: *mut f32, NL: c_int, d: f32, )

Source

pub unsafe fn gradient_average1(&mut self, sx: *mut f32, sy: *mut f32, d: f32)

Source

pub unsafe fn segments_gradient_average( &mut self, sx: *mut f32, sy: *mut f32, D: f32, segment_markers: *mut c_int, )

Source

pub unsafe fn segments_gradient_averageFast( &mut self, sx: *mut f32, sy: *mut f32, D: f32, segment_markers: *mut c_int, )

Source

pub unsafe fn show_phase(&mut self, filename: *mut c_char)

Source

pub unsafe fn show_phase1(&mut self, filename: *mut c_char, N_SRC: c_int)

Source

pub unsafe fn show_amplitude(&mut self, filename: *mut c_char)

Source

pub unsafe fn show_amplitude1( &mut self, filename: *mut c_char, N: c_int, M: c_int, )

Trait Implementations§

Source§

impl Clone for complex_amplitude

Source§

fn clone(&self) -> complex_amplitude

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 Debug for complex_amplitude

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for complex_amplitude

Source§

fn default() -> Self

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

impl Copy for complex_amplitude

Source§

impl Send for complex_amplitude

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