Lines Matching full:complexity
18 #include "complexity.h"
29 BigOFunc* FittingCurve(BigO complexity) { in FittingCurve() argument
30 switch (complexity) { in FittingCurve()
51 // Function to return an string for the calculated complexity
52 std::string GetBigOString(BigO complexity) { in GetBigOString() argument
53 switch (complexity) { in GetBigOString()
97 result.complexity = oLambda; in MinimalLeastSq()
99 // Calculate complexity. in MinimalLeastSq()
120 // - complexity : If different than oAuto, the fitting curve will stick to
124 const std::vector<double>& time, const BigO complexity) { in MinimalLeastSq() argument
128 BM_CHECK_NE(complexity, oNone); in MinimalLeastSq()
132 if (complexity == oAuto) { in MinimalLeastSq()
137 best_fit.complexity = o1; in MinimalLeastSq()
144 best_fit.complexity = fit; in MinimalLeastSq()
148 best_fit = MinimalLeastSq(n, time, FittingCurve(complexity)); in MinimalLeastSq()
149 best_fit.complexity = complexity; in MinimalLeastSq()
181 if (reports[0].complexity == oLambda) { in ComputeBigO()
185 const BigO* InitialBigO = &reports[0].complexity; in ComputeBigO()
190 InitialBigO = &result_real.complexity; in ComputeBigO()
191 // The Big-O complexity for CPU time must have the same Big-O function! in ComputeBigO()
194 InitialBigO = &result_cpu.complexity; in ComputeBigO()
200 // Drop the 'args' when reporting complexity. in ComputeBigO()
220 big_o.complexity = result_cpu.complexity; in ComputeBigO()
245 rms.complexity = result_cpu.complexity; in ComputeBigO()