pub struct SerialComm;Available on crate feature
distributed only.Expand description
Single rank. All collectives are identity operations.
Trait Implementations§
Source§impl Clone for SerialComm
impl Clone for SerialComm
Source§fn clone(&self) -> SerialComm
fn clone(&self) -> SerialComm
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 moreimpl Copy for SerialComm
Source§impl Debug for SerialComm
impl Debug for SerialComm
Source§impl Default for SerialComm
impl Default for SerialComm
Source§fn default() -> SerialComm
fn default() -> SerialComm
Returns the “default value” for a type. Read more
Source§impl RankComm for SerialComm
impl RankComm for SerialComm
Source§fn size(&self) -> usize
fn size(&self) -> usize
Total number of ranks. Always a power of two for the distributed backend.
Source§fn allgather_c64(&self, local: &[Complex64]) -> Vec<Complex64> ⓘ
fn allgather_c64(&self, local: &[Complex64]) -> Vec<Complex64> ⓘ
Concatenate every rank’s
local block in ascending rank order. Read moreSource§fn allgather_f64(&self, local: &[f64]) -> Vec<f64>
fn allgather_f64(&self, local: &[f64]) -> Vec<f64>
f64 version of allgather_c64.Source§fn allgatherv_u64(&self, local: &[u64], _counts: &[usize]) -> Vec<u64>
fn allgatherv_u64(&self, local: &[u64], _counts: &[usize]) -> Vec<u64>
Concatenate blocks of differing length in ascending rank order. Read more
Source§fn allreduce_sum_f64(&self, value: f64) -> f64
fn allreduce_sum_f64(&self, value: f64) -> f64
Sum a scalar across all ranks; every rank receives the total.
Source§fn sendrecv_c64(
&self,
_partner: usize,
send: &[Complex64],
recv: &mut [Complex64],
)
fn sendrecv_c64( &self, _partner: usize, send: &[Complex64], recv: &mut [Complex64], )
Exchange equal length amplitude blocks with
partner. Read moreSource§fn allgather_u64(&self, local: &[u64]) -> Vec<u64>
fn allgather_u64(&self, local: &[u64]) -> Vec<u64>
u64 version of allgather_c64.Auto Trait Implementations§
impl Freeze for SerialComm
impl RefUnwindSafe for SerialComm
impl Send for SerialComm
impl Sync for SerialComm
impl Unpin for SerialComm
impl UnsafeUnpin for SerialComm
impl UnwindSafe for SerialComm
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T, U> Imply<T> for U
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