xecs.xecs.UInt32#

class xecs.xecs.UInt32#

Bases: object

An array of uint32 values.

Methods

fill

Set the values of the array.

get

Get the value at a specific index.

numpy

Copy the elements into a NumPy array.

to_str

Get a string representation.

fill(values)#

Set the values of the array.

Parameters:

values (int | list[int]) – The new values.

get(index)#

Get the value at a specific index.

Parameters:

index (int) – The index where the value is located.

Returns:

The value at index.

Return type:

int

numpy()#

Copy the elements into a NumPy array.

Returns:

The NumPy array.

Return type:

numpy.ndarray

to_str()#

Get a string representation.

Returns:

The string representation.

Return type:

str