pub struct ExponentialPoint { /* private fields */ }Expand description
Drive a species’ distance to a centre, ξ = ‖x − c‖, to an exponential
distribution ∝ e^(−ξ/λ) — densest at the centre and decaying radially with
decay length λ (a radial atmosphere around center).
Implementations§
Trait Implementations§
Source§impl Clone for ExponentialPoint
impl Clone for ExponentialPoint
Source§fn clone(&self) -> ExponentialPoint
fn clone(&self) -> ExponentialPoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExponentialPoint
impl Debug for ExponentialPoint
Source§impl Restraint for ExponentialPoint
impl Restraint for ExponentialPoint
Source§fn f(&self, coords: &[[F; 3]], _scale: F, _scale2: F) -> F
fn f(&self, coords: &[[F; 3]], _scale: F, _scale2: F) -> F
Penalty value for the group’s current configuration. Read more
Source§fn fg(
&self,
coords: &[[F; 3]],
_scale: F,
_scale2: F,
grads: &mut [[F; 3]],
) -> F
fn fg( &self, coords: &[[F; 3]], _scale: F, _scale2: F, grads: &mut [[F; 3]], ) -> F
Fused value + gradient. Accumulates
∂L/∂coords[i] INTO grads[i]
with +=; returns the same value f would. grads.len() == coords.len().Source§fn is_parallel_safe(&self) -> bool
fn is_parallel_safe(&self) -> bool
If
false, the scheduler serializes this restraint (Python-backed
collective restraints MUST return false).Auto Trait Implementations§
impl Freeze for ExponentialPoint
impl RefUnwindSafe for ExponentialPoint
impl Send for ExponentialPoint
impl Sync for ExponentialPoint
impl Unpin for ExponentialPoint
impl UnsafeUnpin for ExponentialPoint
impl UnwindSafe for ExponentialPoint
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