Function concrete_core::math::random::fill_with_random_uniform_boolean [−][src]
pub fn fill_with_random_uniform_boolean<Scalar, Tensorable>(
output: &mut Tensorable
) where
Scalar: RandomGenerable<UniformBoolean>,
Tensorable: AsMutTensor<Element = Scalar>,
Fills an AsMutTensor
value with random boolean values.
Example
use concrete_core::math::tensor::Tensor; use concrete_core::math::random::fill_with_random_uniform_boolean; let mut tensor = Tensor::allocate(false, 100); fill_with_random_uniform_boolean(&mut tensor);