pub struct PairColumns {
pub first: Vec<u32>,
pub second: Vec<u32>,
pub distance: Vec<f32>,
}Expand description
A pair list split into index columns and Euclidean distances.
Fields§
§first: Vec<u32>Lower atom index of every pair.
second: Vec<u32>Higher atom index of every pair.
distance: Vec<f32>Euclidean separation of every pair, in ångström.
Implementations§
Source§impl PairColumns
impl PairColumns
Sourcepub fn from_pairs(pairs: &[NeighborPair]) -> Self
pub fn from_pairs(pairs: &[NeighborPair]) -> Self
Splits pairs into columns, taking the square root of each distance.
Sourcepub fn from_cross(pairs: &[CrossPair]) -> Self
pub fn from_cross(pairs: &[CrossPair]) -> Self
Splits cross-set pairs into columns; indices stay local to each set.
Trait Implementations§
Source§impl Clone for PairColumns
impl Clone for PairColumns
Source§impl Debug for PairColumns
impl Debug for PairColumns
Source§impl Default for PairColumns
impl Default for PairColumns
Source§impl PartialEq for PairColumns
impl PartialEq for PairColumns
impl StructuralPartialEq for PairColumns
Auto Trait Implementations§
impl Freeze for PairColumns
impl RefUnwindSafe for PairColumns
impl Send for PairColumns
impl Sync for PairColumns
impl Unpin for PairColumns
impl UnsafeUnpin for PairColumns
impl UnwindSafe for PairColumns
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more