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
impl<'de> Deserialize<'de> for DistanceLP2
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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
impl Model for DistanceLP2
const PARAM_COUNT: u32 = 0
fn serialize_params32(&mut self, data: &mut Vec<f32>)
fn deserialize_params32(&mut self, data: &[f32])
fn update32(&mut self, data: &[f32])
fn update_self(&mut self)
fn serialize_params64(&mut self, data: &mut Vec<f64>)
fn deserialize_params64(&mut self, data: &[f64])
fn update64(&mut self, data: &[f64])
fn serialize_size(&self) -> u32
fn param_symbols(base: &str, out: &mut Vec<String>)
fn zero_blocks(&mut self)
fn accumulate_hessian32(&self, hessian: &mut [f32])
fn accumulate_hessian64(&self, hessian: &mut [f64])
fn accumulate_hessian_band32( &self, band: &mut [f32], kd: usize, ) -> Result<(), BandError>
fn accumulate_hessian_band64( &self, band: &mut [f64], kd: usize, ) -> Result<(), BandError>
fn accumulate_hessian_sparse32(&self, coo: &mut CooMatrix<f32>)
fn accumulate_hessian_sparse64(&self, coo: &mut CooMatrix<f64>)
fn accumulate_hessian_sparse_direct32(&self, csc: &mut CscMatrix<f32>)
fn accumulate_hessian_sparse_direct64(&self, csc: &mut CscMatrix<f64>)
fn accumulate_hessian_sparse_indexed32( &self, vals: &mut [f32], positions: &[usize], cursor: &mut usize, )
fn accumulate_hessian_sparse_indexed64( &self, vals: &mut [f64], positions: &[usize], cursor: &mut usize, )
Source§impl ModelSym for DistanceLP2
impl ModelSym for DistanceLP2
type Sym = DistanceLP2Sym
fn sym(base: &str) -> DistanceLP2Sym
Auto Trait Implementations§
impl Freeze for DistanceLP2
impl RefUnwindSafe for DistanceLP2
impl Send for DistanceLP2
impl Sync for DistanceLP2
impl Unpin for DistanceLP2
impl UnsafeUnpin for DistanceLP2
impl UnwindSafe for DistanceLP2
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
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
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
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.