Creates a GridArray1d instance given the dimensions of the grid. Use createArray if you just want to create an array sized for a grid.
Behind the scenes, it runs:
const arr = createArray(initialValue, grid);return wrapMutable(arr, grid); Copy
const arr = createArray(initialValue, grid);return wrapMutable(arr, grid);
Creates a GridArray1d instance given the dimensions of the grid. Use createArray if you just want to create an array sized for a grid.
Behind the scenes, it runs: