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

Method cum_sum

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

Adds a node to the parent graph that computes the cumulative sum of elements along a given axis. Applies [Graph::cum_sum] to the parent graph, `this` node and `axis`. # 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 t = array_type(vec![3, 2], INT32); let

(&self, axis: u64)

Source from the content-addressed store, hash-verified

933 /// let n2 = n1.cum_sum(1).unwrap();
934 /// ```
935 pub fn cum_sum(&self, axis: u64) -> Result<Node> {
936 self.get_graph().cum_sum(self.clone(), axis)
937 }
938
939 /// Adds a node to the parent graph that permutes the array associated with the node along given axes.
940 ///

Callers 4

test_cum_sumFunction · 0.80
compute_naive_aucFunction · 0.80
gen_multi_bit_sort_graphFunction · 0.80
test_cum_sumFunction · 0.80

Calls 3

cloneMethod · 0.80
add_nodeMethod · 0.80
get_graphMethod · 0.45

Tested by 2

test_cum_sumFunction · 0.64
test_cum_sumFunction · 0.64