[−][src]Function concrete_lib::operators::math::tensor::read_in_file_ftorus
pub fn read_in_file_ftorus(tensor: &mut [FTorus], path: &str) -> Result<()>
Reads in a compact way a tensor of FTorus elements inside a file
Arguments
tensor
- FTorus slice (output)path
- string containing the path of the file we read in
Example
use concrete_lib::operators::math::tensor; use concrete_lib::types::FTorus; // setting let size: usize = 128; // create a tensor let mut tensor: Vec<FTorus> = vec![0.; size]; // reads in a file tensor::read_in_file_ftorus(&mut tensor, "test_read_write_ftorus.txt");