• R/O
  • SSH

Commit

Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

A small kernel of code for playing with Galois fields of arbitrary characteristic


Commit MetaInfo

Revision0aa4fe3bc7fa1b5faabfa3f10ed3ea9455a599d5 (tree)
Time2016-04-17 09:56:13
AuthorEric Hopper <hopper@omni...>
CommiterEric Hopper

Log Message

Shorten a line.

Change Summary

Incremental Difference

diff -r 3db00685b38a -r 0aa4fe3bc7fa gf.py
--- a/gf.py Sat Apr 16 19:30:07 2016 -0500
+++ b/gf.py Sat Apr 16 19:56:13 2016 -0500
@@ -80,8 +80,9 @@
8080 def __sub__(self, other):
8181 if not self._compat_types(other):
8282 return NotImplemented
83- return self.__class__((((x + (prime_ - y)) % prime_) for (x, y) in \
84- zip(self.val_, other.val_)))
83+ return self.__class__((((x + (prime_ - y)) % prime_) \
84+ for (x, y) in \
85+ zip(self.val_, other.val_)))
8586
8687 def _intmul(self, other):
8788 if other == 0: