[Home] Type Microsoft.FSharp.NativeInterop.FortranMatrix


This type wraps a pointer to a blob of unmanaged memory assumed to contain a Fortran-style column major two-dimensional matrix of items compatible with the (presumably blittable) type 'a. The blob of memory must be allocated and managed externally, e.g. by a computation routine written in C. All operations on this type are marked inlined because the code used to implement the operations is not verifiable. Any code that uses these operations will be unverifiable and may cause memory corruption if not used with extreme care.

Full Type Signature

type FortranMatrix<'a>
  with
    static member FromPtr : 'a nativeptr * nrows:int * ncols:int -> FortranMatrix<'a>
    [<UnverifiableAttribute ()>]
    member Item : int * int -> 'a with get
    member NativeTranspose : CMatrix<'a>
    member NumCols : int
    member NumRows : int
    member Ptr : 'a nativeptr
    [<UnverifiableAttribute ()>]
    member Item : int * int -> 'a with set
  end

Instance Members

MemberDescription
[<UnverifiableAttribute ()>]
member Item : int * int -> 'a with get
WARNING: use of this function may lead to unverifiable or invalid code
[<UnverifiableAttribute ()>]
member Item : int * int -> 'a with set
WARNING: use of this function may lead to unverifiable or invalid code
member NativeTranspose : CMatrix<'a>
View a FortranMatrix as a CMatrix. Doesn't actually allocate a new matirx - just gives a different label to the same bits, and swaps the row/column count information associated with the bits.
member NumCols : int
member NumRows : int
member Ptr : 'a nativeptr

Static Members

MemberDescription
member FromPtr : 'a nativeptr * nrows:int * ncols:int -> FortranMatrix<'a>

See Also

Microsoft.FSharp.NativeInterop


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