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

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

+ Inheritance diagram for CDPL.Grid.FRegularGrid:

Public Member Functions

None __init__ (FRegularGrid grid)
 Initializes a copy of the FRegularGrid instance grid. More...
 
None __init__ (Math.FGrid 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.FGrid 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.FRegularSpatialGrid assign (Math.ConstFGridExpression e)
 Replaces the current state of self with a copy of the state of the ConstFGridExpression instance e. More...
 
Math.FRegularSpatialGrid assign (Math.ConstDGridExpression e)
 Replaces the current state of self with a copy of the state of the ConstDGridExpression instance e. More...
 
Math.FRegularSpatialGrid assign (object e)
 Replaces the current state of self with a copy of the state of the object instance e. More...
 
Math.FRegularSpatialGrid assign (Math.FRegularSpatialGrid g)
 Replaces the current state of self with a copy of the state of the FRegularSpatialGrid 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.FRegularSpatialGrid 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.FRegularSpatialGrid g)
 Returns the result of the comparison operation self == g. More...
 
bool __eq__ (Math.ConstFGridExpression e)
 Returns the result of the comparison operation self == e. More...
 
bool __ne__ (Math.FRegularSpatialGrid g)
 Returns the result of the comparison operation self != g. More...
 
bool __ne__ (Math.ConstFGridExpression e)
 Returns the result of the comparison operation self != e. More...
 
str __str__ ()
 Returns a string representation of the FRegularGrid instance. More...
 
Math.FRegularSpatialGrid __pos__ ()
 
Math.ConstFGridExpression __neg__ ()
 
Math.ConstFGridExpression __add__ (Math.ConstFGridExpression e)
 Returns the result of the addition operation self + e. More...
 
Math.ConstFGridExpression __sub__ (Math.ConstFGridExpression e)
 Returns the result of the subtraction operation self - e. More...
 
Math.ConstFGridExpression __mul__ (float t)
 Returns the result of the multiplication operation self * t. More...
 
Math.ConstFGridExpression __div__ (float t)
 Returns the result of the division operation self // t. More...
 
Math.ConstFGridExpression __truediv__ (float t)
 Returns the result of the true division operation self / t. More...
 
Math.ConstFGridExpression __rmul__ (float t)
 Returns the result of the multiplication operation t * self. More...
 
Math.FRegularSpatialGrid __iadd__ (Math.FRegularSpatialGrid g)
 Performs the in-place addition operation self += g. More...
 
Math.FRegularSpatialGrid __iadd__ (Math.ConstFGridExpression e)
 Performs the in-place addition operation self += e. More...
 
Math.FRegularSpatialGrid __isub__ (Math.FRegularSpatialGrid g)
 Performs the in-place subtraction operation self -= g. More...
 
Math.FRegularSpatialGrid __isub__ (Math.ConstFGridExpression e)
 Performs the in-place subtraction operation self -= e. More...
 
Math.FRegularSpatialGrid __imul__ (float t)
 Performs the in-place multiplication operation self *= t. More...
 
Math.FRegularSpatialGrid __idiv__ (float t)
 Performs the in-place division operation self /= t. More...
 
Math.FRegularSpatialGrid __itruediv__ (float t)
 
- Public Member Functions inherited from CDPL.Grid.FSpatialGrid
None __init__ ()
 Initializes the FSpatialGrid instance.
 
int getNumElements ()
 
