Chemical Data Processing Library Python API - Version 1.2.0
Classes | Public Member Functions | Properties | List of all members
CDPL.Math.DRegularSpatialGrid Class Reference

An unbounded dense regular grid in 3D space holding floating point values of type double. More...

+ Inheritance diagram for CDPL.Math.DRegularSpatialGrid:

Classes

class  DataMode
 

Public Member Functions

None __init__ (DRegularSpatialGrid grid)
 Initializes a copy of the DRegularSpatialGrid instance grid. More...
 
None __init__ (DGrid data, float xs, float ys, float zs)
 Initializes the DRegularSpatialGrid instance. More...
 
None __init__ (DGrid data, float s)
 Initializes the DRegularSpatialGrid instance. More...
 
None __init__ (float xs, float ys, float zs)
 Initializes the DRegularSpatialGrid instance. More...
 
None __init__ (float s)
 Initializes the DRegularSpatialGrid instance. More...
 
None resize (int m, int n, int o, bool preserve=True, float v=0.0)
 
None clear (float v=0.0)
 
DataMode getDataMode ()
 
None setDataMode (DataMode mode)
 
float getXExtent ()
 
float getYExtent ()
 
float getZExtent ()
 
float getXStepSize ()
 
float getYStepSize ()
 
float getZStepSize ()
 
None setXStepSize (float xs)
 
None setYStepSize (float ys)
 
None setZStepSize (float zs)
 
DGrid getData ()
 
None setCoordinatesTransform (Matrix4D xform)
 
Matrix4D getCoordinatesTransform ()
 
None getCoordinates (int i, int j, int k, object coords)
 
None getCoordinates (int i, object coords)
 
None getLocalCoordinates (int i, int j, int k, object coords)
 
None getLocalCoordinates (Vector3D world_coords, object local_coords)
 
bool containsPoint (Vector3F pos)
 
bool containsPoint (ConstFVectorExpression pos)
 
bool containsPoint (Vector3D pos)
 
bool containsPoint (ConstDVectorExpression pos)
 
bool containsPoint (Vector3L pos)
 
bool containsPoint (ConstLVectorExpression pos)
 
bool containsPoint (Vector3UL pos)
 
bool containsPoint (ConstULVectorExpression pos)
 
bool containsLocalPoint (Vector3F pos)
 
bool containsLocalPoint (ConstFVectorExpression pos)
 
bool containsLocalPoint (Vector3D pos)
 
bool containsLocalPoint (ConstDVectorExpression pos)
 
bool containsLocalPoint (Vector3L pos)
 
bool containsLocalPoint (ConstLVectorExpression pos)
 
bool containsLocalPoint (Vector3UL pos)
 
bool containsLocalPoint (ConstULVectorExpression pos)
 
None getContainingCell (Vector3F pos, object indices)
 
None getContainingCell (ConstFVectorExpression pos, object indices)
 
None getContainingCell (Vector3D pos, object indices)
 
None getContainingCell (ConstDVectorExpression pos, object indices)
 
None getContainingCell (Vector3L pos, object indices)
 
None getContainingCell (ConstLVectorExpression pos, object indices)
 
None getContainingCell (Vector3UL pos, object indices)
 
None getContainingCell (ConstULVectorExpression pos, object indices)
 
None getLocalContainingCell (Vector3F pos, object indices)
 
None getLocalContainingCell (ConstFVectorExpression pos, object indices)
 
None getLocalContainingCell (Vector3D pos, object indices)
 
None getLocalContainingCell (ConstDVectorExpression pos, object indices)
 
None getLocalContainingCell (Vector3L pos, object indices)
 
None getLocalContainingCell (ConstLVectorExpression pos, object indices)
 
None getLocalContainingCell (Vector3UL pos, object indices)
 
None getLocalContainingCell (ConstULVectorExpression pos, object indices)
 
int getObjectID ()
 Returns the numeric identifier (ID) of the wrapped C++ class instance. More...
 
DRegularSpatialGrid assign (ConstFGridExpression e)
 Replaces the current state of self with a copy of the state of the ConstFGridExpression instance e. More...
 
DRegularSpatialGrid assign (ConstDGridExpression e)
 Replaces the current state of self with a copy of the state of the ConstDGridExpression instance e. More...
 
DRegularSpatialGrid assign (object e)
 Replaces the current state of self with a copy of the state of the object instance e. More...
 
DRegularSpatialGrid assign (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 ()
 
float getElement (int i, int j, int k)
 
float getElement (int i)
 
object toArray ()
 
int getSize ()
 
None swap (DRegularSpatialGrid g)
 
None setElement (int i, int j, int k, float v)
 
None setElement (int i, float v)
 
float __call__ (int i, int j, int k)
 
float __call__ (int i)
 
float __getitem__ (tuple ijk)
 
float __getitem__ (int i)
 
int __len__ ()
 
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...
 
str __str__ ()
 Returns a string representation of the DRegularSpatialGrid instance. More...
 
DRegularSpatialGrid __pos__ ()
 
ConstDGridExpression __neg__ ()
 
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...
 
ConstDGridExpression __mul__ (float t)
 Returns the result of the multiplication operation self * t. More...
 
ConstDGridExpression __div__ (float t)
 Returns the result of the division operation self / t. More...
 
ConstDGridExpression __truediv__ (float t)
 
ConstDGridExpression __rmul__ (float t)
 
None __setitem__ (tuple ijk, float v)
 
None __setitem__ (int i, float v)
 
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...
 
DRegularSpatialGrid __imul__ (float t)
 Performs the in-place multiplication operation self *= t. More...
 
DRegularSpatialGrid __idiv__ (float t)
 Performs the in-place division operation self /= t. More...
 
DRegularSpatialGrid __itruediv__ (float t)
 

Properties

 data = property(getData)
 
 coordsTransform = property(getCoordinatesTransform, setCoordinatesTransform)
 
 dataMode = property(getDataMode, setDataMode)
 
 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

An unbounded dense regular grid in 3D space holding floating point values of type double.

Constructor & Destructor Documentation

◆ __init__() [1/5]

None CDPL.Math.DRegularSpatialGrid.__init__ ( DRegularSpatialGrid  grid)

Initializes a copy of the DRegularSpatialGrid instance grid.

Parameters
gridThe DRegularSpatialGrid instance to copy.

◆ __init__() [2/5]

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

Initializes the DRegularSpatialGrid instance.

Parameters
data
xs
ys
zs

◆ __init__() [3/5]

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

Initializes the DRegularSpatialGrid instance.

Parameters
data
s

◆ __init__() [4/5]

None CDPL.Math.DRegularSpatialGrid.__init__ ( float  xs,
float  ys,
float  zs 
)

Initializes the DRegularSpatialGrid instance.

Parameters
xs
ys
zs

Reimplemented in CDPL.Grid.DRegularGrid.

◆ __init__() [5/5]

None CDPL.Math.DRegularSpatialGrid.__init__ ( float  s)

Initializes the DRegularSpatialGrid instance.

Parameters
s

Reimplemented in CDPL.Grid.DRegularGrid.

Member Function Documentation

◆ resize()

None CDPL.Math.DRegularSpatialGrid.resize ( int  m,
int  n,
int  o,
bool   preserve = True,
float   v = 0.0 
)
Parameters
m
n
o
preserve
v

◆ clear()

None CDPL.Math.DRegularSpatialGrid.clear ( float   v = 0.0)
Parameters
v

◆ getDataMode()

DataMode CDPL.Math.DRegularSpatialGrid.getDataMode ( )
Returns

◆ setDataMode()

None CDPL.Math.DRegularSpatialGrid.setDataMode ( DataMode  mode)
Parameters
mode

◆ getXExtent()

float CDPL.Math.DRegularSpatialGrid.getXExtent ( )
Returns

◆ getYExtent()

float CDPL.Math.DRegularSpatialGrid.getYExtent ( )
Returns

◆ getZExtent()

float CDPL.Math.DRegularSpatialGrid.getZExtent ( )
Returns

◆ getXStepSize()

float CDPL.Math.DRegularSpatialGrid.getXStepSize ( )
Returns

◆ getYStepSize()

float CDPL.Math.DRegularSpatialGrid.getYStepSize ( )
Returns

◆ getZStepSize()

float CDPL.Math.DRegularSpatialGrid.getZStepSize ( )
Returns

◆ setXStepSize()

None CDPL.Math.DRegularSpatialGrid.setXStepSize ( float  xs)
Parameters
xs

◆ setYStepSize()

None CDPL.Math.DRegularSpatialGrid.setYStepSize ( float  ys)
Parameters
ys

◆ setZStepSize()

None CDPL.Math.DRegularSpatialGrid.setZStepSize ( float  zs)
Parameters
zs

◆ getData()

DGrid CDPL.Math.DRegularSpatialGrid.getData ( )
Returns

◆ setCoordinatesTransform()

None CDPL.Math.DRegularSpatialGrid.setCoordinatesTransform ( Matrix4D  xform)
Parameters
xform

◆ getCoordinatesTransform()

Matrix4D CDPL.Math.DRegularSpatialGrid.getCoordinatesTransform ( )
Returns

◆ getCoordinates() [1/2]

None CDPL.Math.DRegularSpatialGrid.getCoordinates ( int  i,
int  j,
int  k,
object  coords 
)
Parameters
i
j
k
coords

Reimplemented in CDPL.Grid.DRegularGrid.

◆ getCoordinates() [2/2]

None CDPL.Math.DRegularSpatialGrid.getCoordinates ( int  i,
object  coords 
)
Parameters
i
coords

Reimplemented in CDPL.Grid.DRegularGrid.

◆ getLocalCoordinates() [1/2]

None CDPL.Math.DRegularSpatialGrid.getLocalCoordinates ( int  i,
int  j,
int  k,
object  coords 
)
Parameters
i
j
k
coords

◆ getLocalCoordinates() [2/2]

None CDPL.Math.DRegularSpatialGrid.getLocalCoordinates ( Vector3D  world_coords,
object  local_coords 
)
Parameters
world_coords
local_coords

◆ containsPoint() [1/8]

bool CDPL.Math.DRegularSpatialGrid.containsPoint ( Vector3F  pos)
Parameters
pos
Returns

◆ containsPoint() [2/8]

bool CDPL.Math.DRegularSpatialGrid.containsPoint ( ConstFVectorExpression  pos)
Parameters
pos
Returns

◆ containsPoint() [3/8]

bool CDPL.Math.DRegularSpatialGrid.containsPoint ( Vector3D  pos)
Parameters
pos
Returns

◆ containsPoint() [4/8]

bool CDPL.Math.DRegularSpatialGrid.containsPoint ( ConstDVectorExpression  pos)
Parameters
pos
Returns

◆ containsPoint() [5/8]

bool CDPL.Math.DRegularSpatialGrid.containsPoint ( Vector3L  pos)
Parameters
pos
Returns

◆ containsPoint() [6/8]

bool CDPL.Math.DRegularSpatialGrid.containsPoint ( ConstLVectorExpression  pos)
Parameters
pos
Returns

◆ containsPoint() [7/8]

bool CDPL.Math.DRegularSpatialGrid.containsPoint ( Vector3UL  pos)
Parameters
pos
Returns

◆ containsPoint() [8/8]

bool CDPL.Math.DRegularSpatialGrid.containsPoint ( ConstULVectorExpression  pos)
Parameters
pos
Returns

◆ containsLocalPoint() [1/8]

bool CDPL.Math.DRegularSpatialGrid.containsLocalPoint ( Vector3F  pos)
Parameters
pos
Returns

◆ containsLocalPoint() [2/8]

bool CDPL.Math.DRegularSpatialGrid.containsLocalPoint ( ConstFVectorExpression  pos)
Parameters
pos
Returns

◆ containsLocalPoint() [3/8]

bool CDPL.Math.DRegularSpatialGrid.containsLocalPoint ( Vector3D  pos)
Parameters
pos
Returns

◆ containsLocalPoint() [4/8]

bool CDPL.Math.DRegularSpatialGrid.containsLocalPoint ( ConstDVectorExpression  pos)
Parameters
pos
Returns

◆ containsLocalPoint() [5/8]

bool CDPL.Math.DRegularSpatialGrid.containsLocalPoint ( Vector3L  pos)
Parameters
pos
Returns

◆ containsLocalPoint() [6/8]

bool CDPL.Math.DRegularSpatialGrid.containsLocalPoint ( ConstLVectorExpression  pos)
Parameters
pos
Returns

◆ containsLocalPoint() [7/8]

bool CDPL.Math.DRegularSpatialGrid.containsLocalPoint ( Vector3UL  pos)
Parameters
pos
Returns

◆ containsLocalPoint() [8/8]

bool CDPL.Math.DRegularSpatialGrid.containsLocalPoint ( ConstULVectorExpression  pos)
Parameters
pos
Returns

◆ getContainingCell() [1/8]

None CDPL.Math.DRegularSpatialGrid.getContainingCell ( Vector3F  pos,
object  indices 
)
Parameters
pos
indices

◆ getContainingCell() [2/8]

None CDPL.Math.DRegularSpatialGrid.getContainingCell ( ConstFVectorExpression  pos,
object  indices 
)
Parameters
pos
indices

◆ getContainingCell() [3/8]

None CDPL.Math.DRegularSpatialGrid.getContainingCell ( Vector3D  pos,
object  indices 
)
Parameters
pos
indices

◆ getContainingCell() [4/8]

None CDPL.Math.DRegularSpatialGrid.getContainingCell ( ConstDVectorExpression  pos,
object  indices 
)
Parameters
pos
indices

◆ getContainingCell() [5/8]

None CDPL.Math.DRegularSpatialGrid.getContainingCell ( Vector3L  pos,
object  indices 
)
Parameters
pos
indices

◆ getContainingCell() [6/8]

None CDPL.Math.DRegularSpatialGrid.getContainingCell ( ConstLVectorExpression  pos,
object  indices 
)
Parameters
pos
indices

◆ getContainingCell() [7/8]

None CDPL.Math.DRegularSpatialGrid.getContainingCell ( Vector3UL  pos,
object  indices 
)
Parameters
pos
indices

◆ getContainingCell() [8/8]

None CDPL.Math.DRegularSpatialGrid.getContainingCell ( ConstULVectorExpression  pos,
object  indices 
)
Parameters
pos
indices

◆ getLocalContainingCell() [1/8]

None CDPL.Math.DRegularSpatialGrid.getLocalContainingCell ( Vector3F  pos,
object  indices 
)
Parameters
pos
indices

◆ getLocalContainingCell() [2/8]

None CDPL.Math.DRegularSpatialGrid.getLocalContainingCell ( ConstFVectorExpression  pos,
object  indices 
)
Parameters
pos
indices

◆ getLocalContainingCell() [3/8]

None CDPL.Math.DRegularSpatialGrid.getLocalContainingCell ( Vector3D  pos,
object  indices 
)
Parameters
pos
indices

◆ getLocalContainingCell() [4/8]

None CDPL.Math.DRegularSpatialGrid.getLocalContainingCell ( ConstDVectorExpression  pos,
object  indices 
)
Parameters
pos
indices

◆ getLocalContainingCell() [5/8]

None CDPL.Math.DRegularSpatialGrid.getLocalContainingCell ( Vector3L  pos,
object  indices 
)
Parameters
pos
indices

◆ getLocalContainingCell() [6/8]

None CDPL.Math.DRegularSpatialGrid.getLocalContainingCell ( ConstLVectorExpression  pos,
object  indices 
)
Parameters
pos
indices

◆ getLocalContainingCell() [7/8]

None CDPL.Math.DRegularSpatialGrid.getLocalContainingCell ( Vector3UL  pos,
object  indices 
)
Parameters
pos
indices

◆ getLocalContainingCell() [8/8]

None CDPL.Math.DRegularSpatialGrid.getLocalContainingCell ( ConstULVectorExpression  pos,
object  indices 
)
Parameters
pos
indices

◆ getObjectID()

int CDPL.Math.DRegularSpatialGrid.getObjectID ( )

Returns the numeric identifier (ID) of the wrapped C++ class instance.

Different Python DRegularSpatialGrid instances may reference the same underlying C++ class instance. The commonly used Python expression a is not b thus cannot tell reliably whether the two DRegularSpatialGrid instances a and b reference different C++ objects. The numeric identifier returned by this method allows to correctly implement such an identity test via the simple expression a.getObjectID() != b.getObjectID().

Returns
The numeric ID of the internally referenced C++ class instance.

◆ assign() [1/4]

DRegularSpatialGrid CDPL.Math.DRegularSpatialGrid.assign ( 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]

DRegularSpatialGrid CDPL.Math.DRegularSpatialGrid.assign ( 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]

DRegularSpatialGrid CDPL.Math.DRegularSpatialGrid.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 in CDPL.Grid.DRegularGrid.

◆ assign() [4/4]

DRegularSpatialGrid CDPL.Math.DRegularSpatialGrid.assign ( 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.Math.DRegularSpatialGrid.getSize1 ( )
Returns

Reimplemented in CDPL.Grid.DRegularGrid.

◆ getSize2()

int CDPL.Math.DRegularSpatialGrid.getSize2 ( )
Returns

Reimplemented in CDPL.Grid.DRegularGrid.

◆ getSize3()

int CDPL.Math.DRegularSpatialGrid.getSize3 ( )
Returns

Reimplemented in CDPL.Grid.DRegularGrid.

◆ isEmpty()

bool CDPL.Math.DRegularSpatialGrid.isEmpty ( )
Returns

Reimplemented in CDPL.Grid.DRegularGrid.

◆ getElement() [1/2]

float CDPL.Math.DRegularSpatialGrid.getElement ( int  i,
int  j,
int  k 
)
Parameters
i
j
k
Returns

Reimplemented in CDPL.Grid.DRegularGrid.

◆ getElement() [2/2]

float CDPL.Math.DRegularSpatialGrid.getElement ( int  i)
Parameters
i
Returns

Reimplemented in CDPL.Grid.DRegularGrid.

◆ toArray()

object CDPL.Math.DRegularSpatialGrid.toArray ( )
Returns

Reimplemented in CDPL.Grid.DRegularGrid.

◆ getSize()

int CDPL.Math.DRegularSpatialGrid.getSize ( )
Returns

Reimplemented in CDPL.Grid.DRegularGrid.

◆ swap()

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

◆ setElement() [1/2]

None CDPL.Math.DRegularSpatialGrid.setElement ( int  i,
int  j,
int  k,
float  v 
)
Parameters
i
j
k
v

Reimplemented in CDPL.Grid.DRegularGrid.

◆ setElement() [2/2]

None CDPL.Math.DRegularSpatialGrid.setElement ( int  i,
float  v 
)
Parameters
i
v

Reimplemented in CDPL.Grid.DRegularGrid.

◆ __call__() [1/2]

float CDPL.Math.DRegularSpatialGrid.__call__ ( int  i,
int  j,
int  k 
)
Parameters
i
j
k
Returns

Reimplemented in CDPL.Grid.DRegularGrid.

◆ __call__() [2/2]

float CDPL.Math.DRegularSpatialGrid.__call__ ( int  i)
Parameters
i
Returns

Reimplemented in CDPL.Grid.DRegularGrid.

◆ __getitem__() [1/2]

float CDPL.Math.DRegularSpatialGrid.__getitem__ ( tuple  ijk)
Parameters
ijk
Returns

Reimplemented in CDPL.Grid.DRegularGrid.

◆ __getitem__() [2/2]

float CDPL.Math.DRegularSpatialGrid.__getitem__ ( int  i)
Parameters
i
Returns

Reimplemented in CDPL.Grid.DRegularGrid.

◆ __len__()

int CDPL.Math.DRegularSpatialGrid.__len__ ( )
Returns

Reimplemented in CDPL.Grid.DRegularGrid.

◆ __eq__() [1/2]

bool CDPL.Math.DRegularSpatialGrid.__eq__ ( 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.Math.DRegularSpatialGrid.__eq__ ( 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.Math.DRegularSpatialGrid.__ne__ ( 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.Math.DRegularSpatialGrid.__ne__ ( 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.Math.DRegularSpatialGrid.__str__ ( )

Returns a string representation of the DRegularSpatialGrid instance.

Returns
The generated string representation.

Reimplemented in CDPL.Grid.DRegularGrid.

◆ __pos__()

DRegularSpatialGrid CDPL.Math.DRegularSpatialGrid.__pos__ ( )
Returns

Reimplemented in CDPL.Grid.DRegularGrid.

◆ __neg__()

ConstDGridExpression CDPL.Math.DRegularSpatialGrid.__neg__ ( )
Returns

Reimplemented in CDPL.Grid.DRegularGrid.

◆ __add__()

ConstDGridExpression CDPL.Math.DRegularSpatialGrid.__add__ ( ConstDGridExpression  e)

Returns the result of the addition operation self + e.

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

◆ __sub__()

ConstDGridExpression CDPL.Math.DRegularSpatialGrid.__sub__ ( ConstDGridExpression  e)

Returns the result of the subtraction operation self - e.

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

◆ __mul__()

ConstDGridExpression CDPL.Math.DRegularSpatialGrid.__mul__ ( float  t)

Returns the result of the multiplication operation self * t.

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

Reimplemented in CDPL.Grid.DRegularGrid.

◆ __div__()

ConstDGridExpression CDPL.Math.DRegularSpatialGrid.__div__ ( float  t)

Returns the result of the division operation self / t.

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

Reimplemented in CDPL.Grid.DRegularGrid.

◆ __truediv__()

ConstDGridExpression CDPL.Math.DRegularSpatialGrid.__truediv__ ( float  t)
Parameters
t
Returns

Reimplemented in CDPL.Grid.DRegularGrid.

◆ __rmul__()

ConstDGridExpression CDPL.Math.DRegularSpatialGrid.__rmul__ ( float  t)
Parameters
t
Returns

Reimplemented in CDPL.Grid.DRegularGrid.

◆ __setitem__() [1/2]

None CDPL.Math.DRegularSpatialGrid.__setitem__ ( tuple  ijk,
float  v 
)
Parameters
ijk
v

Reimplemented in CDPL.Grid.DRegularGrid.

◆ __setitem__() [2/2]

None CDPL.Math.DRegularSpatialGrid.__setitem__ ( int  i,
float  v 
)
Parameters
i
v

Reimplemented in CDPL.Grid.DRegularGrid.

◆ __iadd__() [1/2]

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

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

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

◆ __iadd__() [2/2]

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

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

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

◆ __isub__() [1/2]

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

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

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

◆ __isub__() [2/2]

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

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

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

◆ __imul__()

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

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

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

Reimplemented in CDPL.Grid.DRegularGrid.

◆ __idiv__()

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

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

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

Reimplemented in CDPL.Grid.DRegularGrid.

◆ __itruediv__()

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

Reimplemented in CDPL.Grid.DRegularGrid.