MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / mixed_multiply

Method mixed_multiply

ciphercore-base/src/graphs.rs:632–634  ·  view source on GitHub ↗

Adds a node to the parent graph that multiplies elementwise the array or scalar associated with the node by a binary array or scalar associated with another node. Applies [Graph::mixed_multiply] to the parent graph, `this` node and the `b` node. # Example ``` # use ciphercore_base::graphs::create_context; # use ciphercore_base::data_types::{BIT, INT32, scalar_type}; let c = create_context().unw

(&self, b: Node)

Source from the content-addressed store, hash-verified

630 /// let n3 = n1.mixed_multiply(n2).unwrap();
631 /// ```
632 pub fn mixed_multiply(&self, b: Node) -> Result<Node> {
633 self.get_graph().mixed_multiply(self.clone(), b)
634 }
635
636 /// Adds a node to the parent graph that computes the dot product of arrays or scalars associated with the node and another node.
637 ///

Callers 13

mixed_multiply_helperFunction · 0.45
instantiateMethod · 0.45
single_bit_to_arithmeticFunction · 0.45
instantiateMethod · 0.45
create_approximationFunction · 0.45
tree_retrieveFunction · 0.45
instantiateMethod · 0.45
select_nodeFunction · 0.45
get_select_graphFunction · 0.45
gen_multi_bit_sort_graphFunction · 0.45
bilinear_productFunction · 0.45

Calls 3

cloneMethod · 0.80
add_nodeMethod · 0.80
get_graphMethod · 0.45

Tested by

no test coverage detected