Numerical computing and tensor library for Rust, in the role of NumPy: n-dimensional arrays, linear algebra, FFT, statistics and autograd on CPU, CUDA and WebGPU
usecrate::runtime::cpu::CpuRuntime;usecrate::tensor::Tensor;/// Raw bit pattern of every element — no tolerance, no rounding.
pub(super)fnbits(tensor:&Tensor<CpuRuntime>)->Vec<u32>{
tensor.to_vec::<f32>().iter().map(|v|v.to_bits()).collect()}