Chemical Data Processing Library Python API - Version 1.4.0
Public Member Functions | Properties | List of all members
CDPL.Shape.Vector7D Class Reference
+ Inheritance diagram for CDPL.Shape.Vector7D:

Public Member Functions

None __init__ ()
 Contructs the Vector7D instance.
 
None __init__ (Math.Vector7D vec)
 Contructs a copy of the Vector7D instance vec. More...
 
None __init__ (float v)
 Contructs the Vector7D instance. More...
 
None __init__ (Math.ConstFVectorExpression e)
 Contructs the Vector7D instance. More...
 
None __init__ (Math.ConstDVectorExpression e)
 Contructs the Vector7D instance. More...
 
None __init__ (Math.ConstLVectorExpression e)
 Contructs the Vector7D instance. More...
 
None __init__ (Math.ConstULVectorExpression e)
 Contructs the Vector7D instance. More...
 
None __init__ (object a)
 Contructs the Vector7D instance. More...
 
None clear (float v=0.0)
 
int getObjectID ()
 Returns the numeric identifier (ID) of the wrapped C++ class instance. More...
 
Math.Vector7D assign (Math.ConstFVectorExpression e)
 Replaces the current state with a copy of the state of the ConstFVectorExpression instance e. More...
 
Math.Vector7D assign (Math.ConstDVectorExpression e)
 Replaces the current state with a copy of the state of the ConstDVectorExpression instance e. More...
 
Math.Vector7D assign (Math.ConstLVectorExpression e)
 Replaces the current state with a copy of the state of the ConstLVectorExpression instance e. More...
 
Math.Vector7D assign (Math.ConstULVectorExpression e)
 Replaces the current state with a copy of the state of the ConstULVectorExpression instance e. More...
 
Math.Vector7D assign (Math.Vector7D v)
 Replaces the current state with a copy of the state of the Vector7D instance v. More...
 
Math.Vector7D assign (object a)
 Replaces the current state with a copy of the state of the object instance a. More...
 
bool isEmpty ()
 
int getSize ()
 
float getElement (int i)
 
object toArray ()
 Converts the Vector7D instance into a corresponding numpy.ndarray object. More...
 
None swap (Math.Vector7D v)
 
None setElement (int i, float v)
 
bool __eq__ (Math.Vector7D v)
 Returns the result of the comparison operation self == v. More...
 
bool __eq__ (Math.ConstDVectorExpression e)
 Returns the result of the comparison operation self == e. More...
 
bool __ne__ (Math.Vector7D v)
 Returns the result of the comparison operation self != v. More...
 
bool __ne__ (Math.ConstDVectorExpression e)
 Returns the result of the comparison operation self != e. More...
 
float __call__ (int i)
 
float __getitem__ (int i)
 
int __len__ ()
 
str __str__ ()
 Returns a string representation of the Vector7D instance. More...
 
Math.Vector7D __pos__ ()
 
Math.ConstDVectorExpression __neg__ ()
 
Math.ConstDVectorExpression __add__ (Math.ConstDVectorExpression e)
 Returns the result of the addition operation self + e. More...
 
Math.ConstDVectorExpression __sub__ (Math.ConstDVectorExpression e)
 Returns the result of the subtraction operation self - e. More...
 
Math.ConstDVectorExpression __mul__ (float t)
 Returns the result of the multiplication operation self * t. More...
 
Math.ConstDVectorExpression __mul__ (Math.ConstDMatrixExpression e)
 Returns the result of the multiplication operation self * e. More...
 
Math.ConstDVectorExpression __div__ (float t)
 Returns the result of the division operation self // t. More...
 
Math.ConstDVectorExpression __truediv__ (float t)
 Returns the result of the true division operation self / t. More...
 
Math.ConstDVectorExpression __rmul__ (float t)
 Returns the result of the multiplication operation t * self. More...
 
None __setitem__ (int i, float v)
 
