groovyx.gpars.extra166y
Class AbstractParallelAnyArray.DFPap

java.lang.Object
  extended by groovyx.gpars.extra166y.AbstractParallelAnyArray
      extended by groovyx.gpars.extra166y.AbstractParallelAnyArray.DPap
          extended by groovyx.gpars.extra166y.ParallelDoubleArrayWithDoubleMapping
              extended by groovyx.gpars.extra166y.ParallelDoubleArrayWithFilter
                  extended by groovyx.gpars.extra166y.AbstractParallelAnyArray.DFPap
Enclosing class:
AbstractParallelAnyArray

static final class AbstractParallelAnyArray.DFPap
extends ParallelDoubleArrayWithFilter


Nested Class Summary
 
Nested classes/interfaces inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray
AbstractParallelAnyArray.AndPredicate<T>, AbstractParallelAnyArray.DDCPap, AbstractParallelAnyArray.DDMPap, AbstractParallelAnyArray.DFDCPap, AbstractParallelAnyArray.DFDMPap, AbstractParallelAnyArray.DFLCPap, AbstractParallelAnyArray.DFLMPap, AbstractParallelAnyArray.DFOCPap<U>, AbstractParallelAnyArray.DFOMPap<U>, AbstractParallelAnyArray.DFPap, AbstractParallelAnyArray.DLCPap, AbstractParallelAnyArray.DLMPap, AbstractParallelAnyArray.DOCPap<U>, AbstractParallelAnyArray.DOMPap<U>, AbstractParallelAnyArray.DPap, AbstractParallelAnyArray.DRDCPap, AbstractParallelAnyArray.DRDMPap, AbstractParallelAnyArray.DRLCPap, AbstractParallelAnyArray.DRLMPap, AbstractParallelAnyArray.DROCPap<U>, AbstractParallelAnyArray.DROMPap<U>, AbstractParallelAnyArray.DRPap, AbstractParallelAnyArray.DUDCPap, AbstractParallelAnyArray.DUDMPap, AbstractParallelAnyArray.DULCPap, AbstractParallelAnyArray.DULMPap, AbstractParallelAnyArray.DUOCPap<U>, AbstractParallelAnyArray.DUOMPap<U>, AbstractParallelAnyArray.DUPap, AbstractParallelAnyArray.FilteredAsDoubleIterator, AbstractParallelAnyArray.FilteredAsLongIterator, AbstractParallelAnyArray.FilteredIterator<U>, AbstractParallelAnyArray.LDCPap, AbstractParallelAnyArray.LDMPap, AbstractParallelAnyArray.LFDCPap, AbstractParallelAnyArray.LFDMPap, AbstractParallelAnyArray.LFLCPap, AbstractParallelAnyArray.LFLMPap, AbstractParallelAnyArray.LFOCPap<U>, AbstractParallelAnyArray.LFOMPap<U>, AbstractParallelAnyArray.LFPap, AbstractParallelAnyArray.LLCPap, AbstractParallelAnyArray.LLMPap, AbstractParallelAnyArray.LOCPap<U>, AbstractParallelAnyArray.LOMPap<U>, AbstractParallelAnyArray.LPap, AbstractParallelAnyArray.LRDCPap, AbstractParallelAnyArray.LRDMPap, AbstractParallelAnyArray.LRLCPap, AbstractParallelAnyArray.LRLMPap, AbstractParallelAnyArray.LROCPap<U>, AbstractParallelAnyArray.LROMPap<U>, AbstractParallelAnyArray.LRPap, AbstractParallelAnyArray.LUDCPap, AbstractParallelAnyArray.LUDMPap, AbstractParallelAnyArray.LULCPap, AbstractParallelAnyArray.LULMPap, AbstractParallelAnyArray.LUOCPap<U>, AbstractParallelAnyArray.LUOMPap<U>, AbstractParallelAnyArray.LUPap, AbstractParallelAnyArray.ODCPap<T>, AbstractParallelAnyArray.ODMPap<T>, AbstractParallelAnyArray.OFDCPap<T>, AbstractParallelAnyArray.OFDMPap<T>, AbstractParallelAnyArray.OFLCPap<T>, AbstractParallelAnyArray.OFLMPap<T>, AbstractParallelAnyArray.OFOCPap<T,U>, AbstractParallelAnyArray.OFOMPap<T,U>, AbstractParallelAnyArray.OFPap<T>, AbstractParallelAnyArray.OLCPap<T>, AbstractParallelAnyArray.OLMPap<T>, AbstractParallelAnyArray.OOCPap<T,U>, AbstractParallelAnyArray.OOMPap<T,U>, AbstractParallelAnyArray.OPap<T>, AbstractParallelAnyArray.ORDCPap<T>, AbstractParallelAnyArray.ORDMPap<T>, AbstractParallelAnyArray.ORLCPap<T>, AbstractParallelAnyArray.ORLMPap<T>, AbstractParallelAnyArray.OROCPap<T,U>, AbstractParallelAnyArray.OROMPap<T,U>, AbstractParallelAnyArray.ORPap<T>, AbstractParallelAnyArray.OUDCPap<T>, AbstractParallelAnyArray.OUDMPap<T>, AbstractParallelAnyArray.OULCPap<T>, AbstractParallelAnyArray.OULMPap<T>, AbstractParallelAnyArray.OUOCPap<T,U>, AbstractParallelAnyArray.OUOMPap<T,U>, AbstractParallelAnyArray.OUPap<T>, AbstractParallelAnyArray.Sequentially<U>, AbstractParallelAnyArray.SequentiallyAsDouble, AbstractParallelAnyArray.SequentiallyAsLong, AbstractParallelAnyArray.UnfilteredAsDoubleIterator, AbstractParallelAnyArray.UnfilteredAsLongIterator, AbstractParallelAnyArray.UnfilteredIterator<U>
 
