import numpy as np
a=random_matrix(ZZ,1,5)
tuple(np.array(a).tolist()[0])
is there something more native ?
motivation: sagematrix,it seems, are not "hashable" and cannot be used as keys in lists to do groupby/countby
| 1 | initial version |
import numpy as np
a=random_matrix(ZZ,1,5)
tuple(np.array(a).tolist()[0])
is there something more native ?
motivation: sagematrix,it seems, are not "hashable" and cannot be used as keys in lists to do groupby/countby
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.