pub struct TabulatedPoint { /* private fields */ }Expand description
Drive a species’ distance to a centre, ξ = ‖x − c‖, to an arbitrary target
density supplied as a grid {(ξᵢ, ρᵢ)} (a prescribed radial profile).
Implementations§
Trait Implementations§
Source§impl Clone for TabulatedPoint
impl Clone for TabulatedPoint
Source§fn clone(&self) -> TabulatedPoint
fn clone(&self) -> TabulatedPoint
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 TabulatedPoint
impl Debug for TabulatedPoint
Source§impl Restraint for TabulatedPoint
impl Restraint for TabulatedPoint
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 TabulatedPoint
impl RefUnwindSafe for TabulatedPoint
impl Send for TabulatedPoint
impl Sync for TabulatedPoint
impl Unpin for TabulatedPoint
impl UnsafeUnpin for TabulatedPoint
impl UnwindSafe for TabulatedPoint
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