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