warp.indexedfabricarray#

class warp.indexedfabricarray(fa=None, indices=None, dtype=None, ndim=None)[source]#

Indexed view into a fabricarray.

Provides access to a subset of elements from a Fabric array, selected by an index array. This is similar to how warp.indexedarray relates to warp.array.

Parameters:
  • fa – The underlying fabricarray to index into.

  • indices – A warp.array of integer indices specifying which elements to access.

  • dtype – Data type of the array elements (inferred from fa if provided).

  • ndim – Number of dimensions (inferred from fa if provided).

__init__(
fa=None,
indices=None,
dtype=None,
ndim=None,
)[source]#

Methods

__init__([fa, indices, dtype, ndim])

assign(src)

contiguous()

fill_(value)

list()

numpy()

to(device)

zero_()

Attributes

property vars[source]#
fill_(value)[source]#