reset_array function

Reset input 3d-array by filling matrix along first dimension