MCPcopy Create free account
hub / github.com/data61/MP-SPDZ / use_invperm

Method use_invperm

Compiler/program.py:747–758  ·  view source on GitHub ↗

Set whether to use the low-level INVPERM instruction to inverse a permutation (see sint.inverse_permutation). The INVPERM instruction assumes a semi-honest two-party environment. If false, a general protocol implemented in the high-level language is used. :param change: change setting if n

(self, change=None)

Source from the content-addressed store, hash-verified

745 self._edabit = change
746
747 def use_invperm(self, change=None):
748 """ Set whether to use the low-level INVPERM instruction to inverse a permutation (see sint.inverse_permutation). The INVPERM instruction assumes a semi-honest two-party environment. If false, a general protocol implemented in the high-level language is used.
749
750 :param change: change setting if not :py:obj:`None`
751 :returns: setting if :py:obj:`change` is :py:obj:`None`
752 """
753 if change is None:
754 if not self._invperm:
755 self.relevant_opts.add("invperm")
756 return self._invperm
757 else:
758 self._invperm = change
759
760
761 def use_edabit_for(self, *args):

Callers 2

options_from_argsMethod · 0.95
inverse_permutationMethod · 0.80

Calls 1

addMethod · 0.45

Tested by

no test coverage detected