TensorD

scalation.mathstat.TensorD
See theTensorD companion class
object TensorD

The TensorD companion object provides factory methods for the TensorD class.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
TensorD.type

Members list

Value members

Concrete methods

def apply(n: (Int, Int, Int), x: Double*): TensorD

Build a tensor from the argument list x.

Build a tensor from the argument list x.

Value parameters

n1

the first dimension

n2

the second dimension

n3

the third dimension

Attributes

def apply(vs: MatrixD*): TensorD

Create a tensor from a variable argument list of matrices (row-wise). Use transpose to make it column-wise.

Create a tensor from a variable argument list of matrices (row-wise). Use transpose to make it column-wise.

Value parameters

vs

the vararg list of matrices

Attributes

def apply(vs: IndexedSeq[MatrixD]): TensorD

Create a tensor from an mutable IndexedSeq of matrices (row-wise). Use transpose to make it column-wise.

Create a tensor from an mutable IndexedSeq of matrices (row-wise). Use transpose to make it column-wise.

Value parameters

vs

the indexed sequence of matrices

Attributes

def apply(vs: IndexedSeq[MatrixD]): TensorD

Create a tensor from an immutable IndexedSeq of matrices (row-wise), as produce by for yield. Use transpose to make it column-wise.

Create a tensor from an immutable IndexedSeq of matrices (row-wise), as produce by for yield. Use transpose to make it column-wise.

Value parameters

vs

the indexed sequence of matrices

Attributes

def fill(dim: Int, dim2: Int, dim3: Int, value: Double): TensorD

Create a tensor of dimensions dim by dim2 by dim3 where all elements equal to the given value.

Create a tensor of dimensions dim by dim2 by dim3 where all elements equal to the given value.

Value parameters

dim

the row dimension

dim2

the sheet dimension

value

the given value to assign to all elements

Attributes