Skip to main content

DistanceLP2

Struct DistanceLP2 

Source
pub struct DistanceLP2 {
    pub line: Ref<Line>,
    pub point: Ref<Point>,
    pub distance: f64,
    pub nid: u32,
    pub cid: u32,
    pub hb: CrossBlock<Line, Point, { Line_PARAM_COUNT }, { Point_PARAM_COUNT }>,
}

Fields§

§line: Ref<Line>§point: Ref<Point>§distance: f64§nid: u32§cid: u32§hb: CrossBlock<Line, Point, { Line_PARAM_COUNT }, { Point_PARAM_COUNT }>

Trait Implementations§

Source§

impl<'de> Deserialize<'de> for DistanceLP2

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Model for DistanceLP2

Source§

const PARAM_COUNT: u32 = 0

Source§

fn serialize_params32(&mut self, data: &mut Vec<f32>)

Source§

fn deserialize_params32(&mut self, data: &[f32])

Source§

fn update32(&mut self, data: &[f32])

Source§

fn update_self(&mut self)

Source§

fn serialize_params64(&mut self, data: &mut Vec<f64>)

Source§

fn deserialize_params64(&mut self, data: &[f64])

Source§

fn update64(&mut self, data: &[f64])

Source§

fn serialize_size(&self) -> u32

Source§

fn param_symbols(base: &str, out: &mut Vec<String>)

Source§

fn zero_blocks(&mut self)

Source§

fn accumulate_hessian32(&self, hessian: &mut [f32])

Source§

fn accumulate_hessian64(&self, hessian: &mut [f64])

Source§

fn accumulate_hessian_band32( &self, band: &mut [f32], kd: usize, ) -> Result<(), BandError>

Source§

fn accumulate_hessian_band64( &self, band: &mut [f64], kd: usize, ) -> Result<(), BandError>

Source§

fn accumulate_hessian_sparse32(&self, coo: &mut CooMatrix<f32>)

Source§

fn accumulate_hessian_sparse64(&self, coo: &mut CooMatrix<f64>)

Source§

fn accumulate_hessian_sparse_direct32(&self, csc: &mut CscMatrix<f32>)

Source§

fn accumulate_hessian_sparse_direct64(&self, csc: &mut CscMatrix<f64>)

Source§

fn accumulate_hessian_sparse_indexed32( &self, vals: &mut [f32], positions: &[usize], cursor: &mut usize, )

Source§

fn accumulate_hessian_sparse_indexed64( &self, vals: &mut [f64], positions: &[usize], cursor: &mut usize, )

Source§

impl ModelSym for DistanceLP2

Source§

impl Serialize for DistanceLP2

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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

Source§

fn by_ref(&self) -> &T

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> 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<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T, U> Imply<T> for U
where T: ?Sized, U: ?Sized,