Array2.create kind layout dim1 dim2 returns a new bigarray of
two dimension, whose size is dim1 in the first dimension
and dim2 in the second dimension. kind and layout
determine the array element kind and the array layout
as described for Bigarray.Genarray.create.

Array2.get a x y, also written a.{x,y},
returns the element of a at coordinates (x, y).
x and y must be within the bounds
of a, as described for Bigarray.Genarray.get;
otherwise, Invalid_argument is raised.

Array2.set a x y v, or alternatively a.{x,y} <- v,
stores the value v at coordinates (x, y) in a.
x and y must be within the bounds of a,
as described for Bigarray.Genarray.set;
otherwise, Invalid_argument is raised.

Extract a two-dimensional sub-array of the given two-dimensional
big array by restricting the first dimension.
See Bigarray.Genarray.sub_left for more details.
Array2.sub_left applies only to arrays with C layout.

Extract a two-dimensional sub-array of the given two-dimensional
big array by restricting the second dimension.
See Bigarray.Genarray.sub_right for more details.
Array2.sub_right applies only to arrays with Fortran layout.

Extract a row (one-dimensional slice) of the given two-dimensional
big array. The integer parameter is the index of the row to
extract. See Bigarray.Genarray.slice_left for more details.
Array2.slice_left applies only to arrays with C layout.

Extract a column (one-dimensional slice) of the given
two-dimensional big array. The integer parameter is the
index of the column to extract. See Bigarray.Genarray.slice_right
for more details. Array2.slice_right applies only to arrays
with Fortran layout.