Dear experts
I want to calculate the time cost for two different algorithms for convolution, then I draw them on a TMultiGraph
which contains 2 TGraph
inside. I confirmed every point is positive x and y, but I got the error when I try to TCanvas::SetLogx()
and TCanvas::SetLogy()
, why?
I attach my working example here:
checkTimeCostFFT.cxx (4.7 KB)
graph.root (6.9 KB)
And the output of values says they are all positive:
0th loop finished with inputLength = 1
normal convolution time cost: 2.625e-06
FFT convolution time cost: 0.391761
1th loop finished with inputLength = 4
normal convolution time cost: 9.417e-06
FFT convolution time cost: 0.662822
2th loop finished with inputLength = 16
normal convolution time cost: 6.8792e-05
FFT convolution time cost: 1.12083
3th loop finished with inputLength = 64
normal convolution time cost: 0.000505083
FFT convolution time cost: 1.80859
4th loop finished with inputLength = 256
normal convolution time cost: 0.00397829
FFT convolution time cost: 2.83119
ROOT version: 6.32.08