I was trying to assess the big-O scaling (N vs N^2) for a couple of functions I had written. So I put @btime in a loop like this:
But apparently, k is not in the scope of @btime. This is probably obvious to someone that understands macros. I’m not there yet…Will someone help me understand this? Thanks.
for k ∈ [5,10,20]
this is the output:
ERROR: LoadError: UndefVarError: k not defined
 ##core#678() at /Users/hart/.julia/packages/BenchmarkTools/eCEpo/src/execution.jl:371