warp.vector#

warp.vector(
*args: Scalar,
length: int32 = ...,
dtype: Scalar = ...,
) Vector[Scalar, Any]#
  • Kernel: true
  • Python: false
  • Differentiable: true

Construct a vector of given length and dtype.

If no arguments are given, the vector is zero-initialized.