warp.diag#

warp.diag(vec: Vector[Any, Scalar]) Matrix[Any, Any, Scalar]#
  • Kernel

  • Differentiable

Construct a matrix with the components of vector vec on the diagonal.