Method identity
val identity: int64 -> Tensor<'T>
Creates a new identity matrix.
Declaration
val identity: size:int64 -> Tensor<'T>
Parameters
| Type | Name | Description |
|---|---|---|
| int64 | size | The size of the square identity matrix. |
Returns
| Type | Description |
|---|---|
| Tensor<'T> | The new tensor. |
Type Parameters
| Name | Description |
|---|---|
| 'T | The data type of the new tensor. |