Math.Vector7D __iadd__ (Math.Vector7D v)
 Performs the in-place addition operation self += v. More...
 
Math.Vector7D __iadd__ (Math.ConstDVectorExpression e)
 Performs the in-place addition operation self += e. More...
 
Math.Vector7D __isub__ (Math.Vector7D v)
 Performs the in-place subtraction operation self -= v. More...
 
Math.Vector7D __isub__ (Math.ConstDVectorExpression e)
 Performs the in-place subtraction operation self -= e. More...
 
Math.Vector7D __imul__ (float t)
 Performs the in-place multiplication operation self *= t. More...
 
Math.Vector7D __idiv__ (float t)
 Performs the in-place division operation self //= t. More...
 
Math.Vector7D __itruediv__ (float t)
 Returns the result of the in-place true division operation self /= t. More...
 

Properties

 objectID = property(getObjectID)
 
 size = property(getSize)
 

Constructor & Destructor Documentation

◆ __init__() [1/7]

None CDPL.Shape.Vector7D.__init__ ( Math.Vector7D  vec)

Contructs a copy of the Vector7D instance vec.

Parameters
vecThe Vector7D instance to copy.

◆ __init__() [2/7]

None CDPL.Shape.Vector7D.__init__ ( float  v)

Contructs the Vector7D instance.

Parameters
v

◆ __init__() [3/7]

None CDPL.Shape.Vector7D.__init__ ( Math.ConstFVectorExpression  e)

Contructs the Vector7D instance.

Parameters
e

◆ __init__() [4/7]

None CDPL.Shape.Vector7D.__init__ ( Math.ConstDVectorExpression  e)

Contructs the Vector7D instance.

Parameters
e

◆ __init__() [5/7]

None CDPL.Shape.Vector7D.__init__ ( Math.ConstLVectorExpression  e)

Contructs the Vector7D instance.

Parameters
e

◆ __init__() [6/7]

None CDPL.Shape.Vector7D.__init__ ( Math.ConstULVectorExpression  e)

Contructs the Vector7D instance.

Parameters
e

◆ __init__() [7/7]

None CDPL.Shape.Vector7D.__init__ ( object  a)

Contructs the Vector7D instance.

Parameters
a

Member Function Documentation

◆ getObjectID()

int CDPL.Shape.Vector7D.getObjectID ( )

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

Different Python Vector7D 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 Vector7D 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/6]

Math.Vector7D CDPL.Shape.Vector7D.assign ( Math.ConstFVectorExpression  e)

Replaces the current state with a copy of the state of the ConstFVectorExpression instance e.

Parameters
eThe ConstFVectorExpression instance to copy.
Returns
self.

◆ assign() [2/6]

Math.Vector7D CDPL.Shape.Vector7D.assign ( Math.ConstDVectorExpression  e)

Replaces the current state with a copy of the state of the ConstDVectorExpression instance e.

Parameters
eThe ConstDVectorExpression instance to copy.
Returns
self.

◆ assign() [3/6]

Math.Vector7D CDPL.Shape.Vector7D.assign ( Math.ConstLVectorExpression  e)

Replaces the current state with a copy of the state of the ConstLVectorExpression instance e.

Parameters
eThe ConstLVectorExpression instance to copy.
Returns
self.

◆ assign() [4/6]

Math.Vector7D CDPL.Shape.Vector7D.assign ( Math.ConstULVectorExpression  e)

Replaces the current state with a copy of the state of the ConstULVectorExpression instance e.

Parameters
eThe ConstULVectorExpression instance to copy.
Returns
self.

◆ assign() [5/6]

Math.Vector7D CDPL.Shape.Vector7D.assign ( Math.Vector7D  v)

Replaces the current state with a copy of the state of the Vector7D instance v.

Parameters
vThe Vector7D instance to copy.
Returns
self.

◆ assign() [6/6]

