warp.diag# warp.diag(vec: Vector[Scalar, Any]) → Matrix[Scalar, Any, Any]# Kernel Differentiable Construct a matrix with the components of vector vec on the diagonal.