warp.len#

warp.len(a: Vector[Scalar, Any]) int#
  • Kernel

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.

warp.len(a: Quaternion[Float]) int
  • Kernel

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.

warp.len(a: Matrix[Scalar, Any, Any]) int
  • Kernel

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.

warp.len(a: Transformation[Float]) int
  • Kernel

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.

warp.len(a: Array[Any]) int
  • Kernel

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.

warp.len(a: Tile[Any, tuple[int, ...]]) int
  • Kernel

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.

warp.len(a: tuple) int
  • Kernel

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.