Adds a node to the parent graph that divides a scalar or each entry of the array associated with the node by a positive constant integer `scale`. Applies [Graph::add] to the parent graph, `this` node and `scale`. # 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(
(&self, scale: u128)
| 894 | /// let n2 = n1.truncate(4).unwrap(); |
| 895 | /// ``` |
| 896 | pub fn truncate(&self, scale: u128) -> Result<Node> { |
| 897 | self.get_graph().truncate(self.clone(), scale) |
| 898 | } |
| 899 | |
| 900 | /// Adds a node to the parent graph that computes the sum of entries of the array associated with the node along given axes. |
| 901 | /// |