Package PyDSTool :: Module Symbolic :: Class Quantity
[hide private]
[frames] | no frames]

Class Quantity

source code

object --+
         |
        Quantity
Known Subclasses:

Abstract class for symbolic numerical quantities.

Instance Methods [hide private]
 
__init__(self, spec, name='', domain=None, specType=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
setDomain(self, domain) source code
 
redefine(self, specStr) source code
 
isspecdefined(self) source code
 
__contains__(self, tok) source code
 
__call__(self) source code
 
__len__(self) source code
 
isvector(self)
Is the quantity spec of the form [a,b,c]
source code
 
fromvector(self, ix=None)
Turn the Quantity's specification of a vector to a list of the element's specifications.
source code
 
__setitem__(self, x, v) source code
 
__delitem__(self, x) source code
 
__getitem__(self, x) source code
 
tonumeric(self) source code
 
__combine(self, other, opstr, reverseorder=0) source code
 
__add__(self, other) source code
 
__mul__(self, other) source code
 
__sub__(self, other) source code
 
__div__(self, other) source code
 
__radd__(self, other) source code
 
__rmul__(self, other) source code
 
__rsub__(self, other) source code
 
__rdiv__(self, other) source code
 
__truediv__(self, other) source code
 
__rtruediv__(self, other) source code
 
__pow__(self, other) source code
 
__rpow__(self, other) source code
 
__neg__(self) source code
 
__pos__(self) source code
 
mapNames(self, nameMap) source code
 
compileFuncSpec(self) source code
 
simplify(self) source code
 
renderForCode(self)
Return code-ready version of spec (e.g.
source code
 
rename(self, new_name) source code
 
eval(self, *scopearg, **defs)
eval does not require all free symbols to be resolved, but any signature arguments (for a function) must be resolved.
source code
 
validate(self) source code
 
isDefined(self, verbose=False) source code
 
__repr__(self)
repr(x)
source code
 
__str__(self)
str(x)
source code
 
info(self, verboselevel=1) source code
 
__hash__(self)
hash(x)
source code
 
__eq__(self, other, diff=False) source code
 
__ne__(self, other) source code
 
difference(self, other)
Show differences in comparison to another Quantity.
source code
 
__copy__(self) source code
 
__deepcopy__(self, memo=None, _nil=[]) source code

Inherited from object: __delattr__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Variables [hide private]
  typestr = None
  compatibleGens = ()
  targetLangs = ()
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, spec, name='', domain=None, specType=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

renderForCode(self)

source code 

Return code-ready version of spec (e.g. uncapitalize built-in function names)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__hash__(self)
(Hashing function)

source code 

hash(x)

Overrides: object.__hash__
(inherited documentation)