nifty7.domains.dof_space module

class DOFSpace(dof_weights)[source]

Bases: nifty7.domains.structured_domain.StructuredDomain

Generic degree-of-freedom space. It is defined as the domain of some DOFDistributor. Its entries represent the underlying degrees of freedom of some other space, according to the dofdex.

Parameters

dof_weights (1-D numpy array) – A numpy array containing the multiplicity of each individual degree of freedom.

__repr__()[source]

Return repr(self).

property dvol

pixel volume(s)

Returns the volume factors of this domain, either as a floating point scalar (if the volume factors are all identical) or as a floating point array with a shape of self.shape.

Type

float or numpy.ndarray(dtype=float)

property harmonic

True iff this domain is a harmonic domain.

Type

bool

property scalar_dvol

uniform pixel volume, if applicable

Returns the volume factors of this domain as a floating point scalar, if the volume factors are all identical, otherwise returns None.

Type

float or None

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