Vector

smile.cas.Vector
trait Vector extends Tensor

Vector: rank-1 tensor.

Attributes

Graph
Supertypes
trait Tensor
class Object
trait Matchable
class Any
Known subtypes
class AddVector
class ConstVector
class NegVector
class OneVector
class Vars
class VectorVal
class VectorVar
class ZeroVector
Show all

Members list

Value members

Abstract methods

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

Applies the expression.

Applies the expression.

Attributes

def d(dx: Var): Vector

Returns the partial derivative.

Returns the partial derivative.

Attributes

def d(dx: VectorVar): Matrix

Returns the Jacobian matrix.

Returns the Jacobian matrix.

Attributes

The size of vector.

The size of vector.

Attributes

Concrete methods

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

Applies the expression.

Applies the expression.

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