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

Function gen_a2b_graph

ciphercore-base/src/bin/ciphercore_a2b.rs:28–35  ·  view source on GitHub ↗
(context: Context, k: u32, st: ScalarType)

Source from the content-addressed store, hash-verified

26}
27
28fn gen_a2b_graph(context: Context, k: u32, st: ScalarType) -> Result<Graph> {
29 let graph = context.create_graph()?;
30 let n = 2u64.pow(k);
31 let i = graph.input(array_type(vec![n], st))?;
32 graph.set_output_node(i.a2b()?)?;
33 graph.finalize()?;
34 Ok(graph)
35}
36
37fn gen_b2a_graph(context: Context, k: u32, st: ScalarType) -> Result<Graph> {
38 let graph = context.create_graph()?;

Callers 1

mainFunction · 0.85

Calls 6

array_typeFunction · 0.50
create_graphMethod · 0.45
inputMethod · 0.45
set_output_nodeMethod · 0.45
a2bMethod · 0.45
finalizeMethod · 0.45

Tested by

no test coverage detected