empty#
Fully qualified name: isaacsim::common::array::empty
- Array isaacsim::common::array::empty( )#
Creates an array of the given shape without initializing its elements.
The returned array owns a freshly allocated buffer whose contents are unspecified: read an element before writing it and you get whatever the allocator handed back. Use it only when every element is about to be overwritten; reach for
zeros()orones()otherwise.A zero-element shape still allocates, so
Array::data()is a valid, distinct pointer rather than null.