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

Method matmul

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

Adds a node to the parent graph that computes the matrix product of two arrays associated with the node and another node. Applies [Graph::matmul] 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 t1 = arra

(&self, b: Node)

Source from the content-addressed store, hash-verified

671 /// let n3 = n1.matmul(n2).unwrap();
672 /// ```
673 pub fn matmul(&self, b: Node) -> Result<Node> {
674 self.get_graph().matmul(self.clone(), b)
675 }
676
677 /// Adds a node to the parent graph that computes the generatl matrix product of two arrays associated with the node and another node.
678 ///

Callers 12

test_matmul_workerFunction · 0.45
test_matmul_worker_failFunction · 0.45
test_wellformed_casesFunction · 0.45
test_resharingFunction · 0.45
test_resharingFunction · 0.45
bilinear_productFunction · 0.45
gemm_helper_randomFunction · 0.45
combineMethod · 0.45

Calls 3

cloneMethod · 0.80
add_nodeMethod · 0.80
get_graphMethod · 0.45

Tested by 6

test_matmul_workerFunction · 0.36
test_matmul_worker_failFunction · 0.36
test_wellformed_casesFunction · 0.36
test_resharingFunction · 0.36
test_resharingFunction · 0.36