numr 0.15.1

High-performance numerical computing with multi-backend GPU acceleration (CPU/CUDA/WebGPU)
Documentation
1
2
3
4
5
6
7
use crate::runtime::cpu::CpuRuntime;
use crate::tensor::Tensor;

/// Raw bit pattern of every element — no tolerance, no rounding.
pub(super) fn bits(tensor: &Tensor<CpuRuntime>) -> Vec<u32> {
    tensor.to_vec::<f32>().iter().map(|v| v.to_bits()).collect()
}