ParValue instances are created internally, but are not meant to be
created directly by application programs. Use the subclasses instead.
ParValue objects (and those of subclasses) implement the standard
arithmetic and comparison operations. They also support attribute
requests which are passed on to the local values; the return values are
ParValue objects. ParValue objects can also be called if their local
values are callable.
|
|
|
__call__(self,
*args,
**kwargs) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__init__(self,
value,
valid=True)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ParValue
|
accumulate(self,
operator,
zero)
Perform an accumulation over the local values of all processors. |
|
|
Local bool
|
alltrue(self)
Returns:
True if the local values on all processors are true. |
|
|
Local bool
|
anytrue(self)
Returns:
True if at least one of the local values on all
processors is true. |
|
|
ParValue
|
broadcast(self,
from_pid=0)
Transmit the local data of one processor to all processors. |
|
|
ParValue
|
fullExchange(self)
Transmit the local data of each processor to all other processors. |
|
|
ParValue
|
get(self,
pid_list)
Request the local data from all specified processors. |
|
|
|
|
|
|
ParValue
|
put(self,
pid_list)
Send the local data to all specified processors. |
|
|
ParValue
|
reduce(self,
operator,
zero)
Perform a reduction over the local values of all processors. |
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__
|