Skip to main content

negate

Function negate 

Source
pub fn negate(e: &mut [f64])
Expand description

Negates the valid expansion e in place. Negation is exact and keeps the invariants.

ยงExamples

use implicit_predicates_core::expansion;

let mut e = [1e-20, -1.0];
expansion::negate(&mut e);
assert_eq!(e, [-1e-20, 1.0]);