Deep.Net


UtilTypes

Namespace: Tensor.Utils

Nested types and modules

TypeDescription
ConcurrentDictionary<'TKey, 'TValue>
ConcurrentQueue<'T>
Dictionary<'TKey, 'TValue>
HashSet<'T>
IReadOnlyCollection<'T>
IReadOnlyDictionary<'TKey, 'TValue>
Queue<'T>

Functions and values

Function or valueDescription
( |? ) a b
Signature: a:'a option -> b:'a -> 'a
Type parameters: 'a

Default value for options. Returns b if a is None, else the value of a.

CompiledName: op_BarQmark

callGeneric (...)
Signature: methodName:string -> genericTypeArgs:Type list -> args:obj -> 'R
Type parameters: 'U, 'R

Calls the specified static method on the type 'U with the specified generic type arguments and the specified arguments in tupled form. Return value is of type 'R.

callGenericInst (...)
Signature: instance:obj -> methodName:string -> genericTypeArgs:Type list -> args:obj -> 'R
Type parameters: 'U, 'R

Calls the specified method on the type 'U with the specified generic type arguments and the specified arguments in tupled form. Return value is of type 'R.

conv value
Signature: value:obj -> 'T
Type parameters: 'T

convert given value to type 'T

convTo typ value
Signature: typ:Type -> value:'a -> obj
Type parameters: 'a

convert given value to specified type and return as obj

maxValue
Signature: 'T
Type parameters: 'T

maximum value for numeric type 'T

maxValueOf dataType
Signature: dataType:Type -> obj

maximum value for the specified numeric data type

minValue
Signature: 'T
Type parameters: 'T

minimum value for numeric type 'T

minValueOf dataType
Signature: dataType:Type -> obj

minimum value for the specifed numeric data type

sizeof64
Signature: int64
Type parameters: 'T

size of 'T as int64

Type extensions

Type extensionDescription
GetOrDefault(key dflt)
Signature: key:'TKey -> dflt:'TValue -> 'TValue

CompiledName: Dictionary`2.GetOrDefault

GetOrDefault(key dflt)
Signature: key:'TKey -> dflt:'TValue -> 'TValue

CompiledName: ConcurrentDictionary`2.GetOrDefault

LockedAdd(key)
Signature: key:'T -> bool

CompiledName: HashSet`1.LockedAdd

LockedAdd(key, value)
Signature: (key:'TKey * value:'TValue) -> unit

CompiledName: Dictionary`2.LockedAdd

LockedContains(key)
Signature: key:'T -> bool

CompiledName: HashSet`1.LockedContains

LockedSet(key, value)
Signature: (key:'TKey * value:'TValue) -> unit

CompiledName: Dictionary`2.LockedSet

LockedTryFind(key)
Signature: key:'TKey -> 'TValue option

CompiledName: Dictionary`2.LockedTryFind

TryDequeue()
Signature: unit -> 'T option

CompiledName: ConcurrentQueue`1.TryDequeue

TryFind(key)
Signature: key:'TKey -> 'TValue option

CompiledName: Dictionary`2.TryFind

TryFind(key)
Signature: key:'TKey -> 'TValue option

CompiledName: ConcurrentDictionary`2.TryFind

TryFindReadOnly(key)
Signature: key:'TKey -> 'TValue option

CompiledName: IReadOnlyDictionary`2.TryFindReadOnly

TryPeek
Signature: 'T option

CompiledName: Queue`1.get_TryPeek

TryPeek
Signature: 'T option

CompiledName: Queue`1.get_TryPeek

Fork me on GitHub