提交 602da814 authored 作者: Frederic's avatar Frederic

Remove the "int" dtype for the sparse package as we need to be sure of the size of the dtype.

This was not tested and should be casted to the fixed dtype size if used anyway.
上级 1bf6c2ac
...@@ -365,7 +365,7 @@ class SparseType(gof.Type): ...@@ -365,7 +365,7 @@ class SparseType(gof.Type):
""" """
format_cls = {'csr': scipy.sparse.csr_matrix, format_cls = {'csr': scipy.sparse.csr_matrix,
'csc': scipy.sparse.csc_matrix} 'csc': scipy.sparse.csc_matrix}
dtype_set = set(['int', 'int8', 'int16', 'int32', 'int64', 'float32', dtype_set = set(['int8', 'int16', 'int32', 'int64', 'float32',
'float64', 'complex64', 'complex128']) 'float64', 'complex64', 'complex128'])
ndim = 2 ndim = 2
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论