Math.Vector7D CDPL.Shape.Vector7D.assign ( object  a)

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

Parameters
aThe object instance to copy.
Returns
self.

◆ toArray()

object CDPL.Shape.Vector7D.toArray ( )

Converts the Vector7D instance into a corresponding numpy.ndarray object.

Returns
The generated numpy.ndarray object.
See also
[NUMPY]

◆ __eq__() [1/2]

bool CDPL.Shape.Vector7D.__eq__ ( Math.Vector7D  v)

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

Parameters
vThe Vector7D instance to be compared with.
Returns
The result of the comparison operation.

◆ __eq__() [2/2]

bool CDPL.Shape.Vector7D.__eq__ ( Math.ConstDVectorExpression  e)

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

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

◆ __ne__() [1/2]

bool CDPL.Shape.Vector7D.__ne__ ( Math.Vector7D  v)

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

Parameters
vThe Vector7D instance to be compared with.
Returns
The result of the comparison operation.

◆ __ne__() [2/2]

bool CDPL.Shape.Vector7D.__ne__ ( Math.ConstDVectorExpression  e)

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

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

◆ __str__()

str CDPL.Shape.Vector7D.__str__ ( )

Returns a string representation of the Vector7D instance.

Returns
The generated string representation.

◆ __add__()

Math.ConstDVectorExpression CDPL.Shape.Vector7D.__add__ ( Math.ConstDVectorExpression  e)

Returns the result of the addition operation self + e.

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

◆ __sub__()

Math.ConstDVectorExpression CDPL.Shape.Vector7D.__sub__ ( Math.ConstDVectorExpression  e)

Returns the result of the subtraction operation self - e.

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

◆ __mul__() [1/2]

Math.ConstDVectorExpression CDPL.Shape.Vector7D.__mul__ ( float  t)

Returns the result of the multiplication operation self * t.

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

◆ __mul__() [2/2]

Math.ConstDVectorExpression CDPL.Shape.Vector7D.__mul__ ( Math.ConstDMatrixExpression  e)

Returns the result of the multiplication operation self * e.

Parameters
eSpecifies the multiplier.
Returns
A Math.ConstDVectorExpression instance holding the result of the multiplication.

◆ __div__()

Math.ConstDVectorExpression CDPL.Shape.Vector7D.__div__ ( float  t)

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

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

◆ __truediv__()

Math.ConstDVectorExpression CDPL.Shape.Vector7D.__truediv__ ( float  t)

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

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

◆ __rmul__()

Math.ConstDVectorExpression CDPL.Shape.Vector7D.__rmul__ ( float  t)

Returns the result of the multiplication operation t * self.

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

◆ __iadd__() [1/2]

Math.Vector7D CDPL.Shape.Vector7D.__iadd__ ( Math.Vector7D  v)

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

Parameters
vSpecifies the second addend.
Returns
The updated Math.Vector7D instance self.

◆ __iadd__() [2/2]

Math.Vector7D CDPL.Shape.Vector7D.__iadd__ ( Math.ConstDVectorExpression  e)

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

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

◆ __isub__() [1/2]

Math.Vector7D CDPL.Shape.Vector7D.__isub__ ( Math.Vector7D  v)

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

Parameters
vSpecifies the subtrahend.
Returns
The updated Math.Vector7D instance self.

◆ __isub__() [2/2]

Math.Vector7D CDPL.Shape.Vector7D.__isub__ ( Math.ConstDVectorExpression  e)

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

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

◆ __imul__()

Math.Vector7D CDPL.Shape.Vector7D.__imul__ ( float  t)

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

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

◆ __idiv__()

Math.Vector7D CDPL.Shape.Vector7D.__idiv__ ( float  t)

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

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

◆ __itruediv__()

Math.Vector7D CDPL.Shape.Vector7D.__itruediv__ ( float  t)

Returns the result of the in-place true division operation self /= t.

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