Scalar

smile.cas.Scalar
trait Scalar extends Tensor

Scalar: rank-0 tensor.

Attributes

Graph
Supertypes
trait Tensor
class Object
trait Matchable
class Any
Known subtypes
class Abs
class Add
class ArcCos
class ArcCot
class ArcSin
class ArcTan
class Const
class Cos
class Cot
class Div
class Exp
class InnerProduct
class Int2Scalar
class Log
class Mul
class Neg
class Power
class Sin
class Sub
class Tan
class Val
class Var
Show all

Members list

Value members

Abstract methods

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

Applies the expression.

Applies the expression.

Attributes

def d(dx: Var): Scalar

Returns the derivative.

Returns the derivative.

Attributes

def d(dx: VectorVar): Vector

Returns the gradient vector.

Returns the gradient vector.

Attributes

Concrete methods

def *(y: Scalar): Scalar
def *(y: Vector): Vector
def *(y: Matrix): Matrix
def **(y: Scalar): Scalar
def +(y: Scalar): Scalar
def -(y: Scalar): Scalar
def /(y: Scalar): Scalar
def apply(env: (String, Tensor)*): Scalar

Applies the expression.

Applies the expression.

Attributes

def d(dx: Var*): Vector

Returns the gradient vector.

Returns the gradient vector.

Attributes

override def rank: Option[Int]

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

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

Attributes

Definition Classes
override 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.

Attributes

Definition Classes

Simplify the expression.

Simplify the expression.

Attributes