pub enum ScalarDyad {
Show 23 variants
Add,
Sub,
Mul,
DivJ,
DivApl,
Min,
Max,
Pow,
Residue,
Eq,
Ne,
Lt,
Le,
Gt,
Ge,
Lcm,
Gcd,
Log,
Root,
Circle,
Binomial,
MakeComplex,
PolarBy,
}Expand description
Elementwise dyadic operations (cell ranks 0 0).
Variants§
Add
Sub
Mul
DivJ
J %: result is float; 0 % 0 is 0, n % 0 is signed infinity.
DivApl
APL ÷: result is float; 0 ÷ 0 is 1, n ÷ 0 is a domain error.
Min
Max
Pow
Residue
x | y: y modulo x, sign following x; 0 | y is y.
Eq
Ne
Lt
Le
Gt
Ge
Lcm
Least common multiple (J *., APL ∧); logical and on booleans.
Gcd
Greatest common divisor (J +., APL ∨); logical or on booleans.
Log
x ^. y / x ⍟ y: logarithm of y to base x; always float.
Root
x %: y: the x-th root of y; always float.
Circle
k o. y / k ○ y: the circle function selected by the integer k —
the trigonometric, hyperbolic and inverse families, plus the two
Pythagorean forms at 0 and 4. Always float.
Binomial
x ! y: the number of ways to choose x things from y — J’s argument
order. Defined for every real pair through the gamma function.
MakeComplex
J x j. y: x + 0j1 * y. Always complex.
PolarBy
J x r. y: x * ^ 0j1 * y, i.e. polar coordinates. Always complex.
Trait Implementations§
Source§impl Clone for ScalarDyad
impl Clone for ScalarDyad
Source§fn clone(&self) -> ScalarDyad
fn clone(&self) -> ScalarDyad
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ScalarDyad
Source§impl Debug for ScalarDyad
impl Debug for ScalarDyad
impl Eq for ScalarDyad
Source§impl PartialEq for ScalarDyad
impl PartialEq for ScalarDyad
impl StructuralPartialEq for ScalarDyad
Auto Trait Implementations§
impl Freeze for ScalarDyad
impl RefUnwindSafe for ScalarDyad
impl Send for ScalarDyad
impl Sync for ScalarDyad
impl Unpin for ScalarDyad
impl UnsafeUnpin for ScalarDyad
impl UnwindSafe for ScalarDyad
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
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§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
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> ⓘ
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> ⓘ
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