pub struct Multiply {}Expand description
Multiplies two or more inputs.
Implementations§
Source§impl Multiply
impl Multiply
Sourcepub fn new<T>() -> Node<T>
pub fn new<T>() -> Node<T>
Generate a new mutliplication operation
§Example
use sac_base::operations::math::multiply::Multiply;
let mut mul = Multiply::new();
let mut vec = Vec::new();
vec.push(&[2.0][..]);
vec.push(&[4.0][..]);
vec.push(&[0.5][..]);
mul.process((vec, 1));
assert_eq!(mul.poll(), &[4.0][..]);Auto Trait Implementations§
impl Freeze for Multiply
impl RefUnwindSafe for Multiply
impl Send for Multiply
impl Sync for Multiply
impl Unpin for Multiply
impl UnsafeUnpin for Multiply
impl UnwindSafe for Multiply
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