The TensorD
companion object provides factory methods for the TensorD
class.
Attributes
Members list
Value members
Concrete methods
Build a tensor from the scaler argument list x.
Build a tensor from the scaler argument list x.
Value parameters
- n1
-
the first dimension
- n2
-
the second dimension
- n3
-
the third dimension
- x
-
the list/vararg of scacollection.immutable.IndexedSeq [MatrixD]lars
Attributes
Build a tensor from the vector argument list x.
Build a tensor from the vector argument list x.
Value parameters
- n
-
the first dimension
- vs
-
the list/vararg of vectors
Attributes
Build a tensor from the vector argument list x.
Build a tensor from the vector argument list x.
Value parameters
- n
-
the first dimension
- vs
-
the indexed sequence of vectors
Attributes
Build a tensor from the vector argument list x.
Build a tensor from the vector argument list x.
Value parameters
- n
-
the first dimension
- vs
-
the indexed sequence of vectors
Attributes
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
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
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
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