Skip to content

Proposal to put more metadata in FROSTT file format #14

@aartbik

Description

@aartbik

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions