Open GoogleCodeExporter opened 9 years ago
By the way, I have found a slight workaround for this with the following. I
basically, convert the mpmath matrix to a list, then convert that list into a
sympy or scipy matrix, perform the slicing operation(s), and them convert back
into an mpmath matrix.
>>> mp_matrix(sp_matrix(mp.tolist())[0:2,0:2])
>>> mp_matrix(sm_matrix(mp.tolist())[0:2,0:2])
Both of these _do_ get the job done. But they are extremely inefficient ways
of doing so. I am open to any suggestions, but hopefully there is a far more
elegant (and efficient) means of tackling this.
Thanks,
~~archery~~
Original comment by archeryguru2000
on 10 Apr 2012 at 6:59
I think this is a bug. The error means that the key of the element you access
(usually something like (0, 0) for instance) is not hashable. In this case,
"key" is a slice, which is apparently not hashable. I did not implement matrix
slicing, so I would have to look further into this to understand the problem.
It used to work however.
Which version of Python are you using?
Original comment by Vinzent.Steinberg@gmail.com
on 14 Apr 2012 at 9:59
Thanks for the response.
$: python --version
Python 2.7.1+
If there's anything else you need, just ask.
~~archery~~
Original comment by archeryguru2000
on 16 Apr 2012 at 1:58
Original issue reported on code.google.com by
archeryguru2000
on 10 Apr 2012 at 2:25