pub struct Divide {}Expand description
Divide two or more inputs.
Implementations§
Source§impl Divide
impl Divide
Sourcepub fn new<T>() -> Node<T>
pub fn new<T>() -> Node<T>
Generate a new division operation
§Example
use sac_base::operations::math::divide::{Divide, IntegerDivide};
let mut div = Divide::new();
let mut vec = Vec::new();
vec.push(&[2.0][..]);
vec.push(&[4.0][..]);
vec.push(&[0.5][..]);
div.process((vec, 1));
assert_eq!(div.poll(), &[1.0][..]);TODO: Zero divisions currently return INF and is not defined for integer values. These have to be specifically implemented
Auto Trait Implementations§
impl Freeze for Divide
impl RefUnwindSafe for Divide
impl Send for Divide
impl Sync for Divide
impl Unpin for Divide
impl UnsafeUnpin for Divide
impl UnwindSafe for Divide
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more