MCPcopy Index your code
hub / github.com/ciphermodelabs/ciphercore / create_tuple

Method create_tuple

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

Adds a node that creates a tuple from several (possibly, zero) elements. # Arguments `elements` - vector of nodes # Returns New node with a tuple # 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 = array_type(vec![3, 2, 3], INT32); let t2 = array_typ

(&self, elements: Vec<Node>)

Source from the content-addressed store, hash-verified

2730 /// let n3 = g.create_tuple(vec![n1,n2]).unwrap();
2731 /// ```
2732 pub fn create_tuple(&self, elements: Vec<Node>) -> Result<Node> {
2733 self.add_node(elements, vec![], Operation::CreateTuple)
2734 }
2735
2736 /// Adds a node that creates a vector from several (possibly, zero) elements of the same type.
2737 ///

Callers 15

test_create_tuple_workerFunction · 0.45
instantiateMethod · 0.45
test_wellformed_casesFunction · 0.45
call_iterate_testFunction · 0.45
test_malformed_contextsFunction · 0.45
custom_reduce_vec_helperFunction · 0.45
instantiateMethod · 0.45
instantiateMethod · 0.45
single_iteration_graphFunction · 0.45
test_broadcast_divisorFunction · 0.45
test_broadcast_dividendFunction · 0.45

Calls 1

add_nodeMethod · 0.80

Tested by 15

test_create_tuple_workerFunction · 0.36
test_wellformed_casesFunction · 0.36
call_iterate_testFunction · 0.36
test_malformed_contextsFunction · 0.36
test_broadcast_divisorFunction · 0.36
test_broadcast_dividendFunction · 0.36
test_well_formedFunction · 0.36
test_vectorFunction · 0.36
test_permutationFunction · 0.36
test_duplicationFunction · 0.36