diag_embed#

hypercoil.functional.matrix.diag_embed(v: Tensor, offset: int = 0) Tensor[source]#

Embed a vector into a diagonal matrix.