nifty7.domains.unstructured_domain module

class UnstructuredDomain(shape)[source]

Bases: nifty7.domains.domain.Domain

A Domain subclass for spaces with no associated geometry.

Typically used for data spaces.

Parameters

shape (tuple of int) – The required shape for an array which can hold the unstructured domain’s data.

__repr__()[source]

Return repr(self).

property shape

number of pixels along each axis

The shape of the array-like object required to store information defined on the domain.

Type

tuple of int

property size

total number of pixels.

Equivalent to the products over all entries in the domain’s shape.

Type

int