Packages

t

smile.cas

Scalar

trait Scalar extends Tensor

Scalar: rank-0 tensor.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Scalar
  2. Tensor
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def apply(env: Map[String, Tensor]): Scalar

    Applies the expression.

  2. abstract def d(dx: VectorVar): Vector

    Returns the gradient vector.

  3. abstract def d(dx: Var): Scalar

    Returns the derivative.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def *(y: Matrix): Matrix
  4. def *(y: Vector): Vector
  5. def *(y: Scalar): Scalar
  6. def **(y: Scalar): Scalar
  7. def +(y: Scalar): Scalar
  8. def -(y: Scalar): Scalar
  9. def ->[B](y: B): (Scalar, B)
    Implicit
    This member is added by an implicit conversion from Scalar toArrowAssoc[Scalar] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  10. def /(y: Scalar): Scalar
  11. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def apply(env: (String, Tensor)*): Scalar

    Applies the expression.

  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  15. def d(dx: Var*): Vector

    Returns the gradient vector.

  16. def ensuring(cond: (Scalar) => Boolean, msg: => Any): Scalar
    Implicit
    This member is added by an implicit conversion from Scalar toEnsuring[Scalar] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: (Scalar) => Boolean): Scalar
    Implicit
    This member is added by an implicit conversion from Scalar toEnsuring[Scalar] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean, msg: => Any): Scalar
    Implicit
    This member is added by an implicit conversion from Scalar toEnsuring[Scalar] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean): Scalar
    Implicit
    This member is added by an implicit conversion from Scalar toEnsuring[Scalar] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  22. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  23. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Scalar toStringFormat[Scalar] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  24. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  25. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. def rank: Option[Int]

    The rank of tensor, i.e.

    The rank of tensor, i.e. the number of dimensions.

    Definition Classes
    ScalarTensor
  31. def shape: Option[Array[IntScalar]]

    The shape of tensor, i.e the size of each dimension.

    The shape of tensor, i.e the size of each dimension.

    Definition Classes
    ScalarTensor
  32. def simplify: Scalar

    Simplify the expression.

  33. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. def unary_+: Scalar
  36. def unary_-: Scalar
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Shadowed Implicit Value Members

  1. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Scalar toany2stringadd[Scalar] performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (scalar: any2stringadd[Scalar]).+(other)
    Definition Classes
    any2stringadd

Deprecated Value Members

  1. def [B](y: B): (Scalar, B)
    Implicit
    This member is added by an implicit conversion from Scalar toArrowAssoc[Scalar] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Tensor

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromScalar to any2stringadd[Scalar]

Inherited by implicit conversion StringFormat fromScalar to StringFormat[Scalar]

Inherited by implicit conversion Ensuring fromScalar to Ensuring[Scalar]

Inherited by implicit conversion ArrowAssoc fromScalar to ArrowAssoc[Scalar]

Ungrouped