Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

from __future__ import absolute_import 

############################################################ 

# Backwards compatible unpickling 

############################################################ 

 

def unpickle_QuaternionAlgebra_v0(*key): 

""" 

The 0th version of pickling for quaternion algebras. 

 

EXAMPLES:: 

 

sage: t = (QQ, -5, -19, ('i', 'j', 'k')) 

sage: import sage.algebras.quaternion_algebra 

sage: sage.algebras.quaternion_algebra.unpickle_QuaternionAlgebra_v0(*t) 

Quaternion Algebra (-5, -19) with base ring Rational Field 

""" 

from .quatalg.quaternion_algebra import QuaternionAlgebra 

return QuaternionAlgebra(*key)