Adds a node that creates a vector from several (possibly, zero) elements of the same type. # Arguments `elements` - vector of nodes # Returns New node with a created vector # 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, 3],
(&self, element_type: Type, elements: Vec<Node>)
| 2756 | /// let n3 = g.create_vector(t, vec![n1,n2]).unwrap(); |
| 2757 | /// ``` |
| 2758 | pub fn create_vector(&self, element_type: Type, elements: Vec<Node>) -> Result<Node> { |
| 2759 | self.add_node(elements, vec![], Operation::CreateVector(element_type)) |
| 2760 | } |
| 2761 | |
| 2762 | /// Adds a node that creates a named tuple from several (possibly, zero) elements. |
| 2763 | /// |