[Home] Module Microsoft.FSharp.Compatibility.CompatMatrix


Pseudo-polymorphic 2-dimensional arrays. Only really used when working with .NET 1.x. For any particular 'a , the "'a[,]" type is type-compatible with the corresponding C# 2-dimensional array type. The module contains operations to manipulate these values. The operations may be used on any version of the .NET CLR. See the 'Advanced' section of the manual for when 'Compatibility' array operations are needed to write code that will function on any version of the CLR. See the sample fsharp/Automation/Excel for an example of passing one of these values to fill in the cells of an Excel spreadsheet.

Deprecated Values

ValueDescription
[<Obsolete
  ("The Microsoft.FSharp.Compatibility.CompatArray2 module is now deprecated on .NET 2.0, and will be deleted in a later release of F#. Use the corresponding functions from the Array2 module instead")>]
val create : int -> int -> 'a -> 'a [,]

Note: The Microsoft.FSharp.Compatibility.CompatArray2 module is now deprecated on .NET 2.0, and will be deleted in a later release of F#. Use the corresponding functions from the Array2 module instead

Create a new array of the given lengths, each entry of which holds the given element
[<Obsolete
  ("The Microsoft.FSharp.Compatibility.CompatArray2 module is now deprecated on .NET 2.0, and will be deleted in a later release of F#. Use the corresponding functions from the Array2 module instead")>]
val get : 'a [,] -> int -> int -> 'a

Note: The Microsoft.FSharp.Compatibility.CompatArray2 module is now deprecated on .NET 2.0, and will be deleted in a later release of F#. Use the corresponding functions from the Array2 module instead

Fetch the given element of the array
[<Obsolete
  ("The Microsoft.FSharp.Compatibility.CompatArray2 module is now deprecated on .NET 2.0, and will be deleted in a later release of F#. Use the corresponding functions from the Array2 module instead")>]
val init : int -> int -> (int -> int -> 'a) -> 'a [,]

Note: The Microsoft.FSharp.Compatibility.CompatArray2 module is now deprecated on .NET 2.0, and will be deleted in a later release of F#. Use the corresponding functions from the Array2 module instead

Build a new array whose elements are f 0 0, f 0 1, ..., f N N
[<Obsolete
  ("The Microsoft.FSharp.Compatibility.CompatArray2 module is now deprecated on .NET 2.0, and will be deleted in a later release of F#. Use the corresponding functions from the Array2 module instead")>]
val iter : ('a -> unit) -> 'a [,] -> unit

Note: The Microsoft.FSharp.Compatibility.CompatArray2 module is now deprecated on .NET 2.0, and will be deleted in a later release of F#. Use the corresponding functions from the Array2 module instead

Execute the given function for each element of the given array
[<Obsolete
  ("The Microsoft.FSharp.Compatibility.CompatArray2 module is now deprecated on .NET 2.0, and will be deleted in a later release of F#. Use the corresponding functions from the Array2 module instead")>]
val iteri : (int -> int -> 'a -> unit) -> 'a [,] -> unit

Note: The Microsoft.FSharp.Compatibility.CompatArray2 module is now deprecated on .NET 2.0, and will be deleted in a later release of F#. Use the corresponding functions from the Array2 module instead

Execute the given function for each element of the given array. The integer indices indicate the index of the element.
[<Obsolete
  ("The Microsoft.FSharp.Compatibility.CompatArray2 module is now deprecated on .NET 2.0, and will be deleted in a later release of F#. Use the corresponding functions from the Array2 module instead")>]
val length1 : 'a [,] -> int

Note: The Microsoft.FSharp.Compatibility.CompatArray2 module is now deprecated on .NET 2.0, and will be deleted in a later release of F#. Use the corresponding functions from the Array2 module instead

The length of the array in the first dimension
[<Obsolete
  ("The Microsoft.FSharp.Compatibility.CompatArray2 module is now deprecated on .NET 2.0, and will be deleted in a later release of F#. Use the corresponding functions from the Array2 module instead")>]
val length2 : 'a [,] -> int

Note: The Microsoft.FSharp.Compatibility.CompatArray2 module is now deprecated on .NET 2.0, and will be deleted in a later release of F#. Use the corresponding functions from the Array2 module instead

The length of the array in the second dimension
[<Obsolete
  ("The Microsoft.FSharp.Compatibility.CompatArray2 module is now deprecated on .NET 2.0, and will be deleted in a later release of F#. Use the corresponding functions from the Array2 module instead")>]
val make : int -> int -> 'a -> 'a [,]

Note: The Microsoft.FSharp.Compatibility.CompatArray2 module is now deprecated on .NET 2.0, and will be deleted in a later release of F#. Use the corresponding functions from the Array2 module instead

Build a new array of the given length, each entry of which holds the given element. Same as create.
[<Obsolete
  ("The Microsoft.FSharp.Compatibility.CompatArray2 module is now deprecated on .NET 2.0, and will be deleted in a later release of F#. Use the corresponding functions from the Array2 module instead")>]
val map : ('a -> 'b) -> 'a [,] -> 'b [,]

Note: The Microsoft.FSharp.Compatibility.CompatArray2 module is now deprecated on .NET 2.0, and will be deleted in a later release of F#. Use the corresponding functions from the Array2 module instead

Build a new array whose elements are the results of applying the given function to each of the elements of the array.
[<Obsolete
  ("The Microsoft.FSharp.Compatibility.CompatArray2 module is now deprecated on .NET 2.0, and will be deleted in a later release of F#. Use the corresponding functions from the Array2 module instead")>]
val mapi : (int -> int -> 'a -> 'b) -> 'a [,] -> 'b [,]

Note: The Microsoft.FSharp.Compatibility.CompatArray2 module is now deprecated on .NET 2.0, and will be deleted in a later release of F#. Use the corresponding functions from the Array2 module instead

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 funciton indicates the indices of the element.
[<Obsolete
  ("The Microsoft.FSharp.Compatibility.CompatArray2 module is now deprecated on .NET 2.0, and will be deleted in a later release of F#. Use the corresponding functions from the Array2 module instead")>]
val set : 'a [,] -> int -> int -> 'a -> unit

Note: The Microsoft.FSharp.Compatibility.CompatArray2 module is now deprecated on .NET 2.0, and will be deleted in a later release of F#. Use the corresponding functions from the Array2 module instead

Set the given element of the array
[<Obsolete
  ("The Microsoft.FSharp.Compatibility.CompatArray2 module is now deprecated on .NET 2.0, and will be deleted in a later release of F#. Use the corresponding functions from the Array2 module instead")>]
val zero_create : int -> int -> 'a [,]

Note: The Microsoft.FSharp.Compatibility.CompatArray2 module is now deprecated on .NET 2.0, and will be deleted in a later release of F#. Use the corresponding functions from the Array2 module instead

Create a new array filled with zero (null or default) values. Warning: Use of this function may result in subsequent exceptions if the elements of the array are accessed before initialized.

See Also

Microsoft.FSharp.Compatibility


Documentation for assembly FSharp.Core, version 1.9.4.19, generated using F# version 1.9.4.19