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
I found the current format that only lists nonzero elements of a tensor rather terse. Granted, the rank can be inferred from the number of integer columns and the number of nonzeros by scanning to EOF. But the dimension sizes would be unclear for very sparse tensors where not all ranges are "filled".
So why not include a bit more metadata in the file header?
May I propose, at the very least
# extended FROSTT file format
<rank> <nnz>
<dimension sizes (one per rank)>
... data as before ...
For example, a 2x3 dense matrix would look as follows
# this is a comment
2 6
2 3
1 1 1.1
1 2 1.2
1 3 1.3
2 1 2.1
2 2 2.2
2 3 2.3