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

Method concatenate

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

Adds a node that joins a sequence of arrays along a given axis. This operation is similar to [the NumPy concatenate](https://numpy.org/doc/stable/reference/generated/numpy.concatenate.html). The input arrays should have the same shape except in the given axis. # Arguments `nodes` - vector of nodes containing arrays `axis` - axis along which the above arrays are joined # Returns New Concatenat

(&self, nodes: Vec<Node>, axis: u64)

Source from the content-addressed store, hash-verified

2621 /// let n3 = g.concatenate(vec![n1,n2], 2).unwrap();
2622 /// ```
2623 pub fn concatenate(&self, nodes: Vec<Node>, axis: u64) -> Result<Node> {
2624 self.add_node(nodes, vec![], Operation::Concatenate(axis))
2625 }
2626
2627 /// Adds a node creating a constant of a given type and value.
2628 ///

Callers 15

test_concatenate_workerFunction · 0.80
extend_with_zerosFunction · 0.80
cumulative_orFunction · 0.80
single_iteration_graphFunction · 0.80
add_oneFunction · 0.80
interleaveFunction · 0.80
i64_to_i128Function · 0.80
instantiateMethod · 0.80
concatenate_mpcFunction · 0.80
random_pad_columnsFunction · 0.80
zero_pad_columnFunction · 0.80

Calls 1

add_nodeMethod · 0.80

Tested by 2

test_concatenate_workerFunction · 0.64