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

Values

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.

Platforms

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

Version Information

F# Runtime

Supported in: 2.0, 4.0

Silverlight

Supported in: 3

See Also

Reference

Microsoft.FSharp.Collections Namespace (F#)