viff

changeset 795:cfdce3e99171

Added warning about return type of Toft05 comparison.
author Martin Geisler <mg@daimi.au.dk>
date Wed, 28 May 2008 09:27:38 +0200
parents 2472ea5263f5
children 73af810f6bb1
files viff/comparison.py
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/viff/comparison.py	Mon May 26 22:28:29 2008 +0200
     1.2 +++ b/viff/comparison.py	Wed May 28 09:27:38 2008 +0200
     1.3 @@ -57,7 +57,13 @@
     1.4          """Compute ``share_a >= share_b``.
     1.5  
     1.6          Both arguments must be from the field given. The result is a
     1.7 -        GF256 share.
     1.8 +        :class:`GF256 <viff.field.GF256>` share.
     1.9 +
    1.10 +        .. warning::
    1.11 +
    1.12 +           The result type (:class:`viff.field.GF256`) is different
    1.13 +           from the argument types (general field elements).
    1.14 +
    1.15          """
    1.16          field = getattr(share_a, "field", getattr(share_b, "field", None))
    1.17          if not isinstance(share_a, Share):