Chemical Data Processing Library Python API - Version 1.1.1
|
An unbounded dense grid holding floating point values of type double
.
More...
Public Member Functions | |
None | __init__ () |
Initializes the DGrid instance. | |
None | __init__ (DGrid g) |
Initializes a copy of the DGrid instance g. More... | |
None | __init__ (int m, int n, int o) |
Initializes the DGrid instance. More... | |
None | __init__ (int m, int n, int o, float v) |
Initializes the DGrid instance. More... | |
None | __init__ (ConstFGridExpression e) |
Initializes the DGrid instance. More... | |
None | __init__ (ConstDGridExpression e) |
Initializes the DGrid instance. More... | |
None | __init__ (object e) |
Initializes the DGrid instance. More... | |
None | resize (int m, int n, int o, bool preserve=True, float v=0.0) |
None | clear (float v=0.0) |
int | getObjectID () |
Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
DGrid | assign (ConstFGridExpression e) |
Replaces the current state of self with a copy of the state of the ConstFGridExpression instance e. More... | |
DGrid | assign (ConstDGridExpression e) |
Replaces the current state of self with a copy of the state of the ConstDGridExpression instance e. More... | |
DGrid | assign (object e) |
Replaces the current state of self with a copy of the state of the object instance e. More... | |
DGrid | assign (DGrid g) |
Replaces the current state of self with a copy of the state of the DGrid 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 (DGrid 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__ (DGrid 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__ (DGrid 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 DGrid instance. More... | |
DGrid | __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) |
DGrid | __iadd__ (DGrid g) |
Performs the in-place addition operation self += g . More... | |
DGrid | __iadd__ (ConstDGridExpression e) |
Performs the in-place addition operation self += e . More... | |
DGrid | __isub__ (DGrid g) |
Performs the in-place subtraction operation self -= g . More... | |
DGrid | __isub__ (ConstDGridExpression e) |
Performs the in-place subtraction operation self -= e . More... | |
DGrid | __imul__ (float t) |
Performs the in-place multiplication operation self *= t . More... | |
DGrid | __idiv__ (float t) |
Performs the in-place division operation self /= t . More... | |
DGrid | __itruediv__ (float t) |
Properties | |
objectID = property(getObjectID) | |
size1 = property(getSize1) | |
size2 = property(getSize2) | |
size3 = property(getSize3) | |
An unbounded dense grid holding floating point values of type double
.
None CDPL.Math.DGrid.__init__ | ( | DGrid | g | ) |
Initializes a copy of the DGrid instance g.
g | The DGrid instance to copy. |
None CDPL.Math.DGrid.__init__ | ( | int | m, |
int | n, | ||
int | o | ||
) |
Initializes the DGrid instance.
m | |
n | |
o |
None CDPL.Math.DGrid.__init__ | ( | int | m, |
int | n, | ||
int | o, | ||
float | v | ||
) |
Initializes the DGrid instance.
m | |
n | |
o | |
v |
None CDPL.Math.DGrid.__init__ | ( | ConstFGridExpression | e | ) |
Initializes the DGrid instance.
e |
None CDPL.Math.DGrid.__init__ | ( | ConstDGridExpression | e | ) |
Initializes the DGrid instance.
e |
None CDPL.Math.DGrid.__init__ | ( | object | e | ) |
Initializes the DGrid instance.
e |
None CDPL.Math.DGrid.resize | ( | int | m, |
int | n, | ||
int | o, | ||
bool | preserve = True , |
||
float | v = 0.0 |
||
) |
m | |
n | |
o | |
preserve | |
v |
None CDPL.Math.DGrid.clear | ( | float | v = 0.0 | ) |
v |
int CDPL.Math.DGrid.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python DGrid 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 DGrid 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()
.
DGrid CDPL.Math.DGrid.assign | ( | ConstFGridExpression | e | ) |
Replaces the current state of self with a copy of the state of the ConstFGridExpression instance e.
e | The ConstFGridExpression instance to copy. |
DGrid CDPL.Math.DGrid.assign | ( | ConstDGridExpression | e | ) |
Replaces the current state of self with a copy of the state of the ConstDGridExpression instance e.
e | The ConstDGridExpression instance to copy. |
DGrid CDPL.Math.DGrid.assign | ( | object | e | ) |
Replaces the current state of self with a copy of the state of the object instance e.
e | The object instance to copy. |
Replaces the current state of self with a copy of the state of the DGrid instance g.
g | The DGrid instance to copy. |
int CDPL.Math.DGrid.getSize1 | ( | ) |
int CDPL.Math.DGrid.getSize2 | ( | ) |
int CDPL.Math.DGrid.getSize3 | ( | ) |
bool CDPL.Math.DGrid.isEmpty | ( | ) |
float CDPL.Math.DGrid.getElement | ( | int | i, |
int | j, | ||
int | k | ||
) |
i | |
j | |
k |
float CDPL.Math.DGrid.getElement | ( | int | i | ) |
i |
object CDPL.Math.DGrid.toArray | ( | ) |
int CDPL.Math.DGrid.getSize | ( | ) |
None CDPL.Math.DGrid.swap | ( | DGrid | g | ) |
g |
None CDPL.Math.DGrid.setElement | ( | int | i, |
int | j, | ||
int | k, | ||
float | v | ||
) |
i | |
j | |
k | |
v |
None CDPL.Math.DGrid.setElement | ( | int | i, |
float | v | ||
) |
i | |
v |
float CDPL.Math.DGrid.__call__ | ( | int | i, |
int | j, | ||
int | k | ||
) |
i | |
j | |
k |
float CDPL.Math.DGrid.__call__ | ( | int | i | ) |
i |
float CDPL.Math.DGrid.__getitem__ | ( | tuple | ijk | ) |
ijk |
float CDPL.Math.DGrid.__getitem__ | ( | int | i | ) |
i |
int CDPL.Math.DGrid.__len__ | ( | ) |
bool CDPL.Math.DGrid.__eq__ | ( | DGrid | g | ) |
Returns the result of the comparison operation self == g
.
g | The DGrid instance to be compared with. |
bool CDPL.Math.DGrid.__eq__ | ( | ConstDGridExpression | e | ) |
Returns the result of the comparison operation self == e
.
e | The ConstDGridExpression instance to be compared with. |
bool CDPL.Math.DGrid.__ne__ | ( | DGrid | g | ) |
Returns the result of the comparison operation self != g
.
g | The DGrid instance to be compared with. |
bool CDPL.Math.DGrid.__ne__ | ( | ConstDGridExpression | e | ) |
Returns the result of the comparison operation self != e
.
e | The ConstDGridExpression instance to be compared with. |
str CDPL.Math.DGrid.__str__ | ( | ) |
Returns a string representation of the DGrid instance.
DGrid CDPL.Math.DGrid.__pos__ | ( | ) |
ConstDGridExpression CDPL.Math.DGrid.__neg__ | ( | ) |
ConstDGridExpression CDPL.Math.DGrid.__add__ | ( | ConstDGridExpression | e | ) |
Returns the result of the addition operation self + e
.
e | Specifies the second addend. |
ConstDGridExpression CDPL.Math.DGrid.__sub__ | ( | ConstDGridExpression | e | ) |
Returns the result of the subtraction operation self - e
.
e | Specifies the subtrahend. |
ConstDGridExpression CDPL.Math.DGrid.__mul__ | ( | float | t | ) |
Returns the result of the multiplication operation self * t
.
t | Specifies the multiplier. |
ConstDGridExpression CDPL.Math.DGrid.__div__ | ( | float | t | ) |
Returns the result of the division operation self / t
.
t | Specifies the divisor. |
ConstDGridExpression CDPL.Math.DGrid.__truediv__ | ( | float | t | ) |
t |
ConstDGridExpression CDPL.Math.DGrid.__rmul__ | ( | float | t | ) |
t |
None CDPL.Math.DGrid.__setitem__ | ( | tuple | ijk, |
float | v | ||
) |
ijk | |
v |
None CDPL.Math.DGrid.__setitem__ | ( | int | i, |
float | v | ||
) |
i | |
v |
Performs the in-place addition operation self += g
.
g | Specifies the second addend. |
DGrid CDPL.Math.DGrid.__iadd__ | ( | ConstDGridExpression | e | ) |
Performs the in-place addition operation self += e
.
e | Specifies the second addend. |
Performs the in-place subtraction operation self -= g
.
g | Specifies the subtrahend. |
DGrid CDPL.Math.DGrid.__isub__ | ( | ConstDGridExpression | e | ) |
Performs the in-place subtraction operation self -= e
.
e | Specifies the subtrahend. |
DGrid CDPL.Math.DGrid.__imul__ | ( | float | t | ) |
Performs the in-place multiplication operation self *= t
.
t | Specifies the multiplier. |
DGrid CDPL.Math.DGrid.__idiv__ | ( | float | t | ) |
Performs the in-place division operation self /= t
.
t | Specifies the divisor. |
DGrid CDPL.Math.DGrid.__itruediv__ | ( | float | t | ) |
t |