Struct sundials_sys::_generic_N_Vector_Ops

source ·
#[repr(C)]
pub struct _generic_N_Vector_Ops {
Show 56 fields pub nvgetvectorid: Option<unsafe extern "C" fn(arg1: N_Vector) -> N_Vector_ID>, pub nvclone: Option<unsafe extern "C" fn(arg1: N_Vector) -> N_Vector>, pub nvcloneempty: Option<unsafe extern "C" fn(arg1: N_Vector) -> N_Vector>, pub nvdestroy: Option<unsafe extern "C" fn(arg1: N_Vector)>, pub nvspace: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: *mut sunindextype, arg3: *mut sunindextype)>, pub nvgetarraypointer: Option<unsafe extern "C" fn(arg1: N_Vector) -> *mut sunrealtype>, pub nvgetdevicearraypointer: Option<unsafe extern "C" fn(arg1: N_Vector) -> *mut sunrealtype>, pub nvsetarraypointer: Option<unsafe extern "C" fn(arg1: *mut sunrealtype, arg2: N_Vector)>, pub nvgetcommunicator: Option<unsafe extern "C" fn(arg1: N_Vector) -> SUNComm>, pub nvgetlength: Option<unsafe extern "C" fn(arg1: N_Vector) -> sunindextype>, pub nvgetlocallength: Option<unsafe extern "C" fn(arg1: N_Vector) -> sunindextype>, pub nvlinearsum: Option<unsafe extern "C" fn(arg1: sunrealtype, arg2: N_Vector, arg3: sunrealtype, arg4: N_Vector, arg5: N_Vector)>, pub nvconst: Option<unsafe extern "C" fn(arg1: sunrealtype, arg2: N_Vector)>, pub nvprod: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector, arg3: N_Vector)>, pub nvdiv: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector, arg3: N_Vector)>, pub nvscale: Option<unsafe extern "C" fn(arg1: sunrealtype, arg2: N_Vector, arg3: N_Vector)>, pub nvabs: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector)>, pub nvinv: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector)>, pub nvaddconst: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: sunrealtype, arg3: N_Vector)>, pub nvdotprod: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector) -> sunrealtype>, pub nvmaxnorm: Option<unsafe extern "C" fn(arg1: N_Vector) -> sunrealtype>, pub nvwrmsnorm: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector) -> sunrealtype>, pub nvwrmsnormmask: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector, arg3: N_Vector) -> sunrealtype>, pub nvmin: Option<unsafe extern "C" fn(arg1: N_Vector) -> sunrealtype>, pub nvwl2norm: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector) -> sunrealtype>, pub nvl1norm: Option<unsafe extern "C" fn(arg1: N_Vector) -> sunrealtype>, pub nvcompare: Option<unsafe extern "C" fn(arg1: sunrealtype, arg2: N_Vector, arg3: N_Vector)>, pub nvinvtest: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector) -> c_int>, pub nvconstrmask: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector, arg3: N_Vector) -> c_int>, pub nvminquotient: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector) -> sunrealtype>, pub nvlinearcombination: Option<unsafe extern "C" fn(arg1: c_int, arg2: *mut sunrealtype, arg3: *mut N_Vector, arg4: N_Vector) -> SUNErrCode>, pub nvscaleaddmulti: Option<unsafe extern "C" fn(arg1: c_int, arg2: *mut sunrealtype, arg3: N_Vector, arg4: *mut N_Vector, arg5: *mut N_Vector) -> SUNErrCode>, pub nvdotprodmulti: Option<unsafe extern "C" fn(arg1: c_int, arg2: N_Vector, arg3: *mut N_Vector, arg4: *mut sunrealtype) -> SUNErrCode>, pub nvlinearsumvectorarray: Option<unsafe extern "C" fn(arg1: c_int, arg2: sunrealtype, arg3: *mut N_Vector, arg4: sunrealtype, arg5: *mut N_Vector, arg6: *mut N_Vector) -> SUNErrCode>, pub nvscalevectorarray: Option<unsafe extern "C" fn(arg1: c_int, arg2: *mut sunrealtype, arg3: *mut N_Vector, arg4: *mut N_Vector) -> SUNErrCode>, pub nvconstvectorarray: Option<unsafe extern "C" fn(arg1: c_int, arg2: sunrealtype, arg3: *mut N_Vector) -> SUNErrCode>, pub nvwrmsnormvectorarray: Option<unsafe extern "C" fn(arg1: c_int, arg2: *mut N_Vector, arg3: *mut N_Vector, arg4: *mut sunrealtype) -> SUNErrCode>, pub nvwrmsnormmaskvectorarray: Option<unsafe extern "C" fn(arg1: c_int, arg2: *mut N_Vector, arg3: *mut N_Vector, arg4: N_Vector, arg5: *mut sunrealtype) -> SUNErrCode>, pub nvscaleaddmultivectorarray: Option<unsafe extern "C" fn(arg1: c_int, arg2: c_int, arg3: *mut sunrealtype, arg4: *mut N_Vector, arg5: *mut *mut N_Vector, arg6: *mut *mut N_Vector) -> SUNErrCode>, pub nvlinearcombinationvectorarray: Option<unsafe extern "C" fn(arg1: c_int, arg2: c_int, arg3: *mut sunrealtype, arg4: *mut *mut N_Vector, arg5: *mut N_Vector) -> SUNErrCode>, pub nvdotprodlocal: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector) -> sunrealtype>, pub nvmaxnormlocal: Option<unsafe extern "C" fn(arg1: N_Vector) -> sunrealtype>, pub nvminlocal: Option<unsafe extern "C" fn(arg1: N_Vector) -> sunrealtype>, pub nvl1normlocal: Option<unsafe extern "C" fn(arg1: N_Vector) -> sunrealtype>, pub nvinvtestlocal: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector) -> c_int>, pub nvconstrmasklocal: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector, arg3: N_Vector) -> c_int>, pub nvminquotientlocal: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector) -> sunrealtype>, pub nvwsqrsumlocal: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector) -> sunrealtype>, pub nvwsqrsummasklocal: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector, arg3: N_Vector) -> sunrealtype>, pub nvdotprodmultilocal: Option<unsafe extern "C" fn(arg1: c_int, arg2: N_Vector, arg3: *mut N_Vector, arg4: *mut sunrealtype) -> SUNErrCode>, pub nvdotprodmultiallreduce: Option<unsafe extern "C" fn(arg1: c_int, arg2: N_Vector, arg3: *mut sunrealtype) -> SUNErrCode>, pub nvbufsize: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: *mut sunindextype) -> SUNErrCode>, pub nvbufpack: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: *mut c_void) -> SUNErrCode>, pub nvbufunpack: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: *mut c_void) -> SUNErrCode>, pub nvprint: Option<unsafe extern "C" fn(arg1: N_Vector)>, pub nvprintfile: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: *mut FILE)>,
}

Fields§

§nvgetvectorid: Option<unsafe extern "C" fn(arg1: N_Vector) -> N_Vector_ID>§nvclone: Option<unsafe extern "C" fn(arg1: N_Vector) -> N_Vector>§nvcloneempty: Option<unsafe extern "C" fn(arg1: N_Vector) -> N_Vector>§nvdestroy: Option<unsafe extern "C" fn(arg1: N_Vector)>§nvspace: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: *mut sunindextype, arg3: *mut sunindextype)>§nvgetarraypointer: Option<unsafe extern "C" fn(arg1: N_Vector) -> *mut sunrealtype>§nvgetdevicearraypointer: Option<unsafe extern "C" fn(arg1: N_Vector) -> *mut sunrealtype>§nvsetarraypointer: Option<unsafe extern "C" fn(arg1: *mut sunrealtype, arg2: N_Vector)>§nvgetcommunicator: Option<unsafe extern "C" fn(arg1: N_Vector) -> SUNComm>§nvgetlength: Option<unsafe extern "C" fn(arg1: N_Vector) -> sunindextype>§nvgetlocallength: Option<unsafe extern "C" fn(arg1: N_Vector) -> sunindextype>§nvlinearsum: Option<unsafe extern "C" fn(arg1: sunrealtype, arg2: N_Vector, arg3: sunrealtype, arg4: N_Vector, arg5: N_Vector)>§nvconst: Option<unsafe extern "C" fn(arg1: sunrealtype, arg2: N_Vector)>§nvprod: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector, arg3: N_Vector)>§nvdiv: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector, arg3: N_Vector)>§nvscale: Option<unsafe extern "C" fn(arg1: sunrealtype, arg2: N_Vector, arg3: N_Vector)>§nvabs: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector)>§nvinv: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector)>§nvaddconst: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: sunrealtype, arg3: N_Vector)>§nvdotprod: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector) -> sunrealtype>§nvmaxnorm: Option<unsafe extern "C" fn(arg1: N_Vector) -> sunrealtype>§nvwrmsnorm: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector) -> sunrealtype>§nvwrmsnormmask: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector, arg3: N_Vector) -> sunrealtype>§nvmin: Option<unsafe extern "C" fn(arg1: N_Vector) -> sunrealtype>§nvwl2norm: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector) -> sunrealtype>§nvl1norm: Option<unsafe extern "C" fn(arg1: N_Vector) -> sunrealtype>§nvcompare: Option<unsafe extern "C" fn(arg1: sunrealtype, arg2: N_Vector, arg3: N_Vector)>§nvinvtest: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector) -> c_int>§nvconstrmask: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector, arg3: N_Vector) -> c_int>§nvminquotient: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector) -> sunrealtype>§nvlinearcombination: Option<unsafe extern "C" fn(arg1: c_int, arg2: *mut sunrealtype, arg3: *mut N_Vector, arg4: N_Vector) -> SUNErrCode>§nvscaleaddmulti: Option<unsafe extern "C" fn(arg1: c_int, arg2: *mut sunrealtype, arg3: N_Vector, arg4: *mut N_Vector, arg5: *mut N_Vector) -> SUNErrCode>§nvdotprodmulti: Option<unsafe extern "C" fn(arg1: c_int, arg2: N_Vector, arg3: *mut N_Vector, arg4: *mut sunrealtype) -> SUNErrCode>§nvlinearsumvectorarray: Option<unsafe extern "C" fn(arg1: c_int, arg2: sunrealtype, arg3: *mut N_Vector, arg4: sunrealtype, arg5: *mut N_Vector, arg6: *mut N_Vector) -> SUNErrCode>§nvscalevectorarray: Option<unsafe extern "C" fn(arg1: c_int, arg2: *mut sunrealtype, arg3: *mut N_Vector, arg4: *mut N_Vector) -> SUNErrCode>§nvconstvectorarray: Option<unsafe extern "C" fn(arg1: c_int, arg2: sunrealtype, arg3: *mut N_Vector) -> SUNErrCode>§nvwrmsnormvectorarray: Option<unsafe extern "C" fn(arg1: c_int, arg2: *mut N_Vector, arg3: *mut N_Vector, arg4: *mut sunrealtype) -> SUNErrCode>§nvwrmsnormmaskvectorarray: Option<unsafe extern "C" fn(arg1: c_int, arg2: *mut N_Vector, arg3: *mut N_Vector, arg4: N_Vector, arg5: *mut sunrealtype) -> SUNErrCode>§nvscaleaddmultivectorarray: Option<unsafe extern "C" fn(arg1: c_int, arg2: c_int, arg3: *mut sunrealtype, arg4: *mut N_Vector, arg5: *mut *mut N_Vector, arg6: *mut *mut N_Vector) -> SUNErrCode>§nvlinearcombinationvectorarray: Option<unsafe extern "C" fn(arg1: c_int, arg2: c_int, arg3: *mut sunrealtype, arg4: *mut *mut N_Vector, arg5: *mut N_Vector) -> SUNErrCode>§nvdotprodlocal: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector) -> sunrealtype>§nvmaxnormlocal: Option<unsafe extern "C" fn(arg1: N_Vector) -> sunrealtype>§nvminlocal: Option<unsafe extern "C" fn(arg1: N_Vector) -> sunrealtype>§nvl1normlocal: Option<unsafe extern "C" fn(arg1: N_Vector) -> sunrealtype>§nvinvtestlocal: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector) -> c_int>§nvconstrmasklocal: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector, arg3: N_Vector) -> c_int>§nvminquotientlocal: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector) -> sunrealtype>§nvwsqrsumlocal: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector) -> sunrealtype>§nvwsqrsummasklocal: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: N_Vector, arg3: N_Vector) -> sunrealtype>§nvdotprodmultilocal: Option<unsafe extern "C" fn(arg1: c_int, arg2: N_Vector, arg3: *mut N_Vector, arg4: *mut sunrealtype) -> SUNErrCode>§nvdotprodmultiallreduce: Option<unsafe extern "C" fn(arg1: c_int, arg2: N_Vector, arg3: *mut sunrealtype) -> SUNErrCode>§nvbufsize: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: *mut sunindextype) -> SUNErrCode>§nvbufpack: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: *mut c_void) -> SUNErrCode>§nvbufunpack: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: *mut c_void) -> SUNErrCode>§nvprint: Option<unsafe extern "C" fn(arg1: N_Vector)>§nvprintfile: Option<unsafe extern "C" fn(arg1: N_Vector, arg2: *mut FILE)>

Trait Implementations§

source§

impl Clone for _generic_N_Vector_Ops

source§

fn clone(&self) -> _generic_N_Vector_Ops

Returns a copy 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 _generic_N_Vector_Ops

source§

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

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

impl Copy for _generic_N_Vector_Ops

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

§

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

§

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.