Field Summary
(package private)  Ops.DoublePredicate selector
           
 
Fields inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray.DPap
array
 
Fields inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray
ex, fence, origin, threshold
 
Constructor Summary
AbstractParallelAnyArray.DFPap(jsr166y.ForkJoinPool ex, int origin, int fence, double[] array, Ops.DoublePredicate selector)
           
 
Method Summary
(package private)  boolean hasFilter()
           
(package private)  boolean isSelected(int i)
           
(package private)  void leafApply(int lo, int hi, Ops.DoubleProcedure procedure)
           
(package private)  void leafBinaryIndexMap(int l, int h, Ops.IntAndDoubleToDouble op)
           
(package private)  void leafCombineInPlace(int l, int h, double[] other, int otherOffset, Ops.BinaryDoubleOp combiner)
           
(package private)  void leafCombineInPlace(int l, int h, ParallelDoubleArrayWithDoubleMapping other, int otherOffset, Ops.BinaryDoubleOp combiner)
           
(package private)  void leafFill(int l, int h, double value)
           
(package private)  void leafGenerate(int l, int h, Ops.DoubleGenerator generator)
           
(package private)  void leafIndexMap(int l, int h, Ops.IntToDouble op)
           
(package private)  double leafReduce(int lo, int hi, Ops.DoubleReducer reducer, double base)
           
(package private)  void leafTransform(int l, int h, Ops.DoubleOp op)
           
 ParallelDoubleArrayWithFilter withFilter(Ops.DoublePredicate selector)
          Returns an operation prefix that causes a method to operate only on elements for which the current selector (if present) and the given selector returns true
 ParallelDoubleArrayWithFilter withIndexedFilter(Ops.IntAndDoublePredicate selector)
          Returns an operation prefix that causes a method to operate only on elements for which the current selector (if present) and the given indexed selector returns true
 ParallelDoubleArrayWithDoubleMapping withIndexedMapping(Ops.IntAndDoubleToDouble mapper)
          Returns an operation prefix that causes a method to operate on mappings of this array using the given mapper that accepts as arguments an element's current index and value (as mapped by preceding mappings, if any), and produces a new value.
 ParallelDoubleArrayWithLongMapping withIndexedMapping(Ops.IntAndDoubleToLong mapper)
          Returns an operation prefix that causes a method to operate on mappings of this array using the given mapper that accepts as arguments an element's current index and value (as mapped by preceding mappings, if any), and produces a new value.
