Struct dorset::core::var::Var
[−]
[src]
pub struct Var { pub vi_: Rc<*mut Vari>, }
Fields
vi_: Rc<*mut Vari>
Methods
impl Var
[src]
pub fn new(vi: Rc<*mut Vari>) -> Var
[src]
pub fn val(&self) -> Real
[src]
pub fn adj(&self) -> Real
[src]
pub fn grad(&self)
[src]
pub fn get_vari_refmut<'a>(&self) -> &'a mut Vari
[src]
pub fn get_vari_ref<'a>(&self) -> &'a Vari
[src]
pub fn set_zero_all_adjoints(&self)
[src]
Trait Implementations
impl Debug for Var
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl OpLn for Var
[src]
impl OpSin for Var
[src]
impl OpCos for Var
[src]
impl<'a, 'b> Add<&'a Real> for &'b Var
[src]
type Output = Var
The resulting type after applying the +
operator.
fn add(self, other: &'a Real) -> Var
[src]
Performs the +
operation.
impl<'a> Add<&'a Real> for Var
[src]
type Output = Var
The resulting type after applying the +
operator.
fn add(self, other: &'a Real) -> Var
[src]
Performs the +
operation.
impl<'b> Add<Real> for &'b Var
[src]
type Output = Var
The resulting type after applying the +
operator.
fn add(self, other: Real) -> Var
[src]
Performs the +
operation.
impl Add<Real> for Var
[src]
type Output = Var
The resulting type after applying the +
operator.
fn add(self, other: Real) -> Var
[src]
Performs the +
operation.
impl<'a, 'b> Add<&'a Var> for &'b Real
[src]
type Output = Var
The resulting type after applying the +
operator.
fn add(self, other: &'a Var) -> Var
[src]
Performs the +
operation.
impl<'a> Add<&'a Var> for Real
[src]
type Output = Var
The resulting type after applying the +
operator.
fn add(self, other: &'a Var) -> Var
[src]
Performs the +
operation.
impl Add<Var> for Real
[src]
type Output = Var
The resulting type after applying the +
operator.
fn add(self, other: Var) -> Var
[src]
Performs the +
operation.
impl<'a, 'b> Add<&'a Var> for &'b Var
[src]
type Output = Var
The resulting type after applying the +
operator.
fn add(self, other: &'a Var) -> Var
[src]
Performs the +
operation.
impl<'b> Add<Var> for &'b Var
[src]
type Output = Var
The resulting type after applying the +
operator.
fn add(self, other: Var) -> Var
[src]
Performs the +
operation.
impl<'a> Add<&'a Var> for Var
[src]
type Output = Var
The resulting type after applying the +
operator.
fn add(self, other: &'a Var) -> Var
[src]
Performs the +
operation.
impl Add<Var> for Var
[src]
type Output = Var
The resulting type after applying the +
operator.
fn add(self, other: Var) -> Var
[src]
Performs the +
operation.
impl<'a, 'b> Sub<&'a Real> for &'b Var
[src]
type Output = Var
The resulting type after applying the -
operator.
fn sub(self, other: &'a Real) -> Var
[src]
Performs the -
operation.
impl<'a> Sub<&'a Real> for Var
[src]
type Output = Var
The resulting type after applying the -
operator.
fn sub(self, other: &'a Real) -> Var
[src]
Performs the -
operation.
impl<'b> Sub<Real> for &'b Var
[src]
type Output = Var
The resulting type after applying the -
operator.
fn sub(self, other: Real) -> Var
[src]
Performs the -
operation.
impl Sub<Real> for Var
[src]
type Output = Var
The resulting type after applying the -
operator.
fn sub(self, other: Real) -> Var
[src]
Performs the -
operation.
impl<'a, 'b> Sub<&'a Var> for &'b Real
[src]
type Output = Var
The resulting type after applying the -
operator.
fn sub(self, other: &'a Var) -> Var
[src]
Performs the -
operation.
impl<'a> Sub<&'a Var> for Real
[src]
type Output = Var
The resulting type after applying the -
operator.
fn sub(self, other: &'a Var) -> Var
[src]
Performs the -
operation.
impl Sub<Var> for Real
[src]
type Output = Var
The resulting type after applying the -
operator.
fn sub(self, other: Var) -> Var
[src]
Performs the -
operation.
impl<'a, 'b> Sub<&'a Var> for &'b Var
[src]
type Output = Var
The resulting type after applying the -
operator.
fn sub(self, other: &'a Var) -> Var
[src]
Performs the -
operation.
impl<'b> Sub<Var> for &'b Var
[src]
type Output = Var
The resulting type after applying the -
operator.
fn sub(self, other: Var) -> Var
[src]
Performs the -
operation.
impl<'a> Sub<&'a Var> for Var
[src]
type Output = Var
The resulting type after applying the -
operator.
fn sub(self, other: &'a Var) -> Var
[src]
Performs the -
operation.
impl Sub<Var> for Var
[src]
type Output = Var
The resulting type after applying the -
operator.
fn sub(self, other: Var) -> Var
[src]
Performs the -
operation.
impl<'a, 'b> Mul<&'a Real> for &'b Var
[src]
type Output = Var
The resulting type after applying the *
operator.
fn mul(self, other: &'a Real) -> Var
[src]
Performs the *
operation.
impl<'a> Mul<&'a Real> for Var
[src]
type Output = Var
The resulting type after applying the *
operator.
fn mul(self, other: &'a Real) -> Var
[src]
Performs the *
operation.
impl<'b> Mul<Real> for &'b Var
[src]
type Output = Var
The resulting type after applying the *
operator.
fn mul(self, other: Real) -> Var
[src]
Performs the *
operation.
impl Mul<Real> for Var
[src]
type Output = Var
The resulting type after applying the *
operator.
fn mul(self, other: Real) -> Var
[src]
Performs the *
operation.
impl<'a, 'b> Mul<&'a Var> for &'b Real
[src]
type Output = Var
The resulting type after applying the *
operator.
fn mul(self, other: &'a Var) -> Var
[src]
Performs the *
operation.
impl<'a> Mul<&'a Var> for Real
[src]
type Output = Var
The resulting type after applying the *
operator.
fn mul(self, other: &'a Var) -> Var
[src]
Performs the *
operation.
impl Mul<Var> for Real
[src]
type Output = Var
The resulting type after applying the *
operator.
fn mul(self, other: Var) -> Var
[src]
Performs the *
operation.
impl<'a, 'b> Mul<&'a Var> for &'b Var
[src]
type Output = Var
The resulting type after applying the *
operator.
fn mul(self, other: &'a Var) -> Var
[src]
Performs the *
operation.
impl<'b> Mul<Var> for &'b Var
[src]
type Output = Var
The resulting type after applying the *
operator.
fn mul(self, other: Var) -> Var
[src]
Performs the *
operation.
impl<'a> Mul<&'a Var> for Var
[src]
type Output = Var
The resulting type after applying the *
operator.
fn mul(self, other: &'a Var) -> Var
[src]
Performs the *
operation.
impl Mul<Var> for Var
[src]
type Output = Var
The resulting type after applying the *
operator.
fn mul(self, other: Var) -> Var
[src]
Performs the *
operation.
impl<'a, 'b> Div<&'a Real> for &'b Var
[src]
type Output = Var
The resulting type after applying the /
operator.
fn div(self, other: &'a Real) -> Var
[src]
Performs the /
operation.
impl<'a> Div<&'a Real> for Var
[src]
type Output = Var
The resulting type after applying the /
operator.
fn div(self, other: &'a Real) -> Var
[src]
Performs the /
operation.
impl<'b> Div<Real> for &'b Var
[src]
type Output = Var
The resulting type after applying the /
operator.
fn div(self, other: Real) -> Var
[src]
Performs the /
operation.
impl Div<Real> for Var
[src]
type Output = Var
The resulting type after applying the /
operator.
fn div(self, other: Real) -> Var
[src]
Performs the /
operation.
impl<'a, 'b> Div<&'a Var> for &'b Real
[src]
type Output = Var
The resulting type after applying the /
operator.
fn div(self, other: &'a Var) -> Var
[src]
Performs the /
operation.
impl<'a> Div<&'a Var> for Real
[src]
type Output = Var
The resulting type after applying the /
operator.
fn div(self, other: &'a Var) -> Var
[src]
Performs the /
operation.
impl Div<Var> for Real
[src]
type Output = Var
The resulting type after applying the /
operator.
fn div(self, other: Var) -> Var
[src]
Performs the /
operation.
impl<'a, 'b> Div<&'a Var> for &'b Var
[src]
type Output = Var
The resulting type after applying the /
operator.
fn div(self, other: &'a Var) -> Var
[src]
Performs the /
operation.
impl<'b> Div<Var> for &'b Var
[src]
type Output = Var
The resulting type after applying the /
operator.
fn div(self, other: Var) -> Var
[src]
Performs the /
operation.
impl<'a> Div<&'a Var> for Var
[src]
type Output = Var
The resulting type after applying the /
operator.
fn div(self, other: &'a Var) -> Var
[src]
Performs the /
operation.
impl Div<Var> for Var
[src]
type Output = Var
The resulting type after applying the /
operator.
fn div(self, other: Var) -> Var
[src]
Performs the /
operation.