Collections.Array4D Module (F#)

Basic operations on rank 4 arrays.

Namespace/Module Path: Microsoft.FSharp.Collections

Assembly: FSharp.Core (in FSharp.Core.dll)

module Array4D

Value

Description

create : int -> int -> int -> int -> 'T -> 'T [,,,]

Creates an array whose elements are all initially the given value

get : 'T [,,,] -> int -> int -> int -> int -> 'T

Fetches an element from a 4D array.

init : int -> int -> int -> int -> (int -> int -> int -> int -> 'T) -> 'T [,,,]

Creates an array given the dimensions and a generator function to compute the elements.

length1 : 'T [,,,] -> int

Returns the length of an array in the first dimension

length2 : 'T [,,,] -> int

Returns the length of an array in the second dimension.

length3 : 'T [,,,] -> int

Returns the length of an array in the third dimension.

length4 : 'T [,,,] -> int

Returns the length of an array in the fourth dimension.

set : 'T [,,,] -> int -> int -> int -> int -> 'T -> unit

Sets the value of an element in an array.

zeroCreate : int -> int -> int -> int -> 'T [,,,]

Creates an array where the entries are initially the default value.

Windows 7, Windows Vista SP2, Windows XP SP3, Windows XP x64 SP2, Windows Server 2008 R2, Windows Server 2008 SP2, Windows Server 2003 SP2

F# Runtime

Supported in: 2.0, 4.0

Silverlight

Supported in: 3

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft