seemps.analysis.mesh.Mesh#

class seemps.analysis.mesh.Mesh[source]#

Bases: object

Multidimensional mesh object.

This represents a multidimensional mesh which can be understood as the implicit tensor given by the cartesian product of a collection of intervals.

Parameters:
intervalslist[Interval]

A list of Interval objects representing the discretizations along each dimension.

Attributes

intervals

(list[Interval]) The supplied list of intervals.

dimension

(int) Dimension of the space in which this mesh is embedded.

dimensions

(tuple[int]) Tuple of the sizes of each interval

to_tensor(channels_first: bool = False) ndarray[tuple[Any, ...], dtype[floating]][source]#

Converts the mesh object to a tensor by computing the tensor product of the intervals.

Parameters:
channels_first: bool, default=True

Whether to set the dimension index ‘m’ as the first or the last index or the tensor.