on-internet
← Community

How do you represent large matrices from your algorithm to aid you when debugging?

Stack Overflow ·

The basic approach to this is printing the matrices. But when you get to bigger numbers, even though you're debugging (the algorithm might not work for 2 by 2 or 4 by 4 matrices), it starts to get hairy really fast. This can be language specific or language agnostic, as I can always print the results out and pipe them to some other program while debugging. What tricks do you use to spot discrepancies in this case? Do you use norms? Audio? Video? Other (mixed) representations? I know this is kind of vague, but I don't care if it does or does not apply to my current situation. It might in the fu

Comments

Sign in or sign up to comment and upvote.

No comments yet.