qutip / qutip-cupy

CuPy linear-algebra backend for QuTiP
BSD 3-Clause "New" or "Revised" License
19 stars 10 forks source link

Drop .item() in specializations returning a scalar #39

Open MrRobot2211 opened 3 years ago

MrRobot2211 commented 3 years ago

The infv specialization tests are special in the sense that what is teste d is a wrapped function, that calculates the inverse on a de-singularized matrix.

I think we can do the same with .item just to pass the specializatuin tests and there would be no problem later on.