| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
ParValue --+
|
ParAccumulator
Global accumulator
ParAccumulator objects are used to perform iterative reduction operations in loops. The initial local value is zero (i.e. the passed-in zero object, not the number 0), which is modified by subsequent calls to the method addValue.
|
|||
| __init__(self, operator, zero) | |||
|
addValue(self,
value) Replace the internal value of the accumulator by internal_value = operator(internal_value, value). |
|||
| ParValue |
calculateTotal(self) Returns a reduction over the local values on all processors |
||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
Replace the internal value of the accumulator by internal_value = operator(internal_value, value). |
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0alpha3 on Fri Oct 6 14:45:41 2006 | http://epydoc.sourceforge.net |