Bigarray_ext.Array2Sourceinclude module type of struct include Bigarray.Array2 endThe type of two-dimensional Bigarrays whose elements have OCaml type 'a, representation kind 'b, and memory layout 'c.
Return the first dimension of the given two-dimensional Bigarray.
Return the second dimension of the given two-dimensional Bigarray.
Return the layout of the given Bigarray.
Array2.change_layout a layout returns a Bigarray with the specified layout, sharing the data with a (and hence having the same dimensions as a). No copying of elements is involved: the new array and the original array share the same storage space. The dimensions are reversed, such that get v [| a; b |] in C layout becomes get v [| b+1; a+1 |] in Fortran layout.
size_in_bytes a is the number of elements in a multiplied by a's kind_size_in_bytes.
Extract a two-dimensional sub-array of the given two-dimensional Bigarray by restricting the first dimension. See Bigarray.Genarray.sub_left for more details. Array2.sub_left applies only to arrays with C layout.
val sub_right :
('a, 'b, Bigarray.fortran_layout) t ->
int ->
int ->
('a, 'b, Bigarray.fortran_layout) tExtract a two-dimensional sub-array of the given two-dimensional Bigarray by restricting the second dimension. See Bigarray.Genarray.sub_right for more details. Array2.sub_right applies only to arrays with Fortran layout.
val slice_left :
('a, 'b, Bigarray.c_layout) t ->
int ->
('a, 'b, Bigarray.c_layout) Bigarray.Array1.tExtract a row (one-dimensional slice) of the given two-dimensional Bigarray. 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.
val slice_right :
('a, 'b, Bigarray.fortran_layout) t ->
int ->
('a, 'b, Bigarray.fortran_layout) Bigarray.Array1.tExtract a column (one-dimensional slice) of the given two-dimensional Bigarray. 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.