Chemical Data Processing Library Python API - Version 1.4.0
Public Member Functions | Properties | List of all members
CDPL.Grid.DRegularGrid Class Reference

A regular spatial grid storing double-precision floating-point values. More...

+ Inheritance diagram for CDPL.Grid.DRegularGrid:

Public Member Functions

None __init__ (DRegularGrid grid)
 Initializes a copy of the DRegularGrid instance grid. More...
 
None __init__ (Math.DGrid data, float xs, float ys, float zs)
 Constructs a RegularGrid initialized from data, with the given grid spacing in x, y and z direction. More...
 
None __init__ (Math.DGrid data, float s)
 Constructs a RegularGrid initialized from data with isotropic grid spacing. More...
 
None __init__ (float xs, float ys, float zs)
 Constructs an empty RegularGrid with the given grid spacing in x, y and z direction. More...
 
None __init__ (float s)
 Constructs an empty RegularGrid with isotropic grid spacing. More...
 
None getCoordinates (int i, int j, int k, object coords)
 
None getCoordinates (int i, object coords)
 Returns the 3D coordinates of the grid element at linear index i. More...
 
Math.DRegularSpatialGrid assign (Math.ConstFGridExpression e)
 Replaces the current state of self with a copy of the state of the ConstFGridExpression instance e. More...
 
Math.DRegularSpatialGrid assign (Math.ConstDGridExpression e)
 Replaces the current state of self with a copy of the state of the ConstDGridExpression instance e. More...
 
Math.DRegularSpatialGrid assign (object e)
 Replaces the current state of self with a copy of the state of the object instance e. More...
 
Math.DRegularSpatialGrid assign (Math.DRegularSpatialGrid g)
 Replaces the current state of self with a copy of the state of the DRegularSpatialGrid instance g. More...
 
int getSize1 ()
 
int getSize2 ()
 
int getSize3 ()
 
bool isEmpty ()
 Tells whether the grid is empty. More...
 
float getElement (int i, int j, int k)
 
float getElement (int i)
 
object toArray ()
 
int getSize ()
 
None swap (Math.DRegularSpatialGrid g)
 
None setElement (int i, int j, int k, float v)
 
None setElement (int i, float v)
 
Base.Any __getitem__ (Base.LookupKey key)
 
float __getitem__ (tuple ijk)
 
float __getitem__ (int i)
 
bool __contains__ (Base.LookupKey key)
 Returns the result of the membership test operation key in self. More...
 
None __setitem__ (Base.LookupKey key, Base.Any value)
 
None __setitem__ (tuple ijk, float v)
 
None __setitem__ (int i, float v)
 
bool __delitem__ (Base.LookupKey key)
 
int __len__ ()
 
float __call__ (int i, int j, int k)
 
float __call__ (int i)
 Returns a reference to the grid element at linear index i. More...
 
bool __eq__ (Math.DRegularSpatialGrid g)
 Returns the result of the comparison operation self == g. More...
 
bool __eq__ (Math.ConstDGridExpression e)
 Returns the result of the comparison operation self == e. More...
 
bool __ne__ (Math.DRegularSpatialGrid g)
 Returns the result of the comparison operation self != g. More...
 
bool __ne__ (Math.ConstDGridExpression e)
 Returns the result of the comparison operation self != e. More...
 
str __str__ ()
 Returns a string representation of the DRegularGrid instance. More...
 
Math.DRegularSpatialGrid __pos__ ()
 
Math.ConstDGridExpression __neg__ ()
 
Math.ConstDGridExpression __add__ (Math.ConstDGridExpression e)
 Returns the result of the addition operation self + e. More...
 
Math.ConstDGridExpression __sub__ (Math.ConstDGridExpression e)
 Returns the result of the subtraction operation self - e. More...
 
Math.ConstDGridExpression __mul__ (float t)
 Returns the result of the multiplication operation self * t. More...
 
Math.ConstDGridExpression __div__ (float t)
 Returns the result of the division operation self // t. More...
 
Math.ConstDGridExpression __truediv__ (float t)
 Returns the result of the true division operation self / t. More...
 
Math.ConstDGridExpression __rmul__ (float t)
 Returns the result of the multiplication operation t * self. More...
 
Math.DRegularSpatialGrid __iadd__ (Math.DRegularSpatialGrid g)
 Performs the in-place addition operation self += g. More...
 
Math.DRegularSpatialGrid __iadd__ (Math.ConstDGridExpression e)
 Performs the in-place addition operation self += e. More...
 
Math.DRegularSpatialGrid __isub__ (Math.DRegularSpatialGrid g)
 Performs the in-place subtraction operation self -= g. More...
 
Math.DRegularSpatialGrid __isub__ (Math.ConstDGridExpression e)
 Performs the in-place subtraction operation self -= e. More...
 
Math.DRegularSpatialGrid __imul__ (float t)
 Performs the in-place multiplication operation self *= t. More...
 
Math.DRegularSpatialGrid __idiv__ (float t)
 Performs the in-place division operation self /= t. More...
 
Math.DRegularSpatialGrid __itruediv__ (float t)
 
tuple __getstate__ ()
 
- Public Member Functions inherited from CDPL.Grid.DSpatialGrid
None __init__ ()
 Initializes the DSpatialGrid instance.
 
int getNumElements ()
 
None getCoordinates (int i, Math.Vector3D coords)
 Returns the 3D coordinates of the grid element at linear index i. More...
 
- Public Member Functions inherited from CDPL.Base.PropertyContainer
int getObjectID ()
 Returns the numeric identifier (ID) of the wrapped C++ class instance. More...
 
int getNumProperties ()
 Returns the number of property entries. More...
 
Any getPropertyOrDefault (LookupKey key, Any def_value)
 
list getPropertyKeys ()
 
list getPropertyValues ()
 
list getProperties ()
 Returns a reference to itself. More...
 
None setProperty (LookupKey key, Any value)
 
bool removeProperty (LookupKey key)
 Clears the value of the property specified by key. More...
 
Any getProperty (LookupKey key, bool throw_=False)
 Returns the value of the property specified by key. More...
 
bool isPropertySet (LookupKey key)
 Tells whether or not a value has been assigned to the property specified by key. More...
 
None clearProperties ()
 Clears all property values.
 
None addProperties (PropertyContainer cntnr)
 Adds the property value entries in the PropertyContainer instance cntnr. More...
 
None copyProperties (PropertyContainer cntnr)
 Replaces the current set of properties by a copy of the entries in cntnr. More...
 
None swap (PropertyContainer cntnr)
 Exchanges the properties of this container with the properties of the container cntnr. More...
 
Any __getitem__ (LookupKey key)
 
bool __contains__ (LookupKey key)
 Returns the result of the membership test operation key in self. More...
 
None __setitem__ (LookupKey key, Any value)
 
bool __delitem__ (LookupKey key)
 
- Public Member Functions inherited from CDPL.Math.DRegularSpatialGrid
None __init__ (DRegularSpatialGrid grid)
 Initializes a copy of the DRegularSpatialGrid instance grid. More...
 
None __init__ (DGrid data, float xs, float ys, float zs)
 Constructs the grid with anisotropic per-axis step sizes initialized to the supplied grid data. More...
 
None __init__ (DGrid data, float s)
 Constructs the grid with isotropic step size s and the supplied grid data. More...
 
None resize (int m, int n, int o, bool preserve=True, float v=0.0)
 Resizes the grid to \( m \times n \times o \) cells. More...
 
None clear (float v=0.0)
 Sets every cell of the grid to the value v. More...
 
float getXExtent ()
 Returns the spatial extent of the grid along the X axis ( \( (\mathrm{size}_1 - 1) \cdot \mathrm{xStep} \) for non-empty grids). More...
 
float getYExtent ()
 Returns the spatial extent of the grid along the Y axis. More...
 
float getZExtent ()
 Returns the spatial extent of the grid along the Z axis. More...
 
float getXStepSize ()
 Returns the per-cell step size along the X axis. More...
 
float getYStepSize ()
 Returns the per-cell step size along the Y axis. More...
 
float getZStepSize ()
 Returns the per-cell step size along the Z axis. More...
 
None setXStepSize (float xs)
 Sets the per-cell step size along the X axis to xs. More...
 
None setYStepSize (float ys)
 Sets the per-cell step size along the Y axis to ys. More...
 
None setZStepSize (float zs)
 Sets the per-cell step size along the Z axis to zs. More...
 
DGrid getData ()
 Returns a mutable reference to the underlying grid data container. More...
 
None setCoordinatesTransform (Matrix4D xform)
 Sets the cell-index to world-coordinate transformation to xform and caches its inverse. More...
 
Matrix4D getCoordinatesTransform ()
 Returns the coordinate transformation mapping cell-index coordinates to world coordinates. More...
 
None getLocalCoordinates (int i, int j, int k, object coords)
 Writes the local-space 3D position of the cell at (i, j, k) into coords. More...
 
None getLocalCoordinates (Vector3D world_coords, object local_coords)
 Transforms the world-space point world_coords into the grid's local coordinate frame and stores the result in local_coords. More...
 
bool containsPoint (Vector3F pos)
 Tells whether the world-space point pos lies within the grid bounds. More...
 
bool containsPoint (ConstFVectorExpression pos)
 Tells whether the world-space point pos lies within the grid bounds. More...
 
bool containsPoint (Vector3D pos)
 Tells whether the world-space point pos lies within the grid bounds. More...
 
bool containsPoint (ConstDVectorExpression pos)
 Tells whether the world-space point pos lies within the grid bounds. More...
 
bool containsPoint (Vector3L pos)
 Tells whether the world-space point pos lies within the grid bounds. More...
 
bool containsPoint (ConstLVectorExpression pos)
 Tells whether the world-space point pos lies within the grid bounds. More...
 
bool containsPoint (Vector3UL pos)
 Tells whether the world-space point pos lies within the grid bounds. More...
 
bool containsPoint (ConstULVectorExpression pos)
 Tells whether the world-space point pos lies within the grid bounds. More...
 
bool containsLocalPoint (Vector3F pos)
 Tells whether the local-space point pos lies within the grid bounds. More...
 
bool containsLocalPoint (ConstFVectorExpression pos)
 Tells whether the local-space point pos lies within the grid bounds. More...
 
bool containsLocalPoint (Vector3D pos)
 Tells whether the local-space point pos lies within the grid bounds. More...
 
bool containsLocalPoint (ConstDVectorExpression pos)
 Tells whether the local-space point pos lies within the grid bounds. More...
 
bool containsLocalPoint (Vector3L pos)
 Tells whether the local-space point pos lies within the grid bounds. More...
 
bool containsLocalPoint (ConstLVectorExpression pos)
 Tells whether the local-space point pos lies within the grid bounds. More...
 
bool containsLocalPoint (Vector3UL pos)
 Tells whether the local-space point pos lies within the grid bounds. More...
 
bool containsLocalPoint (ConstULVectorExpression pos)
 Tells whether the local-space point pos lies within the grid bounds. More...
 
None getContainingCell (Vector3F pos, object indices)
 Writes the (i, j, k) cell indices of the cell containing the world-space point pos into indices. More...
 
None getContainingCell (ConstFVectorExpression pos, object indices)
 Writes the (i, j, k) cell indices of the cell containing the world-space point pos into indices. More...
 
None getContainingCell (Vector3D pos, object indices)
 Writes the (i, j, k) cell indices of the cell containing the world-space point pos into indices. More...
 
None getContainingCell (ConstDVectorExpression pos, object indices)
 Writes the (i, j, k) cell indices of the cell containing the world-space point pos into indices. More...
 
None getContainingCell (Vector3L pos, object indices)
 Writes the (i, j, k) cell indices of the cell containing the world-space point pos into indices. More...
 
None getContainingCell (ConstLVectorExpression pos, object indices)
 Writes the (i, j, k) cell indices of the cell containing the world-space point pos into indices. More...
 
None getContainingCell (Vector3UL pos, object indices)
 Writes the (i, j, k) cell indices of the cell containing the world-space point pos into indices. More...
 
None getContainingCell (ConstULVectorExpression pos, object indices)
 Writes the (i, j, k) cell indices of the cell containing the world-space point pos into indices. More...
 
None getLocalContainingCell (Vector3F pos, object indices)
 Writes the (i, j, k) cell indices of the cell containing the local-space point pos into indices. More...
 
None getLocalContainingCell (ConstFVectorExpression pos, object indices)
 Writes the (i, j, k) cell indices of the cell containing the local-space point pos into indices. More...
 
None getLocalContainingCell (Vector3D pos, object indices)
 Writes the (i, j, k) cell indices of the cell containing the local-space point pos into indices. More...
 
None getLocalContainingCell (ConstDVectorExpression pos, object indices)
 Writes the (i, j, k) cell indices of the cell containing the local-space point pos into indices. More...
 
None getLocalContainingCell (Vector3L pos, object indices)
 Writes the (i, j, k) cell indices of the cell containing the local-space point pos into indices. More...
 
None getLocalContainingCell (ConstLVectorExpression pos, object indices)
 Writes the (i, j, k) cell indices of the cell containing the local-space point pos into indices. More...
 
None getLocalContainingCell (Vector3UL pos, object indices)
 Writes the (i, j, k) cell indices of the cell containing the local-space point pos into indices. More...
 
None getLocalContainingCell (ConstULVectorExpression pos, object indices)
 Writes the (i, j, k) cell indices of the cell containing the local-space point pos into indices. More...
 
int getObjectID ()
 Returns the numeric identifier (ID) of the wrapped C++ class instance. More...
 
DRegularSpatialGrid assign (ConstFGridExpression e)
 Assigns the grid expression e to the underlying grid data without intermediate temporary. More...
 
DRegularSpatialGrid assign (ConstDGridExpression e)
 Assigns the grid expression e to the underlying grid data without intermediate temporary. More...
 
DRegularSpatialGrid assign (DRegularSpatialGrid g)
 Replaces the current state of self with a copy of the state of the DRegularSpatialGrid instance g. More...
 
None swap (DRegularSpatialGrid g)
 
bool __eq__ (DRegularSpatialGrid g)
 Returns the result of the comparison operation self == g. More...
 
bool __eq__ (ConstDGridExpression e)
 Returns the result of the comparison operation self == e. More...
 
bool __ne__ (DRegularSpatialGrid g)
 Returns the result of the comparison operation self != g. More...
 
bool __ne__ (ConstDGridExpression e)
 Returns the result of the comparison operation self != e. More...
 
ConstDGridExpression __add__ (ConstDGridExpression e)
 Returns the result of the addition operation self + e. More...
 
ConstDGridExpression __sub__ (ConstDGridExpression e)
 Returns the result of the subtraction operation self - e. More...
 
DRegularSpatialGrid __iadd__ (DRegularSpatialGrid g)
 Performs the in-place addition operation self += g. More...
 
DRegularSpatialGrid __iadd__ (ConstDGridExpression e)
 Performs the in-place addition operation self += e. More...
 
DRegularSpatialGrid __isub__ (DRegularSpatialGrid g)
 Performs the in-place subtraction operation self -= g. More...
 
DRegularSpatialGrid __isub__ (ConstDGridExpression e)
 Performs the in-place subtraction operation self -= e. More...
 

Properties

 size1 = property(getSize1)
 
 size2 = property(getSize2)
 
 size3 = property(getSize3)
 
- Properties inherited from CDPL.Grid.AttributedGrid
 numElements = property(getNumElements)
 
- Properties inherited from CDPL.Base.PropertyContainer
 objectID = property(getObjectID)
 
 propertyKeys = property(getPropertyKeys)
 
 propertyValues = property(getPropertyValues)
 
 properties = property(getProperties)
 
 numProperties = property(getNumProperties)
 
- Properties inherited from CDPL.Math.DRegularSpatialGrid
 data = property(getData)
 
 coordsTransform = property(getCoordinatesTransform, setCoordinatesTransform)
 
 xStepSize = property(getXStepSize, setXStepSize)
 
 yStepSize = property(getYStepSize, setYStepSize)
 
 zStepSize = property(getZStepSize, setZStepSize)
 
 xExtent = property(getXExtent)
 
 yExtent = property(getYExtent)
 
 zExtent = property(getZExtent)
 
 objectID = property(getObjectID)
 
 size1 = property(getSize1)
 
 size2 = property(getSize2)
 
 size3 = property(getSize3)
 

Detailed Description

A regular spatial grid storing double-precision floating-point values.

Constructor & Destructor Documentation

◆ __init__() [1/5]

None CDPL.Grid.DRegularGrid.__init__ ( DRegularGrid  grid)

Initializes a copy of the DRegularGrid instance grid.

Parameters
gridThe DRegularGrid instance to copy.

◆ __init__() [2/5]

None CDPL.Grid.DRegularGrid.__init__ ( Math.DGrid  data,
float  xs,
float  ys,
float  zs 
)

Constructs a RegularGrid initialized from data, with the given grid spacing in x, y and z direction.

Parameters
dataThe initial grid data.
xsThe grid spacing in the x direction.
ysThe grid spacing in the y direction.
zsThe grid spacing in the z direction.

◆ __init__() [3/5]

None CDPL.Grid.DRegularGrid.__init__ ( Math.DGrid  data,
float  s 
)

Constructs a RegularGrid initialized from data with isotropic grid spacing.

Parameters
dataThe initial grid data.
sThe isotropic grid spacing applied to all three spatial dimensions.

◆ __init__() [4/5]

None CDPL.Grid.DRegularGrid.__init__ ( float  xs,
float  ys,
float  zs 
)

Constructs an empty RegularGrid with the given grid spacing in x, y and z direction.

Parameters
xsThe grid spacing in the x direction.
ysThe grid spacing in the y direction.
zsThe grid spacing in the z direction.

Reimplemented from CDPL.Math.DRegularSpatialGrid.

◆ __init__() [5/5]

None CDPL.Grid.DRegularGrid.__init__ ( float  s)

Constructs an empty RegularGrid with isotropic grid spacing.

Parameters
sThe isotropic grid spacing applied to all three spatial dimensions.

Reimplemented from CDPL.Math.DRegularSpatialGrid.

Member Function Documentation

◆ getCoordinates() [1/2]

None CDPL.Grid.DRegularGrid.getCoordinates ( int  i,
int  j,
int  k,
object  coords 
)
Parameters
i
j
k
coords

Reimplemented from CDPL.Math.DRegularSpatialGrid.

◆ getCoordinates() [2/2]

None CDPL.Grid.DRegularGrid.getCoordinates ( int  i,
object  coords 
)

Returns the 3D coordinates of the grid element at linear index i.

Parameters
iThe linear element index.
coordsThe output coordinates.

Reimplemented from CDPL.Math.DRegularSpatialGrid.

◆ assign() [1/4]

Math.DRegularSpatialGrid CDPL.Grid.DRegularGrid.assign ( Math.ConstFGridExpression  e)

Replaces the current state of self with a copy of the state of the ConstFGridExpression instance e.

Parameters
eThe ConstFGridExpression instance to copy.
Returns
self

◆ assign() [2/4]

Math.DRegularSpatialGrid CDPL.Grid.DRegularGrid.assign ( Math.ConstDGridExpression  e)

Replaces the current state of self with a copy of the state of the ConstDGridExpression instance e.

Parameters
eThe ConstDGridExpression instance to copy.
Returns
self

◆ assign() [3/4]

Math.DRegularSpatialGrid CDPL.Grid.DRegularGrid.assign ( object  e)

Replaces the current state of self with a copy of the state of the object instance e.

Parameters
eThe object instance to copy.
Returns
self

Reimplemented from CDPL.Math.DRegularSpatialGrid.

◆ assign() [4/4]

Math.DRegularSpatialGrid CDPL.Grid.DRegularGrid.assign ( Math.DRegularSpatialGrid  g)

Replaces the current state of self with a copy of the state of the DRegularSpatialGrid instance g.

Parameters
gThe DRegularSpatialGrid instance to copy.
Returns
self

◆ getSize1()

int CDPL.Grid.DRegularGrid.getSize1 ( )
Returns

Reimplemented from CDPL.Math.DRegularSpatialGrid.

◆ getSize2()

int CDPL.Grid.DRegularGrid.getSize2 ( )
Returns

Reimplemented from CDPL.Math.DRegularSpatialGrid.

◆ getSize3()

int CDPL.Grid.DRegularGrid.getSize3 ( )
Returns

Reimplemented from CDPL.Math.DRegularSpatialGrid.

◆ isEmpty()

bool CDPL.Grid.DRegularGrid.isEmpty ( )

Tells whether the grid is empty.

Returns
True if the grid is empty, and False otherwise.

Reimplemented from CDPL.Grid.DSpatialGrid.

◆ getElement() [1/2]

float CDPL.Grid.DRegularGrid.getElement ( int  i,
int  j,
int  k 
)
Parameters
i
j
k
Returns

Reimplemented from CDPL.Math.DRegularSpatialGrid.

◆ getElement() [2/2]

float CDPL.Grid.DRegularGrid.getElement ( int  i)
Parameters
i
Returns

Reimplemented from CDPL.Grid.DSpatialGrid.

◆ toArray()

object CDPL.Grid.DRegularGrid.toArray ( )
Returns

Reimplemented from CDPL.Math.DRegularSpatialGrid.

◆ getSize()

int CDPL.Grid.DRegularGrid.getSize ( )
Returns

Reimplemented from CDPL.Math.DRegularSpatialGrid.

◆ swap()

None CDPL.Grid.DRegularGrid.swap ( Math.DRegularSpatialGrid  g)
Parameters
g

◆ setElement() [1/2]

None CDPL.Grid.DRegularGrid.setElement ( int  i,
int  j,
int  k,
float  v 
)
Parameters
i
j
k
v

Reimplemented from CDPL.Math.DRegularSpatialGrid.

◆ setElement() [2/2]

None CDPL.Grid.DRegularGrid.setElement ( int  i,
float  v 
)
Parameters
i
v

Reimplemented from CDPL.Grid.DSpatialGrid.

◆ __getitem__() [1/3]

Base.Any CDPL.Grid.DRegularGrid.__getitem__ ( Base.LookupKey  key)
Parameters
key
Returns

Reimplemented from CDPL.Grid.DSpatialGrid.

◆ __getitem__() [2/3]

float CDPL.Grid.DRegularGrid.__getitem__ ( tuple  ijk)
Parameters
ijk
Returns

Reimplemented from CDPL.Math.DRegularSpatialGrid.

◆ __getitem__() [3/3]

float CDPL.Grid.DRegularGrid.__getitem__ ( int  i)
Parameters
i
Returns

Reimplemented from CDPL.Grid.DSpatialGrid.

◆ __contains__()

bool CDPL.Grid.DRegularGrid.__contains__ ( Base.LookupKey  key)

Returns the result of the membership test operation key in self.

Parameters
keyThe value to test for membership.
Returns
The result of the membership test operation.

Reimplemented from CDPL.Grid.DSpatialGrid.

◆ __setitem__() [1/3]

None CDPL.Grid.DRegularGrid.__setitem__ ( Base.LookupKey  key,
Base.Any  value 
)
Parameters
key
value

Reimplemented from CDPL.Grid.DSpatialGrid.

◆ __setitem__() [2/3]

None CDPL.Grid.DRegularGrid.__setitem__ ( tuple  ijk,
float  v 
)
Parameters
ijk
v

Reimplemented from CDPL.Math.DRegularSpatialGrid.

◆ __setitem__() [3/3]

None CDPL.Grid.DRegularGrid.__setitem__ ( int  i,
float  v 
)
Parameters
i
v

Reimplemented from CDPL.Grid.DSpatialGrid.

◆ __delitem__()

bool CDPL.Grid.DRegularGrid.__delitem__ ( Base.LookupKey  key)
Parameters
key
Returns

Reimplemented from CDPL.Grid.DSpatialGrid.

◆ __len__()

int CDPL.Grid.DRegularGrid.__len__ ( )
Returns

Reimplemented from CDPL.Grid.DSpatialGrid.

◆ __call__() [1/2]

float CDPL.Grid.DRegularGrid.__call__ ( int  i,
int  j,
int  k 
)
Parameters
i
j
k
Returns

Reimplemented from CDPL.Math.DRegularSpatialGrid.

◆ __call__() [2/2]

float CDPL.Grid.DRegularGrid.__call__ ( int  i)

Returns a reference to the grid element at linear index i.

Parameters
iThe linear element index.
Returns
A reference to the grid element.

Reimplemented from CDPL.Grid.DSpatialGrid.

◆ __eq__() [1/2]

bool CDPL.Grid.DRegularGrid.__eq__ ( Math.DRegularSpatialGrid  g)

Returns the result of the comparison operation self == g.

Parameters
gThe DRegularSpatialGrid instance to be compared with.
Returns
The result of the comparison operation.

◆ __eq__() [2/2]

bool CDPL.Grid.DRegularGrid.__eq__ ( Math.ConstDGridExpression  e)

Returns the result of the comparison operation self == e.

Parameters
eThe ConstDGridExpression instance to be compared with.
Returns
The result of the comparison operation.

◆ __ne__() [1/2]

bool CDPL.Grid.DRegularGrid.__ne__ ( Math.DRegularSpatialGrid  g)

Returns the result of the comparison operation self != g.

Parameters
gThe DRegularSpatialGrid instance to be compared with.
Returns
The result of the comparison operation.

◆ __ne__() [2/2]

bool CDPL.Grid.DRegularGrid.__ne__ ( Math.ConstDGridExpression  e)

Returns the result of the comparison operation self != e.

Parameters
eThe ConstDGridExpression instance to be compared with.
Returns
The result of the comparison operation.

◆ __str__()

str CDPL.Grid.DRegularGrid.__str__ ( )

Returns a string representation of the DRegularGrid instance.

Returns
The generated string representation.

Reimplemented from CDPL.Math.DRegularSpatialGrid.

◆ __pos__()

Math.DRegularSpatialGrid CDPL.Grid.DRegularGrid.__pos__ ( )
Returns

Reimplemented from CDPL.Math.DRegularSpatialGrid.

◆ __neg__()

Math.ConstDGridExpression CDPL.Grid.DRegularGrid.__neg__ ( )
Returns

Reimplemented from CDPL.Math.DRegularSpatialGrid.

◆ __add__()

Math.ConstDGridExpression CDPL.Grid.DRegularGrid.__add__ ( Math.ConstDGridExpression  e)

Returns the result of the addition operation self + e.

Parameters
eSpecifies the second addend.
Returns
A Math.ConstDGridExpression instance holding the result of the addition.

◆ __sub__()

Math.ConstDGridExpression CDPL.Grid.DRegularGrid.__sub__ ( Math.ConstDGridExpression  e)

Returns the result of the subtraction operation self - e.

Parameters
eSpecifies the subtrahend.
Returns
A DRegularGrid instance holding the result of the subtraction.

◆ __mul__()

Math.ConstDGridExpression CDPL.Grid.DRegularGrid.__mul__ ( float  t)

Returns the result of the multiplication operation self * t.

Parameters
tSpecifies the multiplier.
Returns
A Math.ConstDGridExpression instance holding the result of the multiplication.

Reimplemented from CDPL.Math.DRegularSpatialGrid.

◆ __div__()

Math.ConstDGridExpression CDPL.Grid.DRegularGrid.__div__ ( float  t)

Returns the result of the division operation self // t.

Parameters
tSpecifies the divisor.
Returns
A Math.ConstDGridExpression instance holding the result of the division.

Reimplemented from CDPL.Math.DRegularSpatialGrid.

◆ __truediv__()

Math.ConstDGridExpression CDPL.Grid.DRegularGrid.__truediv__ ( float  t)

Returns the result of the true division operation self / t.

Parameters
tSpecifies the divisor.
Returns
A Math.ConstDGridExpression instance holding the result of the division.

Reimplemented from CDPL.Math.DRegularSpatialGrid.

◆ __rmul__()

Math.ConstDGridExpression CDPL.Grid.DRegularGrid.__rmul__ ( float  t)

Returns the result of the multiplication operation t * self.

Parameters
tSpecifies the multiplicand.
Returns
A Math.ConstDGridExpression instance holding the result of the multiplication.

Reimplemented from CDPL.Math.DRegularSpatialGrid.

◆ __iadd__() [1/2]

Math.DRegularSpatialGrid CDPL.Grid.DRegularGrid.__iadd__ ( Math.DRegularSpatialGrid  g)

Performs the in-place addition operation self += g.

Parameters
gSpecifies the second addend.
Returns
The updated Math.DRegularSpatialGrid instance self.

◆ __iadd__() [2/2]

Math.DRegularSpatialGrid CDPL.Grid.DRegularGrid.__iadd__ ( Math.ConstDGridExpression  e)

Performs the in-place addition operation self += e.

Parameters
eSpecifies the second addend.
Returns
The updated Math.DRegularSpatialGrid instance self.

◆ __isub__() [1/2]

Math.DRegularSpatialGrid CDPL.Grid.DRegularGrid.__isub__ ( Math.DRegularSpatialGrid  g)

Performs the in-place subtraction operation self -= g.

Parameters
gSpecifies the subtrahend.
Returns
The updated Math.DRegularSpatialGrid instance self.

◆ __isub__() [2/2]

Math.DRegularSpatialGrid CDPL.Grid.DRegularGrid.__isub__ ( Math.ConstDGridExpression  e)

Performs the in-place subtraction operation self -= e.

Parameters
eSpecifies the subtrahend.
Returns
The updated Math.DRegularSpatialGrid instance self.

◆ __imul__()

Math.DRegularSpatialGrid CDPL.Grid.DRegularGrid.__imul__ ( float  t)

Performs the in-place multiplication operation self *= t.

Parameters
tSpecifies the multiplier.
Returns
The updated Math.DRegularSpatialGrid instance self.

Reimplemented from CDPL.Math.DRegularSpatialGrid.

◆ __idiv__()

Math.DRegularSpatialGrid CDPL.Grid.DRegularGrid.__idiv__ ( float  t)

Performs the in-place division operation self /= t.

Parameters
tSpecifies the divisor.
Returns
The updated Math.DRegularSpatialGrid instance self.

Reimplemented from CDPL.Math.DRegularSpatialGrid.

◆ __itruediv__()

Math.DRegularSpatialGrid CDPL.Grid.DRegularGrid.__itruediv__ ( float  t)
Parameters
t
Returns

Reimplemented from CDPL.Math.DRegularSpatialGrid.

◆ __getstate__()

tuple CDPL.Grid.DRegularGrid.__getstate__ ( )
Parameters
arg1
Returns