Mesh
A general Mesh class representing data points in n-dimensions in either a structured or unstructured manner
Properties and Methods
get_npoints: method
get_gridpoints: method
get_mesh_subgrids: method
get_mesh_spacings: method
get_mesh_type: method
RegularMesh: method
__new__(cls, data, mesh_type=None):
griddata:np.ndarraythe raw grid-point data the mesh uses
mesh_type:None | strthe type of mesh we have
opts:AnyNo description…
__init__(self, *args, **kwargs):
__array_finalize__(self, mesh):
@property
mesh_spacings(self):
@property
subgrids(self):
@property
dimension(self):
Returns the dimension of the grid (not necessarily ndim)
:returns:intNo description…
@property
npoints(self):
Returns the number of gridpoints in the mesh
:returns:intNo description…
@property
gridpoints(self):
Returns the flattened set of gridpoints for a structured tensor grid and otherwise just returns the gridpoints
:returns:_No description…
get_slice_iter(self, axis=-1):
Returns an iterator over the slices of the mesh along the specified axis
axis:AnyNo description…
:returns:_No description…
Examples
Edit Examples or
Create New Examples
Edit Template or
Create New Template
Edit Docstrings