|
Module Bigarray.Array3module Array3:
Three-dimensional arrays. The
Array3 structure provides operations similar to those of
Bigarray.Genarray , but specialized to the case of three-dimensional arrays.type (
The type of three-dimensional big arrays whose elements have
Caml type
'a , representation kind 'b , and memory layout 'c .val create : Array3.create kind layout dim1 dim2 dim3 returns a new bigarray of
three dimension, whose size is dim1 in the first dimension,
dim2 in the second dimension, and dim3 in the third.
kind and layout determine the array element kind and
the array layout as described for Bigarray.Genarray.create .val dim1 :
Return the first dimension of the given three-dimensional big array.
val dim2 :
Return the second dimension of the given three-dimensional big array.
val dim3 :
Return the third dimension of the given three-dimensional big array.
val kind :
Return the kind of the given big array.
val layout :
Return the layout of the given big array.
val get : Array3.get a x y z , also written a.{x,y,z} ,
returns the element of a at coordinates (x , y , z ).
x , y and z must be within the bounds of a ,
as described for Bigarray.Genarray.get ;
otherwise, Invalid_arg is raised.val set : Array3.set a x y v , or alternatively a.{x,y,z} <- v ,
stores the value v at coordinates (x , y , z ) in a .
x , y and z must be within the bounds of a ,
as described for Bigarray.Genarray.set ;
otherwise, Invalid_arg is raised.val sub_left :
Extract a three-dimensional sub-array of the given
three-dimensional big array by restricting the first dimension.
See
Bigarray.Genarray.sub_left for more details. Array3.sub_left
applies only to arrays with C layout.val sub_right :
Extract a three-dimensional sub-array of the given
three-dimensional big array by restricting the second dimension.
See
Bigarray.Genarray.sub_right for more details. Array3.sub_right
applies only to arrays with Fortran layout.val slice_left_1 :
Extract a one-dimensional slice of the given three-dimensional
big array by fixing the first two coordinates.
The integer parameters are the coordinates of the slice to
extract. See
Bigarray.Genarray.slice_left for more details.
Array3.slice_left_1 applies only to arrays with C layout.val slice_right_1 :
Extract a one-dimensional slice of the given three-dimensional
big array by fixing the last two coordinates.
The integer parameters are the coordinates of the slice to
extract. See
Bigarray.Genarray.slice_right for more details.
Array3.slice_right_1 applies only to arrays with Fortran
layout.val slice_left_2 :
Extract a two-dimensional slice of the given three-dimensional
big array by fixing the first coordinate.
The integer parameter is the first coordinate of the slice to
extract. See
Bigarray.Genarray.slice_left for more details.
Array3.slice_left_2 applies only to arrays with C layout.val slice_right_2 :
Extract a two-dimensional slice of the given
three-dimensional big array by fixing the last coordinate.
The integer parameter is the coordinate of the slice
to extract. See
Bigarray.Genarray.slice_right for more details.
Array3.slice_right_2 applies only to arrays with Fortran
layout.val blit :
Copy the first big array to the second big array.
See
Bigarray.Genarray.blit for more details.val fill :
Fill the given big array with the given value.
See
Bigarray.Genarray.fill for more details.val of_array :
Build a three-dimensional big array initialized from the
given array of arrays of arrays.
val map_file :
Memory mapping of a file as a three-dimensional big array.
See
Bigarray.Genarray.map_file for more details. |