Package schrodinger :: Package trajectory :: Package prody :: Module mode :: Class VectorBase
[hide private]
[frames] | no frames]

Class VectorBase

object --+
         |
        VectorBase
Known Subclasses:

A base class for :class:`Mode` and :class:`Vector`.

This base class defines some shared methods, such as scalar multiplication
or addition of mode instances.

Defined operations are:

    * Absolute value (abs(mode)) returns mode length
    * Additive inverse (-mode)
    * Mode addition (mode1 + mode2)
    * Mode subtraction (mode1 - mode2)
    * Scalar multiplication (x*mode or mode*x)
    * Division by a scalar (mode/x)
    * Dot product (mode1*mode2)
    * Power (mode**x)

Instance Methods [hide private]
 
__abs__(self)
 
__neg__(self)
 
__div__(self, other)
 
__idiv__(self, other)
 
__mul__(self, other)
Return scaled mode or dot product between modes.
 
__rmul__(self, other)
Return scaled mode or dot product between modes.
 
__imul__(self, other)
 
__add__(self, other)
 
__radd__(self, other)
 
__iadd__(self, other)
 
__sub__(self, other)
 
__rsub__(self, other)
 
__isub__(self, other)
 
__pow__(self, other)
 
getArray(self)
Return a copy of array.
 
_getArray(self)
Return array.
 
numAtoms(self)
Return number of atoms.
 
is3d(self)
Return **True** if vector is 3d.
 
getArrayNx3(self)
Return a copy of array with shape (N, 3).
 
_getArrayNx3(self)
Return a copy of array with shape (N, 3).
 
numModes(self)
Return 1.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__