Skip to content

Instantly share code, notes, and snippets.

@psinger
Created March 18, 2018 13:54
Show Gist options
  • Save psinger/61a168418ffeae7dca002d29eedbc41f to your computer and use it in GitHub Desktop.
Save psinger/61a168418ffeae7dca002d29eedbc41f to your computer and use it in GitHub Desktop.
#let's get the third row
a = h5.root
b = csr_matrix((a.data[a.indptr[3]:a.indptr[3+1]], a.indices[a.indptr[3]:a.indptr[3+1]], np.array([0,len(a.indices[a.indptr[3]:a.indptr[3+1]])])), shape=(1,n))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment