pub enum InnerEach {
OnFold,
OnPair,
}Expand description
Where the each in the inner product’s definition sits.
f.g is a fold over a pairing, and the two lines put the each on
different halves of it. GNU APL puts it on the FOLD — f/¨ (⊂[last]x) ∘.g (⊂[first]y) — so g meets one whole vector from each side and what
the fold makes of a pair is enclosed once more. Dyalog puts it on the
PAIRING — f/ row g¨ column — so g meets one element from each side
and the fold’s own value stands as the cell. 1 2+.,3 4 is 10 under
the first and an enclosed 3 7 under the second. The two agree wherever
g is a scalar function and the fold ends in a number, which is every
published use, so +.× and the Life idiom’s ∨.∧ differ only in depth.
Variants§
Trait Implementations§
impl Copy for InnerEach
impl Eq for InnerEach
impl StructuralPartialEq for InnerEach
Auto Trait Implementations§
impl Freeze for InnerEach
impl RefUnwindSafe for InnerEach
impl Send for InnerEach
impl Sync for InnerEach
impl Unpin for InnerEach
impl UnsafeUnpin for InnerEach
impl UnwindSafe for InnerEach
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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