Struct oprec::OpRec
[−]
[src]
pub struct OpRec { /* fields omitted */ }
Methods
impl OpRec
[src]
pub fn new() -> OpRec
[src]
Constructs a new OpRec
with default parameters
pub fn functify(self) -> Box<Fn(HashMap<u64, f64>) -> Result<f64, u64>>
[src]
Converts the current OpRec into a function that will reproduce the operations applied to it to the functions arguments
pub fn differentiate(self) -> OpRec
[src]
pub fn differentiate_wrt(self, respect: &OpRec) -> OpRec
[src]
pub fn id(self, z: Option<u64>) -> OpRec
[src]
pub fn exp_m1(self) -> OpRec
[src]
Performs exp_m1
on the tree.
pub fn ln_1p(self) -> OpRec
[src]
Performs ln_1p
on the tree.
pub fn log2(self) -> OpRec
[src]
Performs log2
on the tree.
pub fn log10(self) -> OpRec
[src]
Performs log10
on the tree.
pub fn cbrt(self) -> OpRec
[src]
Performs cbrt
on the tree.
pub fn sqrt(self) -> OpRec
[src]
Performs sqrt
on the tree.
pub fn mul_add<T: Into<OpRec>>(self, mul: T, add: T) -> OpRec
[src]
Performs mul_add
on the tree.
pub fn powi(self, i: i32) -> OpRec
[src]
Performs powi
on the tree.
pub fn sin_cos(self) -> (OpRec, OpRec)
[src]
Performs sin_cos
on the tree.
pub fn log<T: Into<OpRec>>(self, base: T) -> OpRec
[src]
Performs log
on the tree.
pub fn hypot<T: Into<OpRec>>(self, rhs: T) -> OpRec
[src]
Performs hypot
on the tree.
pub fn exp2(self) -> OpRec
[src]
Performs exp2
on the tree.
impl OpRec
[src]
pub fn sin(self) -> OpRec
[src]
Performs sin
on the tree.
pub fn cos(self) -> OpRec
[src]
Performs cos
on the tree.
pub fn tan(self) -> OpRec
[src]
Performs tan
on the tree.
pub fn asin(self) -> OpRec
[src]
Performs asin
on the tree.
pub fn acos(self) -> OpRec
[src]
Performs acos
on the tree.
pub fn atan(self) -> OpRec
[src]
Performs atan
on the tree.
pub fn sinh(self) -> OpRec
[src]
Performs sinh
on the tree.
pub fn cosh(self) -> OpRec
[src]
Performs cosh
on the tree.
pub fn tanh(self) -> OpRec
[src]
Performs tanh
on the tree.
pub fn asinh(self) -> OpRec
[src]
Performs asinh
on the tree.
pub fn acosh(self) -> OpRec
[src]
Performs acosh
on the tree.
pub fn atanh(self) -> OpRec
[src]
Performs atanh
on the tree.
pub fn powf<float: Into<OpRec>>(self, float: float) -> OpRec
[src]
Performs powf
on the tree.
pub fn exp(self) -> OpRec
[src]
Performs exp
on the tree.
pub fn ln(self) -> OpRec
[src]
Performs ln
on the tree.
pub fn abs(self) -> OpRec
[src]
Performs abs
on the tree.
Trait Implementations
impl From<f64> for OpRec
[src]
impl Add<f64> for OpRec
[src]
type Output = OpRec
The resulting type after applying the +
operator.
fn add(self, rhs: f64) -> Self::Output
[src]
Performs the +
operation.
impl Add<OpRec> for f64
[src]
type Output = OpRec
The resulting type after applying the +
operator.
fn add(self, rhs: OpRec) -> Self::Output
[src]
Performs the +
operation.
impl Sub<f64> for OpRec
[src]
type Output = OpRec
The resulting type after applying the -
operator.
fn sub(self, rhs: f64) -> Self::Output
[src]
Performs the -
operation.
impl Sub<OpRec> for f64
[src]
type Output = OpRec
The resulting type after applying the -
operator.
fn sub(self, rhs: OpRec) -> Self::Output
[src]
Performs the -
operation.
impl Mul<f64> for OpRec
[src]
type Output = OpRec
The resulting type after applying the *
operator.
fn mul(self, rhs: f64) -> Self::Output
[src]
Performs the *
operation.
impl Mul<OpRec> for f64
[src]
type Output = OpRec
The resulting type after applying the *
operator.
fn mul(self, rhs: OpRec) -> Self::Output
[src]
Performs the *
operation.
impl Div<f64> for OpRec
[src]
type Output = OpRec
The resulting type after applying the /
operator.
fn div(self, rhs: f64) -> Self::Output
[src]
Performs the /
operation.
impl Div<OpRec> for f64
[src]
type Output = OpRec
The resulting type after applying the /
operator.
fn div(self, rhs: OpRec) -> Self::Output
[src]
Performs the /
operation.
impl AddAssign<f64> for OpRec
[src]
fn add_assign(&mut self, rhs: f64)
[src]
Performs the +=
operation.
impl SubAssign<f64> for OpRec
[src]
fn sub_assign(&mut self, rhs: f64)
[src]
Performs the -=
operation.
impl MulAssign<f64> for OpRec
[src]
fn mul_assign(&mut self, rhs: f64)
[src]
Performs the *=
operation.
impl DivAssign<f64> for OpRec
[src]
fn div_assign(&mut self, rhs: f64)
[src]
Performs the /=
operation.
impl From<f32> for OpRec
[src]
impl Add<f32> for OpRec
[src]
type Output = OpRec
The resulting type after applying the +
operator.
fn add(self, rhs: f32) -> Self::Output
[src]
Performs the +
operation.
impl Add<OpRec> for f32
[src]
type Output = OpRec
The resulting type after applying the +
operator.
fn add(self, rhs: OpRec) -> Self::Output
[src]
Performs the +
operation.
impl Sub<f32> for OpRec
[src]
type Output = OpRec
The resulting type after applying the -
operator.
fn sub(self, rhs: f32) -> Self::Output
[src]
Performs the -
operation.
impl Sub<OpRec> for f32
[src]
type Output = OpRec
The resulting type after applying the -
operator.
fn sub(self, rhs: OpRec) -> Self::Output
[src]
Performs the -
operation.
impl Mul<f32> for OpRec
[src]
type Output = OpRec
The resulting type after applying the *
operator.
fn mul(self, rhs: f32) -> Self::Output
[src]
Performs the *
operation.
impl Mul<OpRec> for f32
[src]
type Output = OpRec
The resulting type after applying the *
operator.
fn mul(self, rhs: OpRec) -> Self::Output
[src]
Performs the *
operation.
impl Div<f32> for OpRec
[src]
type Output = OpRec
The resulting type after applying the /
operator.
fn div(self, rhs: f32) -> Self::Output
[src]
Performs the /
operation.
impl Div<OpRec> for f32
[src]
type Output = OpRec
The resulting type after applying the /
operator.
fn div(self, rhs: OpRec) -> Self::Output
[src]
Performs the /
operation.
impl AddAssign<f32> for OpRec
[src]
fn add_assign(&mut self, rhs: f32)
[src]
Performs the +=
operation.
impl SubAssign<f32> for OpRec
[src]
fn sub_assign(&mut self, rhs: f32)
[src]
Performs the -=
operation.
impl MulAssign<f32> for OpRec
[src]
fn mul_assign(&mut self, rhs: f32)
[src]
Performs the *=
operation.
impl DivAssign<f32> for OpRec
[src]
fn div_assign(&mut self, rhs: f32)
[src]
Performs the /=
operation.
impl From<i8> for OpRec
[src]
impl Add<i8> for OpRec
[src]
type Output = OpRec
The resulting type after applying the +
operator.
fn add(self, rhs: i8) -> Self::Output
[src]
Performs the +
operation.
impl Add<OpRec> for i8
[src]
type Output = OpRec
The resulting type after applying the +
operator.
fn add(self, rhs: OpRec) -> Self::Output
[src]
Performs the +
operation.
impl Sub<i8> for OpRec
[src]
type Output = OpRec
The resulting type after applying the -
operator.
fn sub(self, rhs: i8) -> Self::Output
[src]
Performs the -
operation.
impl Sub<OpRec> for i8
[src]
type Output = OpRec
The resulting type after applying the -
operator.
fn sub(self, rhs: OpRec) -> Self::Output
[src]
Performs the -
operation.
impl Mul<i8> for OpRec
[src]
type Output = OpRec
The resulting type after applying the *
operator.
fn mul(self, rhs: i8) -> Self::Output
[src]
Performs the *
operation.
impl Mul<OpRec> for i8
[src]
type Output = OpRec
The resulting type after applying the *
operator.
fn mul(self, rhs: OpRec) -> Self::Output
[src]
Performs the *
operation.
impl Div<i8> for OpRec
[src]
type Output = OpRec
The resulting type after applying the /
operator.
fn div(self, rhs: i8) -> Self::Output
[src]
Performs the /
operation.
impl Div<OpRec> for i8
[src]
type Output = OpRec
The resulting type after applying the /
operator.
fn div(self, rhs: OpRec) -> Self::Output
[src]
Performs the /
operation.
impl AddAssign<i8> for OpRec
[src]
fn add_assign(&mut self, rhs: i8)
[src]
Performs the +=
operation.
impl SubAssign<i8> for OpRec
[src]
fn sub_assign(&mut self, rhs: i8)
[src]
Performs the -=
operation.
impl MulAssign<i8> for OpRec
[src]
fn mul_assign(&mut self, rhs: i8)
[src]
Performs the *=
operation.
impl DivAssign<i8> for OpRec
[src]
fn div_assign(&mut self, rhs: i8)
[src]
Performs the /=
operation.
impl From<i16> for OpRec
[src]
impl Add<i16> for OpRec
[src]
type Output = OpRec
The resulting type after applying the +
operator.
fn add(self, rhs: i16) -> Self::Output
[src]
Performs the +
operation.
impl Add<OpRec> for i16
[src]
type Output = OpRec
The resulting type after applying the +
operator.
fn add(self, rhs: OpRec) -> Self::Output
[src]
Performs the +
operation.
impl Sub<i16> for OpRec
[src]
type Output = OpRec
The resulting type after applying the -
operator.
fn sub(self, rhs: i16) -> Self::Output
[src]
Performs the -
operation.
impl Sub<OpRec> for i16
[src]
type Output = OpRec
The resulting type after applying the -
operator.
fn sub(self, rhs: OpRec) -> Self::Output
[src]
Performs the -
operation.
impl Mul<i16> for OpRec
[src]
type Output = OpRec
The resulting type after applying the *
operator.
fn mul(self, rhs: i16) -> Self::Output
[src]
Performs the *
operation.
impl Mul<OpRec> for i16
[src]
type Output = OpRec
The resulting type after applying the *
operator.
fn mul(self, rhs: OpRec) -> Self::Output
[src]
Performs the *
operation.
impl Div<i16> for OpRec
[src]
type Output = OpRec
The resulting type after applying the /
operator.
fn div(self, rhs: i16) -> Self::Output
[src]
Performs the /
operation.
impl Div<OpRec> for i16
[src]
type Output = OpRec
The resulting type after applying the /
operator.
fn div(self, rhs: OpRec) -> Self::Output
[src]
Performs the /
operation.
impl AddAssign<i16> for OpRec
[src]
fn add_assign(&mut self, rhs: i16)
[src]
Performs the +=
operation.
impl SubAssign<i16> for OpRec
[src]
fn sub_assign(&mut self, rhs: i16)
[src]
Performs the -=
operation.
impl MulAssign<i16> for OpRec
[src]
fn mul_assign(&mut self, rhs: i16)
[src]
Performs the *=
operation.
impl DivAssign<i16> for OpRec
[src]
fn div_assign(&mut self, rhs: i16)
[src]
Performs the /=
operation.
impl From<i32> for OpRec
[src]
impl Add<i32> for OpRec
[src]
type Output = OpRec
The resulting type after applying the +
operator.
fn add(self, rhs: i32) -> Self::Output
[src]
Performs the +
operation.
impl Add<OpRec> for i32
[src]
type Output = OpRec
The resulting type after applying the +
operator.
fn add(self, rhs: OpRec) -> Self::Output
[src]
Performs the +
operation.
impl Sub<i32> for OpRec
[src]
type Output = OpRec
The resulting type after applying the -
operator.
fn sub(self, rhs: i32) -> Self::Output
[src]
Performs the -
operation.
impl Sub<OpRec> for i32
[src]
type Output = OpRec
The resulting type after applying the -
operator.
fn sub(self, rhs: OpRec) -> Self::Output
[src]
Performs the -
operation.
impl Mul<i32> for OpRec
[src]
type Output = OpRec
The resulting type after applying the *
operator.
fn mul(self, rhs: i32) -> Self::Output
[src]
Performs the *
operation.
impl Mul<OpRec> for i32
[src]
type Output = OpRec
The resulting type after applying the *
operator.
fn mul(self, rhs: OpRec) -> Self::Output
[src]
Performs the *
operation.
impl Div<i32> for OpRec
[src]
type Output = OpRec
The resulting type after applying the /
operator.
fn div(self, rhs: i32) -> Self::Output
[src]
Performs the /
operation.
impl Div<OpRec> for i32
[src]
type Output = OpRec
The resulting type after applying the /
operator.
fn div(self, rhs: OpRec) -> Self::Output
[src]
Performs the /
operation.
impl AddAssign<i32> for OpRec
[src]
fn add_assign(&mut self, rhs: i32)
[src]
Performs the +=
operation.
impl SubAssign<i32> for OpRec
[src]
fn sub_assign(&mut self, rhs: i32)
[src]
Performs the -=
operation.
impl MulAssign<i32> for OpRec
[src]
fn mul_assign(&mut self, rhs: i32)
[src]
Performs the *=
operation.
impl DivAssign<i32> for OpRec
[src]
fn div_assign(&mut self, rhs: i32)
[src]
Performs the /=
operation.
impl From<u8> for OpRec
[src]
impl Add<u8> for OpRec
[src]
type Output = OpRec
The resulting type after applying the +
operator.
fn add(self, rhs: u8) -> Self::Output
[src]
Performs the +
operation.
impl Add<OpRec> for u8
[src]
type Output = OpRec
The resulting type after applying the +
operator.
fn add(self, rhs: OpRec) -> Self::Output
[src]
Performs the +
operation.
impl Sub<u8> for OpRec
[src]
type Output = OpRec
The resulting type after applying the -
operator.
fn sub(self, rhs: u8) -> Self::Output
[src]
Performs the -
operation.
impl Sub<OpRec> for u8
[src]
type Output = OpRec
The resulting type after applying the -
operator.
fn sub(self, rhs: OpRec) -> Self::Output
[src]
Performs the -
operation.
impl Mul<u8> for OpRec
[src]
type Output = OpRec
The resulting type after applying the *
operator.
fn mul(self, rhs: u8) -> Self::Output
[src]
Performs the *
operation.
impl Mul<OpRec> for u8
[src]
type Output = OpRec
The resulting type after applying the *
operator.
fn mul(self, rhs: OpRec) -> Self::Output
[src]
Performs the *
operation.
impl Div<u8> for OpRec
[src]
type Output = OpRec
The resulting type after applying the /
operator.
fn div(self, rhs: u8) -> Self::Output
[src]
Performs the /
operation.
impl Div<OpRec> for u8
[src]
type Output = OpRec
The resulting type after applying the /
operator.
fn div(self, rhs: OpRec) -> Self::Output
[src]
Performs the /
operation.
impl AddAssign<u8> for OpRec
[src]
fn add_assign(&mut self, rhs: u8)
[src]
Performs the +=
operation.
impl SubAssign<u8> for OpRec
[src]
fn sub_assign(&mut self, rhs: u8)
[src]
Performs the -=
operation.
impl MulAssign<u8> for OpRec
[src]
fn mul_assign(&mut self, rhs: u8)
[src]
Performs the *=
operation.
impl DivAssign<u8> for OpRec
[src]
fn div_assign(&mut self, rhs: u8)
[src]
Performs the /=
operation.
impl From<u16> for OpRec
[src]
impl Add<u16> for OpRec
[src]
type Output = OpRec
The resulting type after applying the +
operator.
fn add(self, rhs: u16) -> Self::Output
[src]
Performs the +
operation.
impl Add<OpRec> for u16
[src]
type Output = OpRec
The resulting type after applying the +
operator.
fn add(self, rhs: OpRec) -> Self::Output
[src]
Performs the +
operation.
impl Sub<u16> for OpRec
[src]
type Output = OpRec
The resulting type after applying the -
operator.
fn sub(self, rhs: u16) -> Self::Output
[src]
Performs the -
operation.
impl Sub<OpRec> for u16
[src]
type Output = OpRec
The resulting type after applying the -
operator.
fn sub(self, rhs: OpRec) -> Self::Output
[src]
Performs the -
operation.
impl Mul<u16> for OpRec
[src]
type Output = OpRec
The resulting type after applying the *
operator.
fn mul(self, rhs: u16) -> Self::Output
[src]
Performs the *
operation.
impl Mul<OpRec> for u16
[src]
type Output = OpRec
The resulting type after applying the *
operator.
fn mul(self, rhs: OpRec) -> Self::Output
[src]
Performs the *
operation.
impl Div<u16> for OpRec
[src]
type Output = OpRec
The resulting type after applying the /
operator.
fn div(self, rhs: u16) -> Self::Output
[src]
Performs the /
operation.
impl Div<OpRec> for u16
[src]
type Output = OpRec
The resulting type after applying the /
operator.
fn div(self, rhs: OpRec) -> Self::Output
[src]
Performs the /
operation.
impl AddAssign<u16> for OpRec
[src]
fn add_assign(&mut self, rhs: u16)
[src]
Performs the +=
operation.
impl SubAssign<u16> for OpRec
[src]
fn sub_assign(&mut self, rhs: u16)
[src]
Performs the -=
operation.
impl MulAssign<u16> for OpRec
[src]
fn mul_assign(&mut self, rhs: u16)
[src]
Performs the *=
operation.
impl DivAssign<u16> for OpRec
[src]
fn div_assign(&mut self, rhs: u16)
[src]
Performs the /=
operation.
impl From<u32> for OpRec
[src]
impl Add<u32> for OpRec
[src]
type Output = OpRec
The resulting type after applying the +
operator.
fn add(self, rhs: u32) -> Self::Output
[src]
Performs the +
operation.
impl Add<OpRec> for u32
[src]
type Output = OpRec
The resulting type after applying the +
operator.
fn add(self, rhs: OpRec) -> Self::Output
[src]
Performs the +
operation.
impl Sub<u32> for OpRec
[src]
type Output = OpRec
The resulting type after applying the -
operator.
fn sub(self, rhs: u32) -> Self::Output
[src]
Performs the -
operation.
impl Sub<OpRec> for u32
[src]
type Output = OpRec
The resulting type after applying the -
operator.
fn sub(self, rhs: OpRec) -> Self::Output
[src]
Performs the -
operation.
impl Mul<u32> for OpRec
[src]
type Output = OpRec
The resulting type after applying the *
operator.
fn mul(self, rhs: u32) -> Self::Output
[src]
Performs the *
operation.
impl Mul<OpRec> for u32
[src]
type Output = OpRec
The resulting type after applying the *
operator.
fn mul(self, rhs: OpRec) -> Self::Output
[src]
Performs the *
operation.
impl Div<u32> for OpRec
[src]
type Output = OpRec
The resulting type after applying the /
operator.
fn div(self, rhs: u32) -> Self::Output
[src]
Performs the /
operation.
impl Div<OpRec> for u32
[src]
type Output = OpRec
The resulting type after applying the /
operator.
fn div(self, rhs: OpRec) -> Self::Output
[src]
Performs the /
operation.
impl AddAssign<u32> for OpRec
[src]
fn add_assign(&mut self, rhs: u32)
[src]
Performs the +=
operation.
impl SubAssign<u32> for OpRec
[src]
fn sub_assign(&mut self, rhs: u32)
[src]
Performs the -=
operation.
impl MulAssign<u32> for OpRec
[src]
fn mul_assign(&mut self, rhs: u32)
[src]
Performs the *=
operation.
impl DivAssign<u32> for OpRec
[src]
fn div_assign(&mut self, rhs: u32)
[src]
Performs the /=
operation.
impl Add for OpRec
[src]
type Output = OpRec
The resulting type after applying the +
operator.
fn add(self, rhs: OpRec) -> Self::Output
[src]
Performs the +
operation.
impl Sub for OpRec
[src]
type Output = OpRec
The resulting type after applying the -
operator.
fn sub(self, rhs: OpRec) -> Self::Output
[src]
Performs the -
operation.
impl Mul for OpRec
[src]
type Output = OpRec
The resulting type after applying the *
operator.
fn mul(self, rhs: OpRec) -> Self::Output
[src]
Performs the *
operation.
impl Div for OpRec
[src]
type Output = OpRec
The resulting type after applying the /
operator.
fn div(self, rhs: OpRec) -> Self::Output
[src]
Performs the /
operation.
impl AddAssign for OpRec
[src]
fn add_assign(&mut self, rhs: OpRec)
[src]
Performs the +=
operation.
impl SubAssign for OpRec
[src]
fn sub_assign(&mut self, rhs: OpRec)
[src]
Performs the -=
operation.
impl MulAssign for OpRec
[src]
fn mul_assign(&mut self, rhs: OpRec)
[src]
Performs the *=
operation.
impl DivAssign for OpRec
[src]
fn div_assign(&mut self, rhs: OpRec)
[src]
Performs the /=
operation.
impl Debug for OpRec
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for OpRec
[src]
fn clone(&self) -> OpRec
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more