コード例 #1
0
ファイル: groups.py プロジェクト: hobbitzero/calculations
 def apex(self):
     if self._apex is None:
         n = self._degree
         partitions = filter(lambda x: (len(x) + n) % 2 == 0, Partitions(n))
         self._apex = numeric.sort_and_filter(
             [reduce(numeric.lcm, partition) for partition in partitions])
     return self._apex
コード例 #2
0
 def apex(self):
     if self._apex is None:
         n = self._degree
         partitions = filter(lambda x: (len(x) + n) % 2 == 0, Partitions(n))
         self._apex = numeric.sort_and_filter(
             [reduce(numeric.lcm, partition) for partition in partitions])
     return self._apex
コード例 #3
0
ファイル: groups.py プロジェクト: aikoven/calculations
 def apex(self):
     if self._apex is None:
         n = self._degree
         partitions = [x for x in Partitions(n) if (len(x) + n) % 2 == 0]
         self._apex = numeric.sort_and_filter(
             [reduce(numeric.lcm, partition) for partition in partitions])
     return self._apex
コード例 #4
0
ファイル: groups.py プロジェクト: hobbitzero/calculations
 def apex(self):
     if self._apex is None:
         func = spectra.exceptional_spectra.get(self._name, lambda *arg: [])
         self._apex = numeric.sort_and_filter(func(self._field))
     return self._apex
コード例 #5
0
 def apex(self):
     if self._apex is None:
         func = spectra.exceptional_spectra.get(self._name, lambda *arg: [])
         self._apex = numeric.sort_and_filter(func(self._field))
     return self._apex