Logo Search packages:      
Sourcecode: python-scientific version File versions  Download package

Scientific::BSP::core::ParAccumulator Class Reference

Inheritance diagram for Scientific::BSP::core::ParAccumulator:

Scientific::BSP::core::ParValue

List of all members.


Detailed Description

Global accumulator

A subclass of ParValue.

Constructor: ParAccumulator(|operator|, |zero|)

Arguments:

|operator| -- a local function taking two arguments and returning
              one argument of the same type.

|zero| -- an initial value for reduction.

ParAccumulator objects are used to perform iterative reduction
operations in loops. The initial local value is |zero|, which is
modified by subsequent calls to the method addValue.

Definition at line 724 of file core.py.


Public Member Functions

def __add__
def __call__
def __div__
def __divmod__
def __eq__
def __ge__
def __getattr__
def __getitem__
def __gt__
def __init__
def __le__
def __len__
def __lt__
def __mod__
def __mul__
def __ne__
def __neg__
def __nonzero__
def __pow__
def __repr__
def __sub__
def accumulate
def addValue
def alltrue
def anytrue
def broadcast
def calculateTotal
def fullExchange
def get
def getattr
def map
def put
def reduce

Public Attributes

 operator
 valid
 value
 zero

Static Public Attributes

int is_parvalue = 1

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index