Tensor

smile.cas.Tensor
trait Tensor

A tensor is an algebraic object that describes a (multilinear) relationship between sets of algebraic objects related to a vector space. Objects that tensors may map between include vectors (which are often, but not always, understood as arrows with length that point in a direction) and scalars (which are often familiar numbers such as the real numbers), and, recursively, even other tensors. Tensors are defined independent of any basis, although they are often referred to by their components in a basis related to a particular coordinate system.

The shape of tensor (the number of dimensions and the size of each dimension) might be only partially known.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait IntScalar
class Ceil
class Floor
class IntAdd
class IntConst
class IntDiv
class IntMul
class IntNeg
class IntPower
class IntSub
class IntVal
class IntVar
class Mod
class Round
trait Matrix
class AddMatrix
class ConstMatrix
class MatrixVar
class NegMatrix
class OneMatrix
class OuterProduct
class RowMatrix
class ZeroMatrix
trait Scalar
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
trait Vector
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 rank: Option[Int]

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

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

Attributes

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

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

Attributes