Array Module

Contains extensions to the F# Array module.

Functions and values

Function or value Description

allClose relativeTolerance absoluteTolerance array1 array2

Full Usage: allClose relativeTolerance absoluteTolerance array1 array2

Parameters:
    relativeTolerance : ^T
    absoluteTolerance : ^T
    array1 : ^T[]
    array2 : ^T[]

Returns: bool
Modifiers: inline

Determines if all values of the first array lie within the given tolerances of the second array.

relativeTolerance : ^T
absoluteTolerance : ^T
array1 : ^T[]
array2 : ^T[]
Returns: bool

cumulativeSum a

Full Usage: cumulativeSum a

Parameters:
    a : ^d[]

Returns: ^e[]
Modifiers: inline
Type parameters: ^d, ^e

Gets the cumulative sum of the input array.

a : ^d[]
Returns: ^e[]

foralli f arr

Full Usage: foralli f arr

Parameters:
    f : int -> 'T -> bool
    arr : 'T[]

Returns: bool
f : int -> 'T -> bool
arr : 'T[]
Returns: bool

getUniqueCounts sorted values

Full Usage: getUniqueCounts sorted values

Parameters:
    sorted : bool
    values : 'T[]

Returns: 'T[] * int[]

Gets the unique counts of the input array.

sorted : bool
values : 'T[]
Returns: 'T[] * int[]

initFlat2D i j f

Full Usage: initFlat2D i j f

Parameters:
    i : int
    j : int
    f : int -> int -> 'a

Returns: 'a[]
i : int
j : int
f : int -> int -> 'a
Returns: 'a[]

initFlat3D i j k f

Full Usage: initFlat3D i j k f

Parameters:
    i : int
    j : int
    k : int
    f : int -> int -> int -> 'a

Returns: 'a[]
i : int
j : int
k : int
f : int -> int -> int -> 'a
Returns: 'a[]

insertManyAt index values source

Full Usage: insertManyAt index values source

Parameters:
    index : int
    values : seq<'T>
    source : 'T[]

Returns: 'T[]
index : int
values : seq<'T>
source : 'T[]
Returns: 'T[]

removeAt index source

Full Usage: removeAt index source

Parameters:
    index : int
    source : 'T[]

Returns: 'T[]
index : int
source : 'T[]
Returns: 'T[]

© Copyright 2021, DiffSharp Contributors.