Value | Description |
val create : int -> int -> int -> 'a -> 'a [,,] |
Create an array whose elements are all initially the given value
|
val get : 'a [,,] -> int -> int -> int -> 'a |
Fetch an element from a 3D array. You can also use the syntax 'arr.[idx1,idx2,idx3]'
|
val init : int -> int -> int -> (int -> int -> int -> 'a) -> 'a [,,] |
Create an array given the dimensions and a generator function to compute the elements.
|
val iter : ('a -> unit) -> 'a [,,] -> unit |
Apply the given function to each element of the array.
|
val iteri : (int -> int -> int -> 'a -> unit) -> 'a [,,] -> unit |
Apply the given function to each element of the array. The integer indicies passed to the
function indicates the index of element.
|
val length1 : 'a [,,] -> int |
Return the length of an array in the first dimension
|
val length2 : 'a [,,] -> int |
Return the length of an array in the second dimension
|
val length3 : 'a [,,] -> int |
Return the length of an array in the third dimension
|
val map : ('a -> 'b) -> 'a [,,] -> 'b [,,] |
Build a new array whose elements are the results of applying the given function
to each of the elements of the array.
For non-zero-based arrays the basing on an input array will be propogated to the output
array.
|
val mapi : (int -> int -> int -> 'a -> 'b) -> 'a [,,] -> 'b [,,] |
Build a new array whose elements are the results of applying the given function
to each of the elements of the array. The integer indices passed to the
function indicates the element being transformed.
For non-zero-based arrays the basing on an input array will be propogated to the output
array.
|
val set : 'a [,,] -> int -> int -> int -> 'a -> unit |
Set the value of an element in an array. You can also
use the syntax 'arr.[idx1,idx2,idx3] <- e'.
|
val zero_create : int -> int -> int -> 'a [,,] |
Create an array where the entries are initially the
a "default" value. For .NET reference types this will
be "null". For other types behaviour is undefined if
you access an entry of the array before setting it.
See notes on the Array3 module re. zero-basing.
|