Object

org.platanios.tensorflow.api.tensors.ops

Math

Related Doc: package ops

Permalink

object Math extends Math

Linear Supertypes
Math, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Math
  2. Math
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def abs[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathAbs

    $OpDocMathAbs

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  5. def acos[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathAcos

    $OpDocMathAcos

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  6. def acosh[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathAcosh

    $OpDocMathAcosh

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  7. def add[D <: MathDataType](x: Tensor[D], y: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathAdd

    $OpDocMathAdd

    x

    First input tensor.

    y

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  8. def addN[D <: ReducibleDataType](inputs: Seq[Tensor[D]]): Tensor[D]

    Permalink

    $OpDocMathAddN

    $OpDocMathAddN

    inputs

    Input tensors.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  9. def all(input: Tensor[types.BOOLEAN], axes: Tensor[types.INT32] = null, keepDims: Boolean = false): Tensor[types.BOOLEAN]

    Permalink

    $OpDocMathAll

    $OpDocMathAll

    input

    Input tensor to reduce.

    axes

    Integer tensor containing the axes to reduce. If null, then all axes are reduced.

    keepDims

    If true, retain the reduced axes.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  10. def any(input: Tensor[types.BOOLEAN], axes: Tensor[types.INT32] = null, keepDims: Boolean = false): Tensor[types.BOOLEAN]

    Permalink

    $OpDocMathAny

    $OpDocMathAny

    input

    Input tensor to reduce.

    axes

    Integer tensor containing the axes to reduce. If null, then all axes are reduced.

    keepDims

    If true, retain the reduced axes.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  11. def approximatelyEqual[D <: ReducibleDataType](x: Tensor[D], y: Tensor[D], tolerance: Float = 0.00001f): Tensor[types.BOOLEAN]

    Permalink

    $OpDocMathApproximatelyEqual

    $OpDocMathApproximatelyEqual

    x

    First input tensor.

    y

    Second input tensor.

    tolerance

    Comparison tolerance value.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  12. def argmax[D <: MathDataType, I <: Int32OrInt64, IR <: Int32OrInt64](input: Tensor[D], axes: Tensor[I], outputDataType: IR): Tensor[IR]

    Permalink

    $OpDocMathArgmax

    $OpDocMathArgmax

    input

    Input tensor.

    axes

    Integer tensor containing the axes to reduce. If null, then all axes are reduced.

    outputDataType

    Data type for the output tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  13. def argmax[D <: MathDataType, I <: Int32OrInt64](input: Tensor[D], axes: Tensor[I]): Tensor[types.INT64]

    Permalink

    $OpDocMathArgmax

    $OpDocMathArgmax

    input

    Input tensor.

    axes

    Integer tensor containing the axes to reduce. If null, then all axes are reduced.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  14. def argmin[D <: MathDataType, I <: Int32OrInt64, IR <: Int32OrInt64](input: Tensor[D], axes: Tensor[I], outputDataType: IR): Tensor[IR]

    Permalink

    $OpDocMathArgmin

    $OpDocMathArgmin

    input

    Input tensor.

    axes

    Integer tensor containing the axes to reduce. If null, then all axes are reduced.

    outputDataType

    Data type for the output tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  15. def argmin[D <: MathDataType, I <: Int32OrInt64](input: Tensor[D], axes: Tensor[I]): Tensor[types.INT64]

    Permalink

    $OpDocMathArgmin

    $OpDocMathArgmin

    input

    Input tensor.

    axes

    Integer tensor containing the axes to reduce. If null, then all axes are reduced.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  16. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  17. def asin[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathAsin

    $OpDocMathAsin

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  18. def asinh[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathAsinh

    $OpDocMathAsinh

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  19. def atan[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathAtan

    $OpDocMathAtan

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  20. def atan2[D <: Float32OrFloat64](x: Tensor[D], y: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathAtan2

    $OpDocMathAtan2

    x

    First input tensor.

    y

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  21. def atanh[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathAtanh

    $OpDocMathAtanh

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  22. def binCount[D <: Int32OrInt64OrFloat32OrFloat64](input: Tensor[types.INT32], weights: Tensor[D] = null, minLength: Tensor[types.INT32] = null, maxLength: Tensor[types.INT32] = null, dataType: D = null): Tensor[D]

    Permalink

    $OpDocMathBinCount

    $OpDocMathBinCount

    input

    Tensor containing non-negative values.

    weights

    If not null, this tensor must have the same shape as input. For each value in input, the corresponding bin count will be incremented by the corresponding weight instead of 1.

    minLength

    If not null, this ensures the output has length at least minLength, padding with zeros at the end, if necessary.

    maxLength

    If not null, this skips values in input that are equal or greater than maxLength, ensuring that the output has length at most maxLength.

    dataType

    If weights is null, this determines the data type used for the output tensor (i.e., the tensor containing the bin counts).

    returns

    Result as a new tensor.

    Definition Classes
    Math
  23. def bucketize[D <: Int32OrInt64OrFloat32OrFloat64](input: Tensor[D], boundaries: Seq[Float]): Tensor[D]

    Permalink

    $OpDocMathBucketize

    $OpDocMathBucketize

    input

    Numeric tensor to bucketize.

    boundaries

    Sorted sequence of numbers specifying the boundaries of the buckets.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  24. def ceil[D <: Float16OrFloat32OrFloat64, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathCeil

    $OpDocMathCeil

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  25. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. def complex128(real: Tensor[types.FLOAT64], imag: Tensor[types.FLOAT64]): Tensor[types.COMPLEX128]

    Permalink

    $OpDocMathComplex

    $OpDocMathComplex

    real

    Tensor containing the real component.

    imag

    Tensor containing the imaginary component.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  27. def complex64(real: Tensor[types.FLOAT32], imag: Tensor[types.FLOAT32]): Tensor[types.COMPLEX64]

    Permalink

    $OpDocMathComplex

    $OpDocMathComplex

    real

    Tensor containing the real component.

    imag

    Tensor containing the imaginary component.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  28. def conjugate[D <: ComplexDataType, TL[DD <: types.DataType] <: TensorLike[DD]](input: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathConjugate

    $OpDocMathConjugate

    input

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  29. def cos[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathCos

    $OpDocMathCos

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  30. def cosh[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathCosh

    $OpDocMathCosh

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  31. def countNonZero[D <: ReducibleDataType](input: Tensor[D], axes: Tensor[types.INT32] = null, keepDims: Boolean = false): Tensor[types.INT64]

    Permalink

    $OpDocMathCountNonZero

    $OpDocMathCountNonZero

    input

    Input tensor to reduce.

    axes

    Integer array containing the axes to reduce. If null, then all axes are reduced.

    keepDims

    If true, retain the reduced axes.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  32. def cross[D <: MathDataType](a: Tensor[D], b: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathCross

    $OpDocMathCross

    a

    First input tensor.

    b

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  33. def cumprod[D <: MathDataType](input: Tensor[D], axis: Tensor[types.INT32] = 0, exclusive: Boolean = false, reverse: Boolean = false): Tensor[D]

    Permalink

    $OpDocMathCumprod

    $OpDocMathCumprod

    input

    Input tensor.

    axis

    INT32 tensor containing the axis along which to perform the cumulative product.

    exclusive

    Boolean value indicating whether to perform an exclusive cumulative product.

    reverse

    Boolean value indicating whether to perform a reverse cumulative product.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  34. def cumsum[D <: MathDataType](input: Tensor[D], axis: Tensor[types.INT32] = 0, exclusive: Boolean = false, reverse: Boolean = false): Tensor[D]

    Permalink

    $OpDocMathCumsum

    $OpDocMathCumsum

    input

    Input tensor.

    axis

    Tensor containing the axis along which to perform the cumulative sum.

    exclusive

    Boolean value indicating whether to perform an exclusive cumulative sum.

    reverse

    Boolean value indicating whether to perform a reverse cumulative sum.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  35. def diag[D <: MathDataType](diagonal: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathDiag

    $OpDocMathDiag

    diagonal

    Diagonal values, represented as a rank-K tensor, where K can be at most 3.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  36. def diagPart[D <: MathDataType](input: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathDiagPart

    $OpDocMathDiagPart

    input

    Rank-K input tensor, where K is either 2, 4, or 6.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  37. def digamma[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathDigamma

    $OpDocMathDigamma

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  38. def divide[D <: MathDataType](x: Tensor[D], y: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathDivide

    $OpDocMathDivide

    x

    First input tensor.

    y

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  39. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  40. def equal[D <: ReducibleDataType](x: Tensor[D], y: Tensor[D]): Tensor[types.BOOLEAN]

    Permalink

    $OpDocMathEqual

    $OpDocMathEqual

    x

    First input tensor.

    y

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  41. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  42. def erf[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathErf

    $OpDocMathErf

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  43. def erfc[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathErfc

    $OpDocMathErfc

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  44. def exp[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathExp

    $OpDocMathExp

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  45. def expm1[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathExpm1

    $OpDocMathExpm1

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  46. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  47. def floor[D <: Float16OrFloat32OrFloat64, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathFloor

    $OpDocMathFloor

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  48. def floorMod[D <: MathDataType](x: Tensor[D], y: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathFloorMod

    $OpDocMathFloorMod

    x

    First input tensor.

    y

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  49. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  50. def greater[D <: ReducibleDataType](x: Tensor[D], y: Tensor[D]): Tensor[types.BOOLEAN]

    Permalink

    OpDocMathGreater

    OpDocMathGreater

    x

    First input tensor.

    y

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  51. def greaterEqual[D <: ReducibleDataType](x: Tensor[D], y: Tensor[D]): Tensor[types.BOOLEAN]

    Permalink

    OpDocMathGreaterEqual

    OpDocMathGreaterEqual

    x

    First input tensor.

    y

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  52. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  53. def igamma[D <: Float32OrFloat64](a: Tensor[D], x: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathIgamma

    $OpDocMathIgamma

    a

    First input tensor.

    x

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  54. def igammac[D <: Float32OrFloat64](a: Tensor[D], x: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathIgammac

    $OpDocMathIgammac

    a

    First input tensor.

    x

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  55. def incompleteBeta[D <: Float32OrFloat64](a: Tensor[D], b: Tensor[D], x: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathIncompleteBeta

    $OpDocMathIncompleteBeta

    a

    First input tensor.

    b

    Second input tensor.

    x

    Third input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  56. def isFinite[D <: Float16OrFloat32OrFloat64, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[types.BOOLEAN]

    Permalink

    $OpDocMathIsFinite

    $OpDocMathIsFinite

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  57. def isInf[D <: Float16OrFloat32OrFloat64, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[types.BOOLEAN]

    Permalink

    $OpDocMathIsInf

    $OpDocMathIsInf

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  58. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  59. def isNaN[D <: Float16OrFloat32OrFloat64, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[types.BOOLEAN]

    Permalink

    $OpDocMathIsNaN

    $OpDocMathIsNaN

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  60. def less[D <: ReducibleDataType](x: Tensor[D], y: Tensor[D]): Tensor[types.BOOLEAN]

    Permalink

    OpDocMathLess

    OpDocMathLess

    x

    First input tensor.

    y

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  61. def lessEqual[D <: ReducibleDataType](x: Tensor[D], y: Tensor[D]): Tensor[types.BOOLEAN]

    Permalink

    OpDocMathLessEqual

    OpDocMathLessEqual

    x

    First input tensor.

    y

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  62. def linspace[D <: BFloat16OrFloat32OrFloat64, I <: Int32OrInt64](start: Tensor[D], stop: Tensor[D], numberOfValues: Tensor[I]): Tensor[D]

    Permalink

    $OpDocMathLinspace

    $OpDocMathLinspace

    start

    Rank 0 (i.e., scalar) tensor that contains the starting value of the number sequence.

    stop

    Rank 0 (i.e., scalar) tensor that contains the ending value (inclusive) of the number sequence.

    numberOfValues

    Rank 0 (i.e., scalar) tensor that contains the number of values in the number sequence.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  63. def log[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathLog

    $OpDocMathLog

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  64. def log1p[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathLog1p

    $OpDocMathLog1p

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  65. def logGamma[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathLogGamma

    $OpDocMathLogGamma

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  66. def logSigmoid[D <: RealDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathLogSigmoid

    $OpDocMathLogSigmoid

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  67. def logSumExp[D <: MathDataType](input: Tensor[D], axes: Seq[Int] = null, keepDims: Boolean = false): Tensor[D]

    Permalink

    $OpDocMathLogSumExp

    $OpDocMathLogSumExp

    input

    Input tensor to reduce.

    axes

    Integer sequence containing the axes to reduce. If null, then all axes are reduced.

    keepDims

    If true, retain the reduced axes.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  68. def logicalAnd(x: Tensor[types.BOOLEAN], y: Tensor[types.BOOLEAN]): Tensor[types.BOOLEAN]

    Permalink

    $OpDocMathLogicalAnd

    $OpDocMathLogicalAnd

    x

    First input tensor.

    y

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  69. def logicalNot(x: Tensor[types.BOOLEAN]): Tensor[types.BOOLEAN]

    Permalink

    $OpDocMathLogicalNot

    $OpDocMathLogicalNot

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  70. def logicalOr(x: Tensor[types.BOOLEAN], y: Tensor[types.BOOLEAN]): Tensor[types.BOOLEAN]

    Permalink

    $OpDocMathLogicalOr

    $OpDocMathLogicalOr

    x

    First input tensor.

    y

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  71. def logicalXOr(x: Tensor[types.BOOLEAN], y: Tensor[types.BOOLEAN]): Tensor[types.BOOLEAN]

    Permalink

    $OpDocMathLogicalXOr

    $OpDocMathLogicalXOr

    x

    First input tensor.

    y

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  72. def matmul[D <: MathDataType](a: Tensor[D], b: Tensor[D], transposeA: Boolean = false, transposeB: Boolean = false, conjugateA: Boolean = false, conjugateB: Boolean = false, aIsSparse: Boolean = false, bIsSparse: Boolean = false): Tensor[D]

    Permalink

    $OpDocMathMatmul

    $OpDocMathMatmul

    a

    First input tensor.

    b

    Second input tensor.

    transposeA

    If true, a is transposed before the multiplication.

    transposeB

    If true, b is transposed before the multiplication.

    conjugateA

    If true, a is conjugated before the multiplication.

    conjugateB

    If true, b is conjugated before the multiplication.

    aIsSparse

    If true, a is treated as a sparse matrix (i.e., it is assumed it contains many zeros).

    bIsSparse

    If true, b is treated as a sparse matrix (i.e., it is assumed it contains many zeros).

    returns

    Result as a new tensor.

    Definition Classes
    Math
  73. def matrixBandPart[D <: MathDataType, I <: Int32OrInt64](input: Tensor[D], numSubDiagonals: Tensor[I], numSuperDiagonals: Tensor[I]): Tensor[D]

    Permalink

    $OpDocMathMatrixBandPart

    $OpDocMathMatrixBandPart

    input

    Input tensor.

    numSubDiagonals

    Scalar tensor that contains the number of sub-diagonals to keep. If negative, the entire lower triangle is kept.

    numSuperDiagonals

    Scalar tensor that contains the number of super-diagonals to keep. If negative, the entire upper triangle is kept.

    returns

    Result as a new tensor containing the expected banded tensor and has rank K and same shape as input.

    Definition Classes
    Math
  74. def matrixDiag[D <: MathDataType](diagonal: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathMatrixDiag

    $OpDocMathMatrixDiag

    diagonal

    Rank-K input tensor, where K >= 1.

    returns

    Result as a new tensor with rank equal to K + 1 and shape equal to the shape of diagonal, with its last dimension duplicated.

    Definition Classes
    Math
  75. def matrixDiagPart[D <: MathDataType](input: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathMatrixDiagPart

    $OpDocMathMatrixDiagPart

    input

    Rank-K tensor, where K >= 2.

    returns

    Result as a new tensor containing the diagonal(s) and having shape equal to input.shape[:-2] + [min(input.shape[-2:])].

    Definition Classes
    Math
  76. def matrixSetDiag[D <: MathDataType](input: Tensor[D], diagonal: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathMatrixSetDiag

    $OpDocMathMatrixSetDiag

    input

    Rank-K+1 tensor, where K >= 2.

    diagonal

    Rank-K tensor, where K >= 1.

    returns

    Result as a new tensor with rank equal to K + 1 and shape equal to the shape of input.

    Definition Classes
    Math
  77. def max[D <: ReducibleDataType](input: Tensor[D], axes: Tensor[types.INT32] = null, keepDims: Boolean = false): Tensor[D]

    Permalink

    $OpDocMathMax

    $OpDocMathMax

    input

    Input tensor to reduce.

    axes

    Integer tensor containing the axes to reduce. If null, then all axes are reduced.

    keepDims

    If true, retain the reduced axes.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  78. def maximum[D <: MathDataType](x: Tensor[D], y: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathMaximum

    $OpDocMathMaximum

    x

    First input tensor.

    y

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  79. def mean[D <: ReducibleDataType](input: Tensor[D], axes: Tensor[types.INT32] = null, keepDims: Boolean = false): Tensor[D]

    Permalink

    $OpDocMathMean

    $OpDocMathMean

    input

    Input tensor to reduce.

    axes

    Integer tensor containing the axes to reduce. If null, then all axes are reduced.

    keepDims

    If true, retain the reduced axes.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  80. def min[D <: ReducibleDataType](input: Tensor[D], axes: Tensor[types.INT32] = null, keepDims: Boolean = false): Tensor[D]

    Permalink

    $OpDocMathMin

    $OpDocMathMin

    input

    Input tensor to reduce.

    axes

    Integer tensor containing the axes to reduce. If null, then all axes are reduced.

    keepDims

    If true, retain the reduced axes.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  81. def minimum[D <: MathDataType](x: Tensor[D], y: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathMinimum

    $OpDocMathMinimum

    x

    First input tensor.

    y

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  82. def mod[D <: MathDataType](x: Tensor[D], y: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathMod

    $OpDocMathMod

    x

    First input tensor.

    y

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  83. def multiply[D <: MathDataType](x: Tensor[D], y: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathMultiply

    $OpDocMathMultiply

    x

    First input tensor.

    y

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  84. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  85. def negate[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathNegate

    $OpDocMathNegate

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  86. def notEqual[D <: ReducibleDataType](x: Tensor[D], y: Tensor[D]): Tensor[types.BOOLEAN]

    Permalink

    $OpDocMathNotEqual

    $OpDocMathNotEqual

    x

    First input tensor.

    y

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  87. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  88. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  89. def polygamma[D <: Float32OrFloat64](n: Tensor[D], x: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathPolygamma

    $OpDocMathPolygamma

    n

    First input tensor.

    x

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  90. def pow[D <: MathDataType](x: Tensor[D], y: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathPow

    $OpDocMathPow

    x

    First input tensor.

    y

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  91. def prod[D <: ReducibleDataType](input: Tensor[D], axes: Tensor[types.INT32] = null, keepDims: Boolean = false): Tensor[D]

    Permalink

    $OpDocMathProd

    $OpDocMathProd

    input

    Input tensor to reduce.

    axes

    Integer tensor containing the axes to reduce. If null, then all axes are reduced.

    keepDims

    If true, retain the reduced axes.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  92. def range[D <: NumericDataType](start: Tensor[D], limit: Tensor[D], delta: Tensor[D] = null): Tensor[D]

    Permalink

    $OpDocMathRange

    $OpDocMathRange

    start

    Rank 0 (i.e., scalar) tensor that contains the starting value of the number sequence.

    limit

    Rank 0 (i.e., scalar) tensor that contains the ending value (exclusive) of the number sequence.

    delta

    Rank 0 (i.e., scalar) tensor that contains the difference between consecutive numbers in the sequence.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  93. def realDivide[D <: MathDataType](x: Tensor[D], y: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathRealDivide

    $OpDocMathRealDivide

    x

    First input tensor.

    y

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  94. def reciprocal[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathReciprocal

    $OpDocMathReciprocal

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  95. def round[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathRound

    $OpDocMathRound

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  96. def roundInt[D <: Float16OrFloat32OrFloat64, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathRoundInt

    $OpDocMathRoundInt

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  97. def rsqrt[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathRsqrt

    $OpDocMathRsqrt

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  98. def scalarMul[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](scalar: Tensor[D], tensor: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathScalarMul

    $OpDocMathScalarMul

    scalar

    Scalar tensor.

    tensor

    Tensor to multiply the scalar tensor with.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  99. def segmentMax[D <: ReducibleDataType, I <: Int32OrInt64](data: Tensor[D], segmentIndices: Tensor[I]): Tensor[D]

    Permalink

    $OpDocMathSegmentMax

    $OpDocMathSegmentMax

    data

    Data (must have a numeric data type -- i.e., representing a number).

    segmentIndices

    Segment indices. Values should be sorted and can be repeated.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  100. def segmentMean[D <: ReducibleDataType, I <: Int32OrInt64](data: Tensor[D], segmentIndices: Tensor[I]): Tensor[D]

    Permalink

    $OpDocMathSegmentMean

    $OpDocMathSegmentMean

    data

    Data (must have a numeric data type -- i.e., representing a number).

    segmentIndices

    Segment indices. Values should be sorted and can be repeated.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  101. def segmentMin[D <: ReducibleDataType, I <: Int32OrInt64](data: Tensor[D], segmentIndices: Tensor[I]): Tensor[D]

    Permalink

    $OpDocMathSegmentMin

    $OpDocMathSegmentMin

    data

    Data (must have a numeric data type -- i.e., representing a number).

    segmentIndices

    Segment indices. Values should be sorted and can be repeated.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  102. def segmentProd[D <: ReducibleDataType, I <: Int32OrInt64](data: Tensor[D], segmentIndices: Tensor[I]): Tensor[D]

    Permalink

    $OpDocMathSegmentProd

    $OpDocMathSegmentProd

    data

    Data (must have a numeric data type -- i.e., representing a number).

    segmentIndices

    Segment indices. Values should be sorted and can be repeated.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  103. def segmentSum[D <: ReducibleDataType, I <: Int32OrInt64](data: Tensor[D], segmentIndices: Tensor[I]): Tensor[D]

    Permalink

    $OpDocMathSegmentSum

    $OpDocMathSegmentSum

    data

    Data (must have a numeric data type -- i.e., representing a number).

    segmentIndices

    Segment indices. Values should be sorted and can be repeated.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  104. def select[D <: types.DataType](condition: Tensor[types.BOOLEAN], x: Tensor[D], y: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathSelect

    $OpDocMathSelect

    condition

    Boolean condition tensor.

    x

    Tensor which may have the same shape as condition. If condition has rank 1, then t may have a higher rank, but its first dimension must match the size of condition.

    y

    Tensor with the same data type and shape as t.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  105. def sigmoid[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathSigmoid

    $OpDocMathSigmoid

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  106. def sign[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathSign

    $OpDocMathSign

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  107. def sin[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathSin

    $OpDocMathSin

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  108. def sinh[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathSinh

    $OpDocMathSinh

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  109. def sparseSegmentMean[D <: types.DataType, I1 <: Int32OrInt64, I2 <: Int32OrInt64](data: Tensor[D], indices: Tensor[I1], segmentIndices: Tensor[I2], numSegments: Tensor[types.INT32] = null): Tensor[D]

    Permalink

    $OpDocMathSparseSegmentMean

    $OpDocMathSparseSegmentMean

    data

    Data (must have a numeric data type -- i.e., representing a number).

    indices

    One-dimensional tensor with rank equal to that of segmentIndices.

    segmentIndices

    Segment indices. Values should be sorted and can be repeated.

    numSegments

    Optional scalar indicating the size of the output tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  110. def sparseSegmentSum[D <: types.DataType, I1 <: Int32OrInt64, I2 <: Int32OrInt64](data: Tensor[D], indices: Tensor[I1], segmentIndices: Tensor[I2], numSegments: Tensor[types.INT32] = null): Tensor[D]

    Permalink

    $OpDocMathSparseSegmentSum

    $OpDocMathSparseSegmentSum

    data

    Data (must have a numeric data type -- i.e., representing a number).

    indices

    One-dimensional tensor with rank equal to that of segmentIndices.

    segmentIndices

    Segment indices. Values should be sorted and can be repeated.

    numSegments

    Optional scalar indicating the size of the output tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  111. def sparseSegmentSumSqrtN[D <: types.DataType, I1 <: Int32OrInt64, I2 <: Int32OrInt64](data: Tensor[D], indices: Tensor[I1], segmentIndices: Tensor[I2], numSegments: Tensor[types.INT32] = null): Tensor[D]

    Permalink

    $OpDocMathSparseSegmentSumSqrtN

    $OpDocMathSparseSegmentSumSqrtN

    data

    Data (must have a numeric data type -- i.e., representing a number).

    indices

    One-dimensional tensor with rank equal to that of segmentIndices.

    segmentIndices

    Segment indices. Values should be sorted and can be repeated.

    numSegments

    Optional scalar indicating the size of the output tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  112. def sqrt[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathSqrt

    $OpDocMathSqrt

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  113. def square[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathSquare

    $OpDocMathSquare

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  114. def squaredDifference[D <: MathDataType](x: Tensor[D], y: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathSquaredDifference

    $OpDocMathSquaredDifference

    x

    First input tensor.

    y

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  115. def subtract[D <: MathDataType](x: Tensor[D], y: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathSubtract

    $OpDocMathSubtract

    x

    First input tensor.

    y

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  116. def sum[D <: ReducibleDataType](input: Tensor[D], axes: Tensor[types.INT32] = null, keepDims: Boolean = false): Tensor[D]

    Permalink

    $OpDocMathSum

    $OpDocMathSum

    input

    Input tensor to reduce.

    axes

    Integer tensor containing the axes to reduce. If null, then all axes are reduced.

    keepDims

    If true, retain the reduced axes.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  117. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  118. def tan[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathTan

    $OpDocMathTan

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  119. def tanh[D <: MathDataType, TL[DD <: types.DataType] <: TensorLike[DD]](x: TL[D])(implicit ev: Aux[TL, D]): TL[D]

    Permalink

    $OpDocMathTanh

    $OpDocMathTanh

    x

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  120. def tensorDot[D <: MathDataType](a: Tensor[D], b: Tensor[D], axesA: Tensor[types.INT32], axesB: Tensor[types.INT32]): Tensor[D]

    Permalink

    Dynamic version (i.e., where axesA and axesB may be tensors) of the tensorDot op.

    Dynamic version (i.e., where axesA and axesB may be tensors) of the tensorDot op.

    $OpDocMathTensorDot

    a

    First tensor.

    b

    Second tensor.

    axesA

    Axes to contract in a.

    axesB

    Axes to contract in b.

    returns

    Created op output.

    Definition Classes
    Math
    Annotations
    @throws( ... )
    Exceptions thrown

    InvalidShapeException If axesA or axesB is not a scalar.

  121. def tensorDot[D <: MathDataType](a: Tensor[D], b: Tensor[D], numAxes: Tensor[types.INT32]): Tensor[D]

    Permalink

    Dynamic version (i.e., where numAxes may be a tensor) of the tensorDot op.

    Dynamic version (i.e., where numAxes may be a tensor) of the tensorDot op.

    $OpDocMathTensorDot

    a

    First tensor.

    b

    Second tensor.

    numAxes

    Number of axes to contract.

    returns

    Created op output.

    Definition Classes
    Math
    Annotations
    @throws( ... )
    Exceptions thrown

    InvalidShapeException If numAxes is not a scalar.

  122. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  123. def trace[D <: MathDataType](input: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathTrace

    $OpDocMathTrace

    input

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  124. def truncateDivide[D <: MathDataType](x: Tensor[D], y: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathTruncateDivide

    $OpDocMathTruncateDivide

    x

    First input tensor.

    y

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  125. def truncateMod[D <: MathDataType](x: Tensor[D], y: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathTruncateMod

    $OpDocMathTruncateMod

    x

    First input tensor.

    y

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  126. def unsortedSegmentMax[D <: types.DataType, I <: Int32OrInt64](data: Tensor[D], segmentIndices: Tensor[I], segmentsNumber: Tensor[types.INT32]): Tensor[D]

    Permalink

    $OpDocMathUnsortedSegmentMax

    $OpDocMathUnsortedSegmentMax

    data

    Data (must have a numeric data type -- i.e., representing a number).

    segmentIndices

    Segment indices.

    segmentsNumber

    Number of segments.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  127. def unsortedSegmentSum[D <: types.DataType, I <: Int32OrInt64](data: Tensor[D], segmentIndices: Tensor[I], segmentsNumber: Tensor[types.INT32]): Tensor[D]

    Permalink

    $OpDocMathUnsortedSegmentSum

    $OpDocMathUnsortedSegmentSum

    data

    Data (must have a numeric data type -- i.e., representing a number).

    segmentIndices

    Segment indices.

    segmentsNumber

    Number of segments.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  128. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  129. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  130. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  131. def zerosFraction[D <: ReducibleDataType](input: Tensor[D]): Tensor[types.FLOAT32]

    Permalink

    $OpDocMathZerosFraction

    $OpDocMathZerosFraction

    input

    Input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
  132. def zeta[D <: Float32OrFloat64](x: Tensor[D], q: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathZeta

    $OpDocMathZeta

    x

    First input tensor.

    q

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math

Deprecated Value Members

  1. def floorDivide[D <: MathDataType](x: Tensor[D], y: Tensor[D]): Tensor[D]

    Permalink

    $OpDocMathFloorDivide

    $OpDocMathFloorDivide

    x

    First input tensor.

    y

    Second input tensor.

    returns

    Result as a new tensor.

    Definition Classes
    Math
    Annotations
    @deprecated
    Deprecated

    (Since version 0.1) Use truncateDivide instead.

Inherited from Math

Inherited from AnyRef

Inherited from Any

MathOps

Ungrouped