Skip to main content

mask

Struct mask 

Source
#[repr(C)]
pub struct mask { pub m: *mut c_char, pub f: *mut f32, pub idx: *mut c_int, pub size_px: [c_int; 2], pub nel: c_int, pub nnz: f32, pub size_m: [f32; 2], pub area: f32, pub delta: [f32; 2], pub handle: cublasHandle_t, pub d__piston_mask: *mut c_int, }

Fields§

§m: *mut c_char§f: *mut f32§idx: *mut c_int§size_px: [c_int; 2]§nel: c_int§nnz: f32§size_m: [f32; 2]§area: f32§delta: [f32; 2]§handle: cublasHandle_t§d__piston_mask: *mut c_int

Implementations§

Source§

impl mask

Source

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

Source

pub unsafe fn setup1(&mut self, n: c_int, L: f32)

Source

pub unsafe fn setup2( &mut self, n: c_int, L: f32, i_s: c_int, j_s: c_int, n_out: c_int, )

Source

pub unsafe fn setup3( &mut self, n: f32, L: f32, i_0: f32, j_0: f32, theta: f32, i_s: f32, j_s: f32, n_out: c_int, )

Source

pub unsafe fn setup_circular(&mut self, n: c_int)

Source

pub unsafe fn setup_circular1(&mut self, n: c_int, D: f32)

Source

pub unsafe fn setup_circular2(&mut self, n: c_int, D: f32, scale: f32)

Source

pub unsafe fn setup_GMT(&mut self, n: c_int, S: f32)

Source

pub unsafe fn set_filter(&mut self)

Source

pub unsafe fn set_filter_quiet(&mut self)

Source

pub unsafe fn set_index(&mut self)

Source

pub unsafe fn set_gmt_piston(&mut self, phase: *mut f32, d__p: *mut f32)

Source

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

Source

pub unsafe fn add(&mut self, other: *mut mask)

Source

pub unsafe fn add1(&mut self, other: *mut c_char, other_nel: c_int)

Source

pub unsafe fn add2(&mut self, other: *mut mask, offset: c_int)

Source

pub unsafe fn add3( &mut self, other: *mut c_char, other_nel: c_int, offset: c_int, )

Source

pub unsafe fn reset(&mut self)

Source

pub unsafe fn cleanup(&mut self)

Trait Implementations§

Source§

impl Clone for mask

Source§

fn clone(&self) -> mask

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 mask

Source§

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

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

impl Default for mask

Source§

fn default() -> Self

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

impl Copy for mask

Source§

impl Send for mask

Auto Trait Implementations§

§

impl Freeze for mask

§

impl RefUnwindSafe for mask

§

impl !Sync for mask

§

impl Unpin for mask

§

impl UnsafeUnpin for mask

§

impl UnwindSafe for mask

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.