-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Make GenMatrix's PrintDebug work with templates #40
Comments
Commented by rcurtin on 19 Feb 40156236 14:40 UTC |
Commented by jcline3 on 1 Sep 40305653 20:53 UTC
(This maintains the previous formatting of "%3.3f ", but should work with other types). To call it:
or
To actually write to a file, though, you'd have to do:
This means we'd have to go through and change all the things that call it, which isn't a huge deal I guess. We'd just be including ofstream/ostream, and changing the calls like I demonstrated. |
Commented by jcline3 on 19 Feb 40305658 19:33 UTC
D'oh. |
Commented by jcline3 on 4 Jul 40305849 15:33 UTC This one was for !GenVertex.
And for !GenMatrix:
I realized I was stupid after I left today. Anyway, theoretically these are correct. |
Commented by jcline3 on 2 Feb 40363014 20:00 UTC |
Commented by jcline3 on 1 Dec 41152116 20:13 UTC |
Reported by march on 10 Oct 40155575 11:33 UTC
PrintDebug() for a GenMatrix only prints floating points correctly. It would be nice if it could handle other basic types (e.g. ints and bools).
The text was updated successfully, but these errors were encountered: