chainerx.diagflat¶
-
chainerx.
diagflat
(v, k=0, device=None)¶ Creates a diagonal array from the flattened input.
- Parameters
v (ndarray) – Array object.
k (int) – Index of diagonals. See
chainerx.diag()
.device (Device) – Device on which the array is allocated. If omitted, the default device is chosen.
- Returns
A 2-D diagonal array with the diagonal copied from
v
.- Return type
Note
The argument
v
does not support array-like objects yet.See also