ScalarExtensions Module

Functions and values

Function or value Description

tryWidenScalar tensorDtype scalar

Full Usage: tryWidenScalar tensorDtype scalar

Parameters:
Returns: Dtype voption
tensorDtype : Dtype
scalar : scalar
Returns: Dtype voption

widenScalarForDivision tensorDtype scalarDtype

Full Usage: widenScalarForDivision tensorDtype scalarDtype

Parameters:
Returns: Dtype
tensorDtype : Dtype
scalarDtype : Dtype
Returns: Dtype

Type extensions

Type extension Description

this.cast dtype

Full Usage: this.cast dtype

Parameters:
Returns: scalar
Modifiers: inline

Extended Type: IConvertible

dtype : Dtype
Returns: scalar

this.dtype ()

Full Usage: this.dtype ()

Parameters:
    () : unit

Returns: Dtype
Modifiers: inline

Extended Type: IConvertible

() : unit
Returns: Dtype

this.dtype

Full Usage: this.dtype

Returns: Dtype
Modifiers: inline abstract

Extended Type: IConvertible

Returns: Dtype

this.log ()

Full Usage: this.log ()

Parameters:
    () : unit

Returns: scalar
Modifiers: inline

Extended Type: IConvertible

() : unit
Returns: scalar

this.neg ()

Full Usage: this.neg ()

Parameters:
    () : unit

Returns: scalar
Modifiers: inline

Extended Type: IConvertible

() : unit
Returns: scalar

this.sub y

Full Usage: this.sub y

Parameters:
Returns: scalar
Modifiers: inline

Extended Type: IConvertible

y : scalar
Returns: scalar

this.toBool ()

Full Usage: this.toBool ()

Parameters:
    () : unit

Returns: bool
Modifiers: inline

Extended Type: IConvertible

() : unit
Returns: bool

this.toByte ()

Full Usage: this.toByte ()

Parameters:
    () : unit

Returns: byte
Modifiers: inline

Extended Type: IConvertible

() : unit
Returns: byte

this.toDouble ()

Full Usage: this.toDouble ()

Parameters:
    () : unit

Returns: float
Modifiers: inline

Extended Type: IConvertible

() : unit
Returns: float

this.toInt16 ()

Full Usage: this.toInt16 ()

Parameters:
    () : unit

Returns: int16
Modifiers: inline

Extended Type: IConvertible

() : unit
Returns: int16

this.toInt32 ()

Full Usage: this.toInt32 ()

Parameters:
    () : unit

Returns: int
Modifiers: inline

Extended Type: IConvertible

() : unit
Returns: int

this.toInt64 ()

Full Usage: this.toInt64 ()

Parameters:
    () : unit

Returns: int64
Modifiers: inline

Extended Type: IConvertible

() : unit
Returns: int64

this.toSByte ()

Full Usage: this.toSByte ()

Parameters:
    () : unit

Returns: sbyte
Modifiers: inline

Extended Type: IConvertible

() : unit
Returns: sbyte

this.toSingle ()

Full Usage: this.toSingle ()

Parameters:
    () : unit

Returns: float32
Modifiers: inline

Extended Type: IConvertible

() : unit
Returns: float32

© Copyright 2021, DiffSharp Contributors.