QMRITools`
QMRITools`
DataToVector
DataToVector[data]
converst the non zero data to vector.
DataToVector[data,mask]
converst the data within the mask to vector. the data can be reconstructed using VectorToData. output is the vecotrized data and a list contining the original data dimensions and a list with the data coordinates. {vec, {dim,pos}}.
Examples
Copy to clipboard.
In[1]:=1

✖
https://wolfram.com/xid/0mevpbncy4li7py1zfcqai-dxdh4t
Direct link to example