Method flatten
val flatten: ITensor -> ITensor
Flattens the tensor into a (one-dimensional) vector.
Declaration
val flatten: a:ITensor -> ITensor
Parameters
Type | Name | Description |
---|---|---|
ITensor | a | The tensor to operate on. |
Returns
Type | Description |
---|---|
ITensor | A vector. |