warp.len ======== .. currentmodule:: warp._src.lang .. function:: len(a: Vector[Scalar, Any]) -> int .. wp-function-tags:: :kernel: true :python: false :differentiable: false Query the length of ``a``. :returns: The number of elements for vectors, quaternions, and transformations; the number of rows for matrices and tiles; or the size of the leading dimension for arrays. .. function:: len(a: Quaternion[Float]) -> int :noindex: .. wp-function-tags:: :kernel: true :python: false :differentiable: false Query the length of ``a``. :returns: The number of elements for vectors, quaternions, and transformations; the number of rows for matrices and tiles; or the size of the leading dimension for arrays. .. function:: len(a: Matrix[Scalar, Any, Any]) -> int :noindex: .. wp-function-tags:: :kernel: true :python: false :differentiable: false Query the length of ``a``. :returns: The number of elements for vectors, quaternions, and transformations; the number of rows for matrices and tiles; or the size of the leading dimension for arrays. .. function:: len(a: Transformation[Float]) -> int :noindex: .. wp-function-tags:: :kernel: true :python: false :differentiable: false Query the length of ``a``. :returns: The number of elements for vectors, quaternions, and transformations; the number of rows for matrices and tiles; or the size of the leading dimension for arrays. .. function:: len(a: Array[Any]) -> int :noindex: .. wp-function-tags:: :kernel: true :python: false :differentiable: false Query the length of ``a``. :returns: The number of elements for vectors, quaternions, and transformations; the number of rows for matrices and tiles; or the size of the leading dimension for arrays. .. function:: len(a: Tile[Any, tuple[int, ...]]) -> int :noindex: .. wp-function-tags:: :kernel: true :python: false :differentiable: false Query the length of ``a``. :returns: The number of elements for vectors, quaternions, and transformations; the number of rows for matrices and tiles; or the size of the leading dimension for arrays. .. function:: len(a: tuple) -> int :noindex: .. wp-function-tags:: :kernel: true :python: false :differentiable: false Query the length of ``a``. :returns: The number of elements for vectors, quaternions, and transformations; the number of rows for matrices and tiles; or the size of the leading dimension for arrays.