round_rrule

Function round_rrule 

Source
pub fn round_rrule<R: Float>(_x: R, _cotangent: R) -> R
Expand description

Reverse rule for round.

The cotangent is always zero.

ยงExamples

use chainrules::round_rrule;

assert_eq!(round_rrule(1.0_f64, 0.5), 0.0);