Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support skipping values #32

Open
alugowski opened this issue Jul 8, 2023 · 2 comments
Open

Support skipping values #32

alugowski opened this issue Jul 8, 2023 · 2 comments

Comments

@alugowski
Copy link
Owner

Support ability to read just the indices and ignore the values, i.e. pretend the file is a pattern file even if it isn't.

Example use case: unweighted graph algorithms.

Corner cases to think about:

  • should the value be initialized to a fixed value or left untouched? Allow both?
  • what should happen with array files? Both read into an array and read into sparse struct
@alugowski
Copy link
Owner Author

Implementation idea:

Add flag to read_options. Flag could be set automatically if the value type is pattern_placeholder_type, but should not require that.

Potentially make the flag have three states:

  • read values normally
  • skip values, but set the struct to a fixed value (pretend it's a pattern)
  • skip values and don't touch the output struct at all

@galaxy001
Copy link

For the third state, I wonder how fmm treat zero values in matrix market file. Like 12 3 0.

Does fmm skip those lines?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants