pub fn estimate_memory_usage<T>(shape: &[usize], numarrays: usize) -> usize
Estimate memory usage for an operation