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

Method dot

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

Adds a node to the parent graph that computes the dot product of arrays or scalars associated with the node and another node. Applies [Graph::dot] to the parent graph, `this` node and the `b` node. # Example ``` # use ciphercore_base::graphs::create_context; # use ciphercore_base::data_types::{INT32, array_type}; let c = create_context().unwrap(); let g = c.create_graph().unwrap(); let t = arra

(&self, b: Node)

Source from the content-addressed store, hash-verified

650 /// let n3 = n1.dot(n2).unwrap();
651 /// ```
652 pub fn dot(&self, b: Node) -> Result<Node> {
653 self.get_graph().dot(self.clone(), b)
654 }
655
656 /// Adds a node to the parent graph that computes the matrix product of two arrays associated with the node and another node.
657 ///

Callers 7

test_dot_workerFunction · 0.45
test_dot_worker_failFunction · 0.45
test_wellformed_casesFunction · 0.45
instantiateMethod · 0.45
bilinear_productFunction · 0.45

Calls 3

cloneMethod · 0.80
add_nodeMethod · 0.80
get_graphMethod · 0.45

Tested by 4

test_dot_workerFunction · 0.36
test_dot_worker_failFunction · 0.36
test_wellformed_casesFunction · 0.36