]> gitweb.michael.orlitzky.com - sage.d.git/blobdiff - mjo/eja/eja_utils.py
eja: drop obsolete _vec2mat and _mat2vec helpers.
[sage.d.git] / mjo / eja / eja_utils.py
index a4328610e5e41db689455828bd0d8988225e745b..79d8ecfce61c555375deffd40501b2fb100c0379 100644 (file)
@@ -1,7 +1,4 @@
-from sage.functions.other import sqrt
 from sage.structure.element import is_Matrix
-from sage.matrix.constructor import matrix
-from sage.modules.free_module_element import vector
 
 def _charpoly_sage_input(s):
     r"""
@@ -171,13 +168,6 @@ def _all2list(x):
     return sum( map(_all2list, xl) , [])
 
 
-
-def _mat2vec(m):
-        return vector(m.base_ring(), m.list())
-
-def _vec2mat(v):
-        return matrix(v.base_ring(), sqrt(v.degree()), v.list())
-
 def gram_schmidt(v, inner_product=None):
     """
     Perform Gram-Schmidt on the list ``v`` which are assumed to be