pub struct Parallel {
pub a: Ref<Line>,
pub b: Ref<Line>,
pub nid: u32,
pub cid: u32,
pub hb: CrossBlock<Line, Line, { Line_PARAM_COUNT }, { Line_PARAM_COUNT }>,
}Fields§
§a: Ref<Line>§b: Ref<Line>§nid: u32§cid: u32§hb: CrossBlock<Line, Line, { Line_PARAM_COUNT }, { Line_PARAM_COUNT }>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Parallel
impl<'de> Deserialize<'de> for Parallel
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 Parallel
impl Model for Parallel
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, )
Auto Trait Implementations§
impl Freeze for Parallel
impl RefUnwindSafe for Parallel
impl Send for Parallel
impl Sync for Parallel
impl Unpin for Parallel
impl UnsafeUnpin for Parallel
impl UnwindSafe for Parallel
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.