You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As reported on the mailing list[1], scipy.sparse.[hv]stack do not respect the dtype parameter anymore.
@pv told that it was probably the new fast path added in master recently for those function that cause this.
Here is code that replicate this:
import scipy.sparse
from scipy.sparse import csr_matrix
import numpy as np
x = np.arange(5*5).reshape(5,5)
y = csr_matrix(x)
res = scipy.sparse.vstack([y,y], dtype='float32')
assert res.dtype == "float32"
Hi,
As reported on the mailing list[1], scipy.sparse.[hv]stack do not respect the dtype parameter anymore.
@pv told that it was probably the new fast path added in master recently for those function that cause this.
Here is code that replicate this:
[1] http://mail.scipy.org/pipermail/scipy-user/2013-December/035197.html
The text was updated successfully, but these errors were encountered: