Class MaxPair

Object
MaxPair
All Implemented Interfaces:
Computation<Pair<DRes<SInt>,​DRes<SInt>>,​ProtocolBuilderNumeric>

public class MaxPair
extends Object
implements Computation<Pair<DRes<SInt>,​DRes<SInt>>,​ProtocolBuilderNumeric>
Returns [max(x, y), 1 if y = max(x, y) and 0 otherwise]
  • Constructor Details

    • MaxPair

      public MaxPair​(DRes<SInt> x, DRes<SInt> y)
  • Method Details

    • buildComputation

      public DRes<Pair<DRes<SInt>,​DRes<SInt>>> buildComputation​(ProtocolBuilderNumeric builder)
      Specified by:
      buildComputation in interface Computation<Pair<DRes<SInt>,​DRes<SInt>>,​ProtocolBuilderNumeric>