I have a problem in a function which manifest itself only at dealing with large numerical data. How I should post that numerical data, say a 100*100 real number array? Should I post the compressed text or should I link to an external site?
1 Answer
(From R.M.'s comment)
If the question is not depending on a particular matrix (e.g. the error appears with any random matrix), then please use a concise, implicit one-line definition, for example:
RandomReal[{0, 1}, {100, 100}]
and omit the huge numerical representation.
SeedRandom
can be used to make the results reproducible.
-
And what if it's not random, eg often bug replication needs specific data. Aug 3, 2016 at 17:22
-
@alancalvitti, in that case consider the answers to this question: mathematica.meta.stackexchange.com/q/1351/45020.– KvotheJun 8, 2022 at 13:21
RandomReal[1, {100, 100}]
do or can you otherwise give the code to generate a representative matrix? If not, put it on a single line of code instead of breaking it up over several lines... this will also keep the post short visually.