function createFloatArray2d(rows, cols) {
  return Array.from({ length: rows }, _ => new Float32Array(cols));
}
              
              
              1 Like
            
                
            
          function createFloatArray2d(rows, cols) {
  return Array.from({ length: rows }, _ => new Float32Array(cols));
}