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

Method multiply

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

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

(&self, b: Node)

Source from the content-addressed store, hash-verified

609 /// let n3 = n1.multiply(n2).unwrap();
610 /// ```
611 pub fn multiply(&self, b: Node) -> Result<Node> {
612 self.get_graph().multiply(self.clone(), b)
613 }
614
615 /// 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.
616 ///

Callers 15

test_instantiation_passFunction · 0.45
test_wellformed_casesFunction · 0.45
call_iterate_testFunction · 0.45
instantiateMethod · 0.45
multiply_fixed_pointFunction · 0.45
cumulative_orFunction · 0.45
reduce_mulFunction · 0.45
joinMethod · 0.45
less_thanMethod · 0.45
greater_thanMethod · 0.45
instantiateMethod · 0.45

Calls 3

cloneMethod · 0.80
add_nodeMethod · 0.80
get_graphMethod · 0.45

Tested by 7

test_instantiation_passFunction · 0.36
test_wellformed_casesFunction · 0.36
call_iterate_testFunction · 0.36
test_inline_call_simpleFunction · 0.36
test_dangling_nodesFunction · 0.36