-
Notifications
You must be signed in to change notification settings - Fork 3
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
GrB_PRINTSTRING #82
Comments
That seems like a good use for |
How long of a string would this be? My GxB_print mechanism could be revised to print to a string instead of a |
An initial GrB_set may be good, but of course that adds a field to each object. Maybe multiple different I think I strongly prefer to proliferate field enums than actual fields in the object |
Oh, yes of course, that's a much better suggestion than mine. GrB_get could use, say, 3 strings: GrB_STRING_SUMMARY (say 1 or a few lines at most), GrB_STRING_SHORT (which I would use to print about 30 entries of a matrix then "..."), and GrB_STRING_LONG (or GrB_STRING_FULL or GrB_STRING_VERBOSE) which would be a string that fully describes the object; it could take GBytes for a huge matrix. If we add such a GrB_get, it would also be good to be able to use GrB_set to set a user-defined function that can print a single entry to a string. Currently there is no way to print a user-defined data value, not even in my GxB extensions. |
The udt printer is in my opinion slightly harder to justify for the same reason mentioned above, making GrB_Type heavier. But still plenty of reason to do it I think |
Something that would be nice for container objects to provide a formatted string summary using the
GrB_get
interface.The text was updated successfully, but these errors were encountered: