Adds a node creating a constant of a given type and value. # Arguments `output_type` - type of a constant `value` - value of a constant # Returns New constant node # Example ``` # use ciphercore_base::graphs::create_context; # use ciphercore_base::data_types::{BIT, scalar_type}; # use ciphercore_base::data_values::Value; let c = create_context().unwrap(); let g = c.create_graph().unwrap(); l
(&self, output_type: Type, value: Value)
| 2648 | /// let n = g.constant(t, v).unwrap(); |
| 2649 | /// ``` |
| 2650 | pub fn constant(&self, output_type: Type, value: Value) -> Result<Node> { |
| 2651 | self.add_node(vec![], vec![], Operation::Constant(output_type, value)) |
| 2652 | } |
| 2653 | |
| 2654 | /// Adds a node converting an integer array or scalar to the binary form. |
| 2655 | /// |