warp.diag ========= .. function:: warp._src.lang.diag(vec: Vector[Scalar,Any]) -> Matrix[Scalar,Any,Any] .. hlist:: :columns: 8 * Kernel * Differentiable Construct a matrix with the components of vector ``vec`` on the diagonal.