warp.zeros#
- warp.zeros(
- shape=None,
- dtype=float,
- device=None,
- requires_grad=False,
- pinned=False,
- **kwargs,
Return a zero-initialized array
- Parameters:
shape (int | tuple[int, ...] | list[int] | None) – Array dimensions
dtype (type) – Type of each element, e.g.: warp.vec3, warp.mat33, etc
device (Device | str | None) – Device that array will live on
requires_grad (bool) – Whether the array will be tracked for back propagation
pinned (bool) – Whether the array uses pinned host memory (only applicable to CPU arrays)
- Returns:
A warp.array object representing the allocation
- Return type: