fn put_dot_product(
        &mut self,
        arg: Handle<crate::Expression>,
        arg1: Handle<crate::Expression>,
        size: usize,
    ) -> BackendResult {
        write!(self.out, "(")?;

        let arg0_name = &self.named_expressions[&arg];
        let arg1_name = &self.named_expressions[&arg1];

        // This will print an extra '+' at the beginning but that is fine in msl
        for index in 0..size {
            let component = back::COMPONENTS[index];
            write!(
                self.out,
                " + {}.{} * {}.{}",
                arg0_name, component, arg1_name, component
            )?;
        }

        write!(self.out, ")")?;
        Ok(())
    }
/// Emit code for the arithmetic expression of the dot product.
///
Emit code for the arithmetic expression of the dot product.
Emit code for the arithmetic expression of the dot product .
fn put_dot_product(
        &mut self,
        arg: Handle<crate::Expression>,
        arg1: Handle<crate::Expression>,
        size: usize,
    ) -> BackendResult {
        write!(self.out, "(")?;
        let arg0_name = &self.named_expressions[&arg];
        let arg1_name = &self.named_expressions[&arg1];
        // This will print an extra '+' at the beginning but that is fine in msl
        for index in 0..size {
            let component = back::COMPONENTS[index];
            write!(
                self.out,
                " + {}.{} * {}.{}",
                arg0_name, component, arg1_name, component
            )?;
        }
        write!(self.out, ")")?;
        Ok(())
    }
fn put_dot_product ( & mut self , arg : Handle < crate :: Expression > , arg1 : Handle < crate :: Expression > , size : usize , ) -> BackendResult { write ! ( self out " " ) ? ; let arg0_name = & self . named_expressions [ & arg ] ; let arg1_name = & self . named_expressions [ & arg1 ] ; // This will print an extra '+' at the beginning but that is fine in msl for index in 0 .. size { let component = back :: COMPONENTS [ index ] ; write ! ( self out " " arg0_name component arg1_name component ) ? ; } write ! ( self out " " ) ? ; Ok ( ( ) ) }
Emit code for the arithmetic expression of the dot product.
Emit code for the arithmetic expression of the dot product .
&mut self
arg
Handle<crate::Expression>
arg1
Handle<crate::Expression>
size
usize
&mut self
arg
Handle<crate::Expression>
arg1
Handle<crate::Expression>
size
usize