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

Method a2b

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

Adds a node to the parent graph converting an integer array or scalar associated with the node to the binary form. Applies [Graph::a2b] to the parent graph and `this` node. # Example ``` # use ciphercore_base::graphs::create_context; # use ciphercore_base::data_types::{array_type, INT32}; let c = create_context().unwrap(); let g = c.create_graph().unwrap(); let t = array_type(vec![3, 2], INT32)

(&self)

Source from the content-addressed store, hash-verified

1055 /// let n2 = n1.a2b().unwrap();
1056 /// ```
1057 pub fn a2b(&self) -> Result<Node> {
1058 self.get_graph().a2b(self.clone())
1059 }
1060
1061 /// Adds a node to the parent graph converting a binary array associated with the node to an array of a given scalar type.
1062 ///

Callers 15

test_a2b_workerFunction · 0.45
test_a2b_worker_failFunction · 0.45
test_wellformed_casesFunction · 0.45
test_broadcast_divisorFunction · 0.45
test_broadcast_dividendFunction · 0.45
long_division_helperFunction · 0.45
binary_helperFunction · 0.45
instantiateMethod · 0.45
integer_to_bitsFunction · 0.45
test_well_formedFunction · 0.45

Calls 3

cloneMethod · 0.80
add_nodeMethod · 0.80
get_graphMethod · 0.45

Tested by 15

test_a2b_workerFunction · 0.36
test_a2b_worker_failFunction · 0.36
test_wellformed_casesFunction · 0.36
test_broadcast_divisorFunction · 0.36
test_broadcast_dividendFunction · 0.36
binary_helperFunction · 0.36
test_well_formedFunction · 0.36
test_malformedFunction · 0.36
test_resharingFunction · 0.36
test_prf_idFunction · 0.36
test_resharingFunction · 0.36