chainerx.diagflat

chainerx.diagflat(v, k=0, device=None)

Creates a diagonal array from the flattened input.

Parameters
Returns

A 2-D diagonal array with the diagonal copied from v.

Return type

ndarray

Note

The argument v does not support array-like objects yet.

See also

numpy.diagflat()