-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"""
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