pub fn compute_grad(&mut self) -> FailResult<Vec<V3>>
    {Ok({
        self.update_computation()?;

        let mut grad = self.compute_force()?;
        for v in &mut grad {
            *v *= -1.0;
        }
        grad
    })}
/// Get the gradient, possibly performing some computations if necessary.
Get the gradient, possibly performing some computations if necessary.
Get the gradient possibly performing some computations if necessary .
pub fn compute_grad(&mut self) -> FailResult<Vec<V3>>
    {Ok({
        self.update_computation()?;
        let mut grad = self.compute_force()?;
        for v in &mut grad {
            *v *= -1.0;
        }
        grad
    })}
pub fn compute_grad ( & mut self ) -> FailResult < Vec < V3 > > { Ok ( { self . update_computation ( ) ? ; let mut grad = self . compute_force ( ) ? ; for v in & mut grad { * v *= - 1.0 ; } grad } ) }
Get the gradient, possibly performing some computations if necessary.
Get the gradient possibly performing some computations if necessary .
&mut self
&mut self