gustaf.helpers.data.Unique2DFloats#

class gustaf.helpers.data.Unique2DFloats(values, ids, inverse, intersection)#

Bases: tuple

namedtuple to hold unique information of float type arrays. Note that for float types, “close enough” might be a better name than unique. This way, all tracked arrays, as long as they are 2D, have a dot separated syntax to access unique info. For example, mesh.unique_vertices.ids.

Methods

Attributes

Unique2DFloats.ids

(n, d) np.ndarray Field number 1

Unique2DFloats.intersection

(m) list of list given original array's index, returns overlapping arrays, including itself.

Unique2DFloats.inverse

(n, d) np.ndarray Field number 2

Unique2DFloats.values

(n, d) np.ndarray Field number 0