protected static class PiDistributed.DistributedBinarySplittingPiCalculator extends PiParallel.ParallelBinarySplittingPiCalculator
| Constructor and Description |
|---|
DistributedBinarySplittingPiCalculator(Pi.BinarySplittingSeries series)
Construct a distributed pi calculator with the specified precision and radix.
|
| Modifier and Type | Method and Description |
|---|---|
PiDistributed.Node[] |
getNodes()
Get the available set of operation executor nodes.
|
void |
r(long n1,
long n2,
ApfloatHolder T,
ApfloatHolder Q,
ApfloatHolder P,
ApfloatHolder F,
PiDistributed.Node[] nodes)
Entry point for the distributed binary splitting algorithm.
|
PiDistributed.Node[] |
recombineNodes(PiDistributed.Node[] nodes,
int numberNeeded)
Attempt to combine or split nodes to form the needed number
of nodes.
|
rpublic DistributedBinarySplittingPiCalculator(Pi.BinarySplittingSeries series)
series - The binary splitting series to be used.public void r(long n1,
long n2,
ApfloatHolder T,
ApfloatHolder Q,
ApfloatHolder P,
ApfloatHolder F,
PiDistributed.Node[] nodes)
throws ApfloatRuntimeException
n1 - Start term.n2 - End term.T - Algorithm parameter.Q - Algorithm parameter.P - Algorithm parameter.F - Pointer to inverse square root parameter.nodes - The operation executors to be used for the calculation.ApfloatRuntimeExceptionpublic PiDistributed.Node[] getNodes()
RemoteOperationExecutors,
which execute operations on the cluster's nodes.public PiDistributed.Node[] recombineNodes(PiDistributed.Node[] nodes, int numberNeeded)
nodes - The nodes to recombine.numberNeeded - The requested number of nodes.Copyright © 2025. All rights reserved.