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

Function broadcast

ciphercore-base/src/ops/long_division.rs:181–188  ·  view source on GitHub ↗
(node: Node, want_type: Type)

Source from the content-addressed store, hash-verified

179}
180
181fn broadcast(node: Node, want_type: Type) -> Result<Node> {
182 let g = node.get_graph();
183 if node.get_type()? == want_type {
184 Ok(node)
185 } else {
186 g.zeros(want_type)?.add(node)
187 }
188}
189
190fn single_iteration_graph(context: &Context, types: Types) -> Result<Graph> {
191 // In the state we store (remainder, abs(divisor), -abs(divisor)), with bits dimension pulled

Callers 1

single_iteration_graphFunction · 0.85

Calls 4

zerosMethod · 0.80
get_graphMethod · 0.45
get_typeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected