pydata / sparse

Sparse multi-dimensional arrays for the PyData ecosystem

Home Page:https://sparse.pydata.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conversion of COO from GCXS alters the property of coordinate matrix.

H4R5H1T-007 opened this issue · comments

To Reproduce

import sparse
import numpy as np

s1 = sparse.random(())
s2 = s1.asformat("gcxs")
print(np.array_equal(s1.coords,  s2.tocoo().coords))
#Outputs False

Expected behavior
It should print True

System

  • OS and version: Pop OS 21.04
  • sparse version master
  • NumPy version 1.20.3
  • Numba version 0.54.1