None getCoordinates (int i, Math.Vector3F 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.FRegularSpatialGrid
None __init__ (FRegularSpatialGrid grid)
 Initializes a copy of the FRegularSpatialGrid instance grid. More...
 
None __init__ (FGrid 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__ (FGrid 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...
 
FGrid getData ()
 Returns a mutable reference to the underlying grid data container. More...
 
None setCoordinatesTransform (Matrix4F xform)
 Sets the cell-index to world-coordinate transformation to xform and caches its inverse. More...
 
Matrix4F 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 (Vector3F 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...
 
FRegularSpatialGrid assign (ConstFGridExpression e)
 Assigns the grid expression e to the underlying grid data without intermediate temporary. More...
 
FRegularSpatialGrid assign (ConstDGridExpression e)
 Assigns the grid expression e to the underlying grid data without intermediate temporary. More...
 
FRegularSpatialGrid assign (FRegularSpatialGrid g)
 Replaces the current state of self with a copy of the state of the FRegularSpatialGrid instance g. More...
 
None swap (FRegularSpatialGrid g)
 
bool __eq__ (FRegularSpatialGrid g)
 Returns the result of the comparison operation self == g. More...
 
bool __eq__ (ConstFGridExpression e)
 Returns the result of the comparison operation self == e. More...
 
bool __ne__ (FRegularSpatialGrid g)
 Returns the result of the comparison operation self != g. More...
 
bool __ne__ (ConstFGridExpression e)
 Returns the result of the comparison operation self != e. More...
 
ConstFGridExpression __add__ (ConstFGridExpression e)
 Returns the result of the addition operation self + e. More...
 
ConstFGridExpression __sub__ (ConstFGridExpression e)
 Returns the result of the subtraction operation self - e. More...
 
FRegularSpatialGrid __iadd__ (FRegularSpatialGrid g)
 Performs the in-place addition operation self += g. More...
 
FRegularSpatialGrid __iadd__ (ConstFGridExpression e)
 Performs the in-place addition operation self += e. More...
 
FRegularSpatialGrid __isub__ (FRegularSpatialGrid g)
 Performs the in-place subtraction operation self -= g. More...
 
FRegularSpatialGrid __isub__ (ConstFGridExpression 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.FRegularSpatialGrid
 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 single-precision floating-point values.

Constructor & Destructor Documentation

◆ __init__() [1/5]

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

Initializes a copy of the FRegularGrid instance grid.

Parameters
gridThe FRegularGrid instance to copy.

◆ __init__() [2/5]

None CDPL.Grid.FRegularGrid.__init__ ( Math.FGrid  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.FRegularGrid.__init__ ( Math.FGrid  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.FRegularGrid.__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.FRegularSpatialGrid.

◆ __init__() [5/5]

None CDPL.Grid.FRegularGrid.__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.FRegularSpatialGrid.

Member Function Documentation

◆ getCoordinates() [1/2]

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

Reimplemented from CDPL.Math.FRegularSpatialGrid.

◆ getCoordinates() [2/2]

None CDPL.Grid.FRegularGrid.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.FRegularSpatialGrid.

◆ assign() [1/4]

Math.FRegularSpatialGrid CDPL.Grid.FRegularGrid.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.FRegularSpatialGrid CDPL.Grid.FRegularGrid.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.FRegularSpatialGrid CDPL.Grid.FRegularGrid.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.FRegularSpatialGrid.

◆ assign() [4/4]

Math.FRegularSpatialGrid CDPL.Grid.FRegularGrid.assign ( Math.FRegularSpatialGrid  g)

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

Parameters
gThe FRegularSpatialGrid instance to copy.
Returns
self

◆ getSize1()

int CDPL.Grid.FRegularGrid.getSize1 ( )
Returns

Reimplemented from CDPL.Math.FRegularSpatialGrid.

◆ getSize2()

int CDPL.Grid.FRegularGrid.getSize2 ( )
Returns

Reimplemented from CDPL.Math.FRegularSpatialGrid.

◆ getSize3()

int CDPL.Grid.FRegularGrid.getSize3 ( )
Returns

Reimplemented from CDPL.Math.FRegularSpatialGrid.

◆ isEmpty()

bool CDPL.Grid.FRegularGrid.isEmpty ( )

Tells whether the grid is empty.

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

Reimplemented from CDPL.Grid.FSpatialGrid.

◆ getElement() [1/2]

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

Reimplemented from CDPL.Math.FRegularSpatialGrid.

◆ getElement() [2/2]

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

Reimplemented from CDPL.Grid.FSpatialGrid.

◆ toArray()

object CDPL.Grid.FRegularGrid.toArray ( )
Returns

Reimplemented from CDPL.Math.FRegularSpatialGrid.

◆ getSize()

int CDPL.Grid.FRegularGrid.getSize ( )
Returns

Reimplemented from CDPL.Math.FRegularSpatialGrid.

◆ swap()

None CDPL.Grid.FRegularGrid.swap ( Math.FRegularSpatialGrid  g)
Parameters
g

◆ setElement() [1/2]

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

Reimplemented from CDPL.Math.FRegularSpatialGrid.

◆ setElement() [2/2]

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

Reimplemented from CDPL.Grid.FSpatialGrid.

◆ __getitem__() [1/3]

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

Reimplemented from CDPL.Grid.FSpatialGrid.

◆ __getitem__() [2/3]

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

Reimplemented from CDPL.Math.FRegularSpatialGrid.

◆ __getitem__() [3/3]

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

Reimplemented from CDPL.Grid.FSpatialGrid.

◆ __contains__()

bool CDPL.Grid.FRegularGrid.__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.FSpatialGrid.

◆ __setitem__() [1/3]

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

Reimplemented from CDPL.Grid.FSpatialGrid.

◆ __setitem__() [2/3]

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

Reimplemented from CDPL.Math.FRegularSpatialGrid.

◆ __setitem__() [3/3]

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

Reimplemented from CDPL.Grid.FSpatialGrid.

◆ __delitem__()

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

Reimplemented from CDPL.Grid.FSpatialGrid.

◆ __len__()

int CDPL.Grid.FRegularGrid.__len__ ( )
Returns

Reimplemented from CDPL.Grid.FSpatialGrid.

◆ __call__() [1/2]

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

Reimplemented from CDPL.Math.FRegularSpatialGrid.

◆ __call__() [2/2]

float CDPL.Grid.FRegularGrid.__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.FSpatialGrid.

◆ __eq__() [1/2]

bool CDPL.Grid.FRegularGrid.__eq__ ( Math.FRegularSpatialGrid  g)

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

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

◆ __eq__() [2/2]

bool CDPL.Grid.FRegularGrid.__eq__ ( Math.ConstFGridExpression  e)

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

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

◆ __ne__() [1/2]

bool CDPL.Grid.FRegularGrid.__ne__ ( Math.FRegularSpatialGrid  g)

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

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

◆ __ne__() [2/2]

bool CDPL.Grid.FRegularGrid.__ne__ ( Math.ConstFGridExpression  e)

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

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

◆ __str__()

str CDPL.Grid.FRegularGrid.__str__ ( )

Returns a string representation of the FRegularGrid instance.

Returns
The generated string representation.

Reimplemented from CDPL.Math.FRegularSpatialGrid.

◆ __pos__()

Math.FRegularSpatialGrid CDPL.Grid.FRegularGrid.__pos__ ( )
Returns

Reimplemented from CDPL.Math.FRegularSpatialGrid.

◆ __neg__()

Math.ConstFGridExpression CDPL.Grid.FRegularGrid.__neg__ ( )
Returns

Reimplemented from CDPL.Math.FRegularSpatialGrid.

◆ __add__()

Math.ConstFGridExpression CDPL.Grid.FRegularGrid.__add__ ( Math.ConstFGridExpression  e)

Returns the result of the addition operation self + e.

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

◆ __sub__()

Math.ConstFGridExpression CDPL.Grid.FRegularGrid.__sub__ ( Math.ConstFGridExpression  e)

Returns the result of the subtraction operation self - e.

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

◆ __mul__()

Math.ConstFGridExpression CDPL.Grid.FRegularGrid.__mul__ ( float  t)

Returns the result of the multiplication operation self * t.

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

Reimplemented from CDPL.Math.FRegularSpatialGrid.

◆ __div__()

Math.ConstFGridExpression CDPL.Grid.FRegularGrid.__div__ ( float  t)

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

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

Reimplemented from CDPL.Math.FRegularSpatialGrid.

◆ __truediv__()

Math.ConstFGridExpression CDPL.Grid.FRegularGrid.__truediv__ ( float  t)

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

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

Reimplemented from CDPL.Math.FRegularSpatialGrid.

◆ __rmul__()

Math.ConstFGridExpression CDPL.Grid.FRegularGrid.__rmul__ ( float  t)

Returns the result of the multiplication operation t * self.

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

Reimplemented from CDPL.Math.FRegularSpatialGrid.

◆ __iadd__() [1/2]

Math.FRegularSpatialGrid CDPL.Grid.FRegularGrid.__iadd__ ( Math.FRegularSpatialGrid  g)

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

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

◆ __iadd__() [2/2]

Math.FRegularSpatialGrid CDPL.Grid.FRegularGrid.__iadd__ ( Math.ConstFGridExpression  e)

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

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

◆ __isub__() [1/2]

Math.FRegularSpatialGrid CDPL.Grid.FRegularGrid.__isub__ ( Math.FRegularSpatialGrid  g)

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

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

◆ __isub__() [2/2]

Math.FRegularSpatialGrid CDPL.Grid.FRegularGrid.__isub__ ( Math.ConstFGridExpression  e)

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

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

◆ __imul__()

Math.FRegularSpatialGrid CDPL.Grid.FRegularGrid.__imul__ ( float  t)

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

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

Reimplemented from CDPL.Math.FRegularSpatialGrid.

◆ __idiv__()

Math.FRegularSpatialGrid CDPL.Grid.FRegularGrid.__idiv__ ( float  t)

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

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

Reimplemented from CDPL.Math.FRegularSpatialGrid.

◆ __itruediv__()

Math.FRegularSpatialGrid CDPL.Grid.FRegularGrid.__itruediv__ ( float  t)
Parameters
t
Returns

Reimplemented from CDPL.Math.FRegularSpatialGrid.