<V> ParallelDoubleArrayWithMapping<V>
withIndexedMapping(Ops.IntAndDoubleToObject<? extends V> mapper)
          Returns an operation prefix that causes a method to operate on mappings of this array using the given mapper that accepts as arguments an element's current index and value (as mapped by preceding mappings, if any), and produces a new value.
 ParallelDoubleArrayWithDoubleMapping withMapping(Ops.DoubleOp op)
          Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op.
 ParallelDoubleArrayWithLongMapping withMapping(Ops.DoubleToLong op)
          Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op.
<U> ParallelDoubleArrayWithMapping<U>
withMapping(Ops.DoubleToObject<? extends U> op)
          Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op.
 
Methods inherited from class groovyx.gpars.extra166y.ParallelDoubleArrayWithFilter
allUniqueElements, dget, hasAllEqualElements, leafTransfer, leafTransferByIndex, replaceWithGeneratedValue, replaceWithMappedIndex, replaceWithMappedIndex, replaceWithMapping, replaceWithMapping, replaceWithMapping, replaceWithValue, withFilter
 
Methods inherited from class groovyx.gpars.extra166y.ParallelDoubleArrayWithDoubleMapping
all, apply, max, max, min, min, reduce, sequentially, sum, summary, summary, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping, withMapping
 
Methods inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray.DPap
dgetArray, leafMoveByIndex, leafMoveSelected, lget, oget
 
Methods inherited from class groovyx.gpars.extra166y.AbstractParallelAnyArray
allDoubles, allLongs, allObjects, anyIndex, boundsCheck, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedOp, compoundIndexedSelector, compoundIndexedSelector, compoundIndexedSelector, compoundIndexedSelector, compoundIndexedSelector, compoundIndexedSelector, compoundIndexedSelector, compoundIndexedSelector, compoundIndexedSelector, computeThreshold, getThreshold, hasMap, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedMapper, indexedSelector, indexedSelector, indexedSelector, isEmpty, leafApply, leafApply, leafBinaryIndexMap, leafBinaryIndexMap, leafCombineInPlace, leafCombineInPlace, leafCombineInPlace, leafCombineInPlace, leafFill, leafFill, leafGenerate, leafGenerate, leafIndexMap, leafIndexMap, leafIndexSelected, leafReduce, leafReduce, leafTransfer, leafTransfer, leafTransferByIndex, leafTransferByIndex, leafTransform, leafTransform, lgetArray, ogetArray, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

selector

final Ops.DoublePredicate selector
Constructor Detail

AbstractParallelAnyArray.DFPap

AbstractParallelAnyArray.DFPap(jsr166y.ForkJoinPool ex,
                               int origin,
                               int fence,
                               double[] array,
                               Ops.DoublePredicate selector)
Method Detail

hasFilter

boolean hasFilter()
Overrides:
hasFilter in class AbstractParallelAnyArray

isSelected

boolean isSelected(int i)
Overrides:
isSelected in class AbstractParallelAnyArray

withFilter

public ParallelDoubleArrayWithFilter withFilter(Ops.DoublePredicate selector)
Description copied from class: ParallelDoubleArrayWithFilter
Returns an operation prefix that causes a method to operate only on elements for which the current selector (if present) and the given selector returns true

Specified by:
withFilter in class ParallelDoubleArrayWithFilter
Parameters:
selector - the selector
Returns:
operation prefix

withIndexedFilter

public ParallelDoubleArrayWithFilter withIndexedFilter(Ops.IntAndDoublePredicate selector)
Description copied from class: ParallelDoubleArrayWithFilter
Returns an operation prefix that causes a method to operate only on elements for which the current selector (if present) and the given indexed selector returns true

Specified by:
withIndexedFilter in class ParallelDoubleArrayWithFilter
Parameters:
selector - the selector
Returns:
operation prefix

withMapping

public <U> ParallelDoubleArrayWithMapping<U> withMapping(Ops.DoubleToObject<? extends U> op)
Description copied from class: ParallelDoubleArrayWithDoubleMapping
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op.

Specified by:
withMapping in class ParallelDoubleArrayWithDoubleMapping
Parameters:
op - the op
Returns:
operation prefix

withMapping

public ParallelDoubleArrayWithDoubleMapping withMapping(Ops.DoubleOp op)
Description copied from class: ParallelDoubleArrayWithDoubleMapping
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op.

Specified by:
withMapping in class ParallelDoubleArrayWithDoubleMapping
Parameters:
op - the op
Returns:
operation prefix

withMapping

public ParallelDoubleArrayWithLongMapping withMapping(Ops.DoubleToLong op)
Description copied from class: ParallelDoubleArrayWithDoubleMapping
Returns an operation prefix that causes a method to operate on mapped elements of the array using the given op.

Specified by:
withMapping in class ParallelDoubleArrayWithDoubleMapping
Parameters:
op - the op
Returns:
operation prefix

withIndexedMapping

public <V> ParallelDoubleArrayWithMapping<V> withIndexedMapping(Ops.IntAndDoubleToObject<? extends V> mapper)
Description copied from class: ParallelDoubleArrayWithDoubleMapping
Returns an operation prefix that causes a method to operate on mappings of this array using the given mapper that accepts as arguments an element's current index and value (as mapped by preceding mappings, if any), and produces a new value.

Specified by:
withIndexedMapping in class ParallelDoubleArrayWithDoubleMapping
Parameters:
mapper - the mapper
Returns:
operation prefix

withIndexedMapping

public ParallelDoubleArrayWithDoubleMapping withIndexedMapping(Ops.IntAndDoubleToDouble mapper)
Description copied from class: ParallelDoubleArrayWithDoubleMapping
Returns an operation prefix that causes a method to operate on mappings of this array using the given mapper that accepts as arguments an element's current index and value (as mapped by preceding mappings, if any), and produces a new value.

Specified by:
withIndexedMapping in class ParallelDoubleArrayWithDoubleMapping
Parameters:
mapper - the mapper
Returns:
operation prefix

withIndexedMapping

public ParallelDoubleArrayWithLongMapping withIndexedMapping(Ops.IntAndDoubleToLong mapper)
Description copied from class: ParallelDoubleArrayWithDoubleMapping
Returns an operation prefix that causes a method to operate on mappings of this array using the given mapper that accepts as arguments an element's current index and value (as mapped by preceding mappings, if any), and produces a new value.

Specified by:
withIndexedMapping in class ParallelDoubleArrayWithDoubleMapping
Parameters:
mapper - the mapper
Returns:
operation prefix

leafApply

final void leafApply(int lo,
                     int hi,
                     Ops.DoubleProcedure procedure)
Overrides:
leafApply in class AbstractParallelAnyArray

leafReduce

final double leafReduce(int lo,
                        int hi,
                        Ops.DoubleReducer reducer,
                        double base)
Overrides:
leafReduce in class AbstractParallelAnyArray

leafTransform

final void leafTransform(int l,
                         int h,
                         Ops.DoubleOp op)
Overrides:
leafTransform in class AbstractParallelAnyArray

leafIndexMap

final void leafIndexMap(int l,
                        int h,
                        Ops.IntToDouble op)
Overrides:
leafIndexMap in class AbstractParallelAnyArray

leafBinaryIndexMap

final void leafBinaryIndexMap(int l,
                              int h,
                              Ops.IntAndDoubleToDouble op)
Overrides:
leafBinaryIndexMap in class AbstractParallelAnyArray

leafGenerate

final void leafGenerate(int l,
                        int h,
                        Ops.DoubleGenerator generator)
Overrides:
leafGenerate in class AbstractParallelAnyArray

leafFill

final void leafFill(int l,
                    int h,
                    double value)
Overrides:
leafFill in class AbstractParallelAnyArray

leafCombineInPlace

final void leafCombineInPlace(int l,
                              int h,
                              double[] other,
                              int otherOffset,
                              Ops.BinaryDoubleOp combiner)
Overrides:
leafCombineInPlace in class AbstractParallelAnyArray

leafCombineInPlace

final void leafCombineInPlace(int l,
                              int h,
                              ParallelDoubleArrayWithDoubleMapping other,
                              int otherOffset,
                              Ops.BinaryDoubleOp combiner)
Overrides:
leafCombineInPlace in class AbstractParallelAnyArray

Copyright © 2008–2012 Václav Pech. All Rights Reserved.