Ask Your Question

Revision history [back]

You can do:

sage: a=random_matrix(ZZ,1,5)
sage: a
[-62   3   3   1   1]
sage: tuple(a.row(0))
(-62, 3, 3, 1, 1)
sage: hash(tuple(a.row(0)))
-3691849509262070773