public static class VectorBinaryAggregate.AggregateNonzerosIterateThatLookupThis extends VectorBinaryAggregate
VectorBinaryAggregate.AggregateAllIterateSequential, VectorBinaryAggregate.AggregateAllIterateThatLookupThis, VectorBinaryAggregate.AggregateAllIterateThisLookupThat, VectorBinaryAggregate.AggregateAllLoop, VectorBinaryAggregate.AggregateIterateIntersection, VectorBinaryAggregate.AggregateIterateUnionRandom, VectorBinaryAggregate.AggregateIterateUnionSequential, VectorBinaryAggregate.AggregateNonzerosIterateThatLookupThis, VectorBinaryAggregate.AggregateNonzerosIterateThisLookupThat
OPERATIONS
Constructor and Description |
---|
AggregateNonzerosIterateThatLookupThis() |
Modifier and Type | Method and Description |
---|---|
double |
aggregate(Vector x,
Vector y,
DoubleDoubleFunction fa,
DoubleDoubleFunction fc)
Main method that applies fc to x and y component-wise aggregating the results with fa.
|
double |
estimateCost(Vector x,
Vector y,
DoubleDoubleFunction fa,
DoubleDoubleFunction fc)
Estimates the cost of using this algorithm to compute the aggregation.
|
boolean |
isValid(Vector x,
Vector y,
DoubleDoubleFunction fa,
DoubleDoubleFunction fc)
Returns true iff we can use this algorithm to apply fc to x and y component-wise and aggregate the result using fa.
|
aggregateBest, getBestOperation
public AggregateNonzerosIterateThatLookupThis()
public boolean isValid(Vector x, Vector y, DoubleDoubleFunction fa, DoubleDoubleFunction fc)
VectorBinaryAggregate
isValid
in class VectorBinaryAggregate
public double estimateCost(Vector x, Vector y, DoubleDoubleFunction fa, DoubleDoubleFunction fc)
VectorBinaryAggregate
estimateCost
in class VectorBinaryAggregate
public double aggregate(Vector x, Vector y, DoubleDoubleFunction fa, DoubleDoubleFunction fc)
VectorBinaryAggregate
aggregate
in class VectorBinaryAggregate
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.