Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 56.86 KB | None | 0 0
  1. [47/776] Building CXX object src/shogun/CMakeFiles/libshogun.dir/statistical_testing/kernelselection/internals/MaxMeasure.cpp.o
  2. FAILED: src/shogun/CMakeFiles/libshogun.dir/statistical_testing/kernelselection/internals/MaxMeasure.cpp.o
  3. /usr/local/bin/ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -I../src -Isrc -isystem /usr/local/include/eigen3 -I/usr/local/
  4. include -I/usr/local/include/json-c -I/usr/include/libxml2 -I/usr/local/Cellar/hdf5/1.10.0-patch1/include -I/usr/local/opt/szip/include -Wall -Wno-unused-parameter -Wformat -Wfor
  5. mat-security -Wparentheses -Wshadow -Wno-unknown-pragmas -Wno-deprecated -Qunused-arguments -fcolor-diagnostics -g -fPIC -std=c++11 -MD -MT src/shogun/CMakeFiles/libshogun.dir
  6. /statistical_testing/kernelselection/internals/MaxMeasure.cpp.o -MF src/shogun/CMakeFiles/libshogun.dir/statistical_testing/kernelselection/internals/MaxMeasure.cpp.o.d -o src/sh
  7. ogun/CMakeFiles/libshogun.dir/statistical_testing/kernelselection/internals/MaxMeasure.cpp.o -c /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxM
  8. easure.cpp
  9. /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxMeasure.cpp:88:12: error: use of overloaded operator '[]' is ambiguous (with operand types 'SGVec
  10. tor<float64_t>' (aka 'SGVector<double>') and 'size_t' (aka 'unsigned long'))
  11. measures[i]=estimator->compute_statistic();
  12. ~~~~~~~~^~
  13. ../src/shogun/lib/SGVector.h:237:13: note: candidate function
  14. inline T& operator[](uint64_t index)
  15. ^
  16. ../src/shogun/lib/SGVector.h:247:13: note: candidate function
  17. inline T& operator[](int64_t index)
  18. ^
  19. ../src/shogun/lib/SGVector.h:257:13: note: candidate function
  20. inline T& operator[](uint32_t index)
  21. ^
  22. ../src/shogun/lib/SGVector.h:267:13: note: candidate function
  23. inline T& operator[](int32_t index)
  24. ^
  25. ../src/shogun/lib/SGVector.h:197:19: note: candidate function
  26. inline const T& operator[](uint64_t index) const
  27. ^
  28. ../src/shogun/lib/SGVector.h:207:19: note: candidate function
  29. inline const T& operator[](int64_t index) const
  30. ^
  31. ../src/shogun/lib/SGVector.h:217:19: note: candidate function
  32. inline const T& operator[](uint32_t index) const
  33. ^
  34. ../src/shogun/lib/SGVector.h:227:19: note: candidate function
  35. inline const T& operator[](int32_t index) const
  36. ^
  37. /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxMeasure.cpp:88:12: note: built-in candidate operator[](double *, long)
  38. measures[i]=estimator->compute_statistic();
  39. ^
  40. /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxMeasure.cpp:88:12: note: built-in candidate operator[](const double *, long)
  41. /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxMeasure.cpp:88:12: note: built-in candidate operator[](volatile double *, long)
  42. /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxMeasure.cpp:88:12: note: built-in candidate operator[](const volatile double *, long)
  43. 1 error generated.
  44. [48/776] Building CXX object src/shogun/CMakeFiles/libshogun.dir/statistical_testing/MultiKernelQuadraticTimeMMD.cpp.o
  45. FAILED: src/shogun/CMakeFiles/libshogun.dir/statistical_testing/MultiKernelQuadraticTimeMMD.cpp.o
  46. /usr/local/bin/ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -I../src -Isrc -isystem /usr/local/include/eigen3 -I/usr/local/include -I/usr/local/include/json-c -I/usr/include/libxml2 -I/usr/local/Cellar/hdf5/1.10.0-patch1/include -I/usr/local/opt/szip/include -Wall -Wno-unused-parameter -Wformat -Wformat-security -Wparentheses -Wshadow -Wno-unknown-pragmas -Wno-deprecated -Qunused-arguments -fcolor-diagnostics -g -fPIC -std=c++11 -MD -MT src/shogun/CMakeFiles/libshogun.dir/statistical_testing/MultiKernelQuadraticTimeMMD.cpp.o -MF src/shogun/CMakeFiles/libshogun.dir/statistical_testing/MultiKernelQuadraticTimeMMD.cpp.o.d -o src/shogun/CMakeFiles/libshogun.dir/statistical_testing/MultiKernelQuadraticTimeMMD.cpp.o -c /Users/wiking/shogun/src/shogun/statistical_testing/MultiKernelQuadraticTimeMMD.cpp
  47. In file included from /Users/wiking/shogun/src/shogun/statistical_testing/MultiKernelQuadraticTimeMMD.cpp:41:
  48. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: error: use of overloaded operator '[]' is ambiguous (with operand types 'SGVector<float64_t>' (aka 'SGVector<double>') and 'size_t' (aka 'unsigned long'))
  49. result[k]=compute(terms[k]);
  50. ~~~~~~^~
  51. ../src/shogun/lib/SGVector.h:237:13: note: candidate function
  52. inline T& operator[](uint64_t index)
  53. ^
  54. ../src/shogun/lib/SGVector.h:247:13: note: candidate function
  55. inline T& operator[](int64_t index)
  56. ^
  57. ../src/shogun/lib/SGVector.h:257:13: note: candidate function
  58. inline T& operator[](uint32_t index)
  59. ^
  60. ../src/shogun/lib/SGVector.h:267:13: note: candidate function
  61. inline T& operator[](int32_t index)
  62. ^
  63. ../src/shogun/lib/SGVector.h:197:19: note: candidate function
  64. inline const T& operator[](uint64_t index) const
  65. ^
  66. ../src/shogun/lib/SGVector.h:207:19: note: candidate function
  67. inline const T& operator[](int64_t index) const
  68. ^
  69. ../src/shogun/lib/SGVector.h:217:19: note: candidate function
  70. inline const T& operator[](uint32_t index) const
  71. ^
  72. ../src/shogun/lib/SGVector.h:227:19: note: candidate function
  73. inline const T& operator[](int32_t index) const
  74. ^
  75. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](double *, long)
  76. result[k]=compute(terms[k]);
  77. ^
  78. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](const double *, long)
  79. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](volatile double *, long)
  80. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](const volatile double *, long)
  81. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: error: use of overloaded operator '[]' is ambiguous (with operand types 'SGVector<float64_t>' (aka 'SGVector<double>') and 'size_t' (aka 'unsigned long'))
  82. SG_SDEBUG("result[%d] = %f!\n", k, result[k]);
  83. ~~~~~~^~
  84. ../src/shogun/io/SGIO.h:169:69: note: expanded from macro 'SG_SDEBUG'
  85. sg_io->message(MSG_DEBUG,__PRETTY_FUNCTION__, __FILE__, __LINE__, __VA_ARGS__); \
  86. ^~~~~~~~~~~
  87. ../src/shogun/lib/SGVector.h:237:13: note: candidate function
  88. inline T& operator[](uint64_t index)
  89. ^
  90. ../src/shogun/lib/SGVector.h:247:13: note: candidate function
  91. inline T& operator[](int64_t index)
  92. ^
  93. ../src/shogun/lib/SGVector.h:257:13: note: candidate function
  94. inline T& operator[](uint32_t index)
  95. ^
  96. ../src/shogun/lib/SGVector.h:267:13: note: candidate function
  97. inline T& operator[](int32_t index)
  98. ^
  99. ../src/shogun/lib/SGVector.h:197:19: note: candidate function
  100. inline const T& operator[](uint64_t index) const
  101. ^
  102. ../src/shogun/lib/SGVector.h:207:19: note: candidate function
  103. inline const T& operator[](int64_t index) const
  104. ^
  105. ../src/shogun/lib/SGVector.h:217:19: note: candidate function
  106. inline const T& operator[](uint32_t index) const
  107. ^
  108. ../src/shogun/lib/SGVector.h:227:19: note: candidate function
  109. inline const T& operator[](int32_t index) const
  110. ^
  111. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](double *, long)
  112. SG_SDEBUG("result[%d] = %f!\n", k, result[k]);
  113. ^
  114. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](const double *, long)
  115. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](volatile double *, long)
  116. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](const volatile double *, long)
  117. In file included from /Users/wiking/shogun/src/shogun/statistical_testing/MultiKernelQuadraticTimeMMD.cpp:42:
  118. ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:203:10: error: use of overloaded operator '[]' is ambiguous (with operand types 'SGVector<float64_t>' (aka 'SGVector<double>') and 'size_t' (aka 'unsigned long'))
  119. result[k]=compute_variance_estimate();
  120. ~~~~~~^~
  121. ../src/shogun/lib/SGVector.h:237:13: note: candidate function
  122. inline T& operator[](uint64_t index)
  123. ^
  124. ../src/shogun/lib/SGVector.h:247:13: note: candidate function
  125. inline T& operator[](int64_t index)
  126. ^
  127. ../src/shogun/lib/SGVector.h:257:13: note: candidate function
  128. inline T& operator[](uint32_t index)
  129. ^
  130. ../src/shogun/lib/SGVector.h:267:13: note: candidate function
  131. inline T& operator[](int32_t index)
  132. ^
  133. ../src/shogun/lib/SGVector.h:197:19: note: candidate function
  134. inline const T& operator[](uint64_t index) const
  135. ^
  136. ../src/shogun/lib/SGVector.h:207:19: note: candidate function
  137. inline const T& operator[](int64_t index) const
  138. ^
  139. ../src/shogun/lib/SGVector.h:217:19: note: candidate function
  140. inline const T& operator[](uint32_t index) const
  141. ^
  142. ../src/shogun/lib/SGVector.h:227:19: note: candidate function
  143. inline const T& operator[](int32_t index) const
  144. ^
  145. ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:203:10: note: built-in candidate operator[](double *, long)
  146. result[k]=compute_variance_estimate();
  147. ^
  148. ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:203:10: note: built-in candidate operator[](const double *, long)
  149. ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:203:10: note: built-in candidate operator[](volatile double *, long)
  150. ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:203:10: note: built-in candidate operator[](const volatile double *, long)
  151. ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:236:10: error: use of overloaded operator '[]' is ambiguous (with operand types 'SGVector<float64_t>' (aka 'SGVector<double>') and 'size_t' (aka 'unsigned long'))
  152. result[k]=mmd_est/CMath::sqrt(var_est+m_lambda);
  153. ~~~~~~^~
  154. ../src/shogun/lib/SGVector.h:237:13: note: candidate function
  155. inline T& operator[](uint64_t index)
  156. ^
  157. ../src/shogun/lib/SGVector.h:247:13: note: candidate function
  158. inline T& operator[](int64_t index)
  159. ^
  160. ../src/shogun/lib/SGVector.h:257:13: note: candidate function
  161. inline T& operator[](uint32_t index)
  162. ^
  163. ../src/shogun/lib/SGVector.h:267:13: note: candidate function
  164. inline T& operator[](int32_t index)
  165. ^
  166. ../src/shogun/lib/SGVector.h:197:19: note: candidate function
  167. inline const T& operator[](uint64_t index) const
  168. ^
  169. ../src/shogun/lib/SGVector.h:207:19: note: candidate function
  170. inline const T& operator[](int64_t index) const
  171. ^
  172. ../src/shogun/lib/SGVector.h:217:19: note: candidate function
  173. inline const T& operator[](uint32_t index) const
  174. ^
  175. ../src/shogun/lib/SGVector.h:227:19: note: candidate function
  176. inline const T& operator[](int32_t index) const
  177. ^
  178. ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:236:10: note: built-in candidate operator[](double *, long)
  179. result[k]=mmd_est/CMath::sqrt(var_est+m_lambda);
  180. ^
  181. ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:236:10: note: built-in candidate operator[](const double *, long)
  182. ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:236:10: note: built-in candidate operator[](volatile double *, long)
  183. ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:236:10: note: built-in candidate operator[](const volatile double *, long)
  184. In file included from /Users/wiking/shogun/src/shogun/statistical_testing/MultiKernelQuadraticTimeMMD.cpp:43:
  185. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: error: use of overloaded operator '[]' is ambiguous (with operand types 'SGVector<float64_t>' (aka 'SGVector<double>') and 'size_t' (aka 'unsigned long'))
  186. result[k]=compute_p_value(null_samples, statistic);
  187. ~~~~~~^~
  188. ../src/shogun/lib/SGVector.h:237:13: note: candidate function
  189. inline T& operator[](uint64_t index)
  190. ^
  191. ../src/shogun/lib/SGVector.h:247:13: note: candidate function
  192. inline T& operator[](int64_t index)
  193. ^
  194. ../src/shogun/lib/SGVector.h:257:13: note: candidate function
  195. inline T& operator[](uint32_t index)
  196. ^
  197. ../src/shogun/lib/SGVector.h:267:13: note: candidate function
  198. inline T& operator[](int32_t index)
  199. ^
  200. ../src/shogun/lib/SGVector.h:197:19: note: candidate function
  201. inline const T& operator[](uint64_t index) const
  202. ^
  203. ../src/shogun/lib/SGVector.h:207:19: note: candidate function
  204. inline const T& operator[](int64_t index) const
  205. ^
  206. ../src/shogun/lib/SGVector.h:217:19: note: candidate function
  207. inline const T& operator[](uint32_t index) const
  208. ^
  209. ../src/shogun/lib/SGVector.h:227:19: note: candidate function
  210. inline const T& operator[](int32_t index) const
  211. ^
  212. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: note: built-in candidate operator[](double *, long)
  213. result[k]=compute_p_value(null_samples, statistic);
  214. ^
  215. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: note: built-in candidate operator[](const double *, long)
  216. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: note: built-in candidate operator[](volatile double *, long)
  217. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: note: built-in candidate operator[](const volatile double *, long)
  218. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: error: use of overloaded operator '[]' is ambiguous (with operand types 'SGVector<float64_t>' (aka 'SGVector<double>') and 'size_t' (aka 'unsigned long'))
  219. SG_SDEBUG("Kernel(%d): p_value=%f\n", k, result[k]);
  220. ~~~~~~^~
  221. ../src/shogun/io/SGIO.h:169:69: note: expanded from macro 'SG_SDEBUG'
  222. sg_io->message(MSG_DEBUG,__PRETTY_FUNCTION__, __FILE__, __LINE__, __VA_ARGS__); \
  223. ^~~~~~~~~~~
  224. ../src/shogun/lib/SGVector.h:237:13: note: candidate function
  225. inline T& operator[](uint64_t index)
  226. ^
  227. ../src/shogun/lib/SGVector.h:247:13: note: candidate function
  228. inline T& operator[](int64_t index)
  229. ^
  230. ../src/shogun/lib/SGVector.h:257:13: note: candidate function
  231. inline T& operator[](uint32_t index)
  232. ^
  233. ../src/shogun/lib/SGVector.h:267:13: note: candidate function
  234. inline T& operator[](int32_t index)
  235. ^
  236. ../src/shogun/lib/SGVector.h:197:19: note: candidate function
  237. inline const T& operator[](uint64_t index) const
  238. ^
  239. ../src/shogun/lib/SGVector.h:207:19: note: candidate function
  240. inline const T& operator[](int64_t index) const
  241. ^
  242. ../src/shogun/lib/SGVector.h:217:19: note: candidate function
  243. inline const T& operator[](uint32_t index) const
  244. ^
  245. ../src/shogun/lib/SGVector.h:227:19: note: candidate function
  246. inline const T& operator[](int32_t index) const
  247. ^
  248. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: note: built-in candidate operator[](double *, long)
  249. SG_SDEBUG("Kernel(%d): p_value=%f\n", k, result[k]);
  250. ^
  251. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: note: built-in candidate operator[](const double *, long)
  252. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: note: built-in candidate operator[](volatile double *, long)
  253. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: note: built-in candidate operator[](const volatile double *, long)
  254. 6 errors generated.
  255. [49/776] Building CXX object src/shogun/CMakeFiles/libshogun.dir/statistical_testing/StreamingMMD.cpp.o
  256. FAILED: src/shogun/CMakeFiles/libshogun.dir/statistical_testing/StreamingMMD.cpp.o
  257. /usr/local/bin/ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -I../src -Isrc -isystem /usr/local/include/eigen3 -I/usr/local/include -I/usr/local/include/json-c -I/usr/include/libxml2 -I/usr/local/Cellar/hdf5/1.10.0-patch1/include -I/usr/local/opt/szip/include -Wall -Wno-unused-parameter -Wformat -Wformat-security -Wparentheses -Wshadow -Wno-unknown-pragmas -Wno-deprecated -Qunused-arguments -fcolor-diagnostics -g -fPIC -std=c++11 -MD -MT src/shogun/CMakeFiles/libshogun.dir/statistical_testing/StreamingMMD.cpp.o -MF src/shogun/CMakeFiles/libshogun.dir/statistical_testing/StreamingMMD.cpp.o.d -o src/shogun/CMakeFiles/libshogun.dir/statistical_testing/StreamingMMD.cpp.o -c /Users/wiking/shogun/src/shogun/statistical_testing/StreamingMMD.cpp
  258. In file included from /Users/wiking/shogun/src/shogun/statistical_testing/StreamingMMD.cpp:48:
  259. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: error: use of overloaded operator '[]' is ambiguous (with operand types 'SGVector<float64_t>' (aka 'SGVector<double>') and 'size_t' (aka 'unsigned long'))
  260. result[k]=compute(terms[k]);
  261. ~~~~~~^~
  262. ../src/shogun/lib/SGVector.h:237:13: note: candidate function
  263. inline T& operator[](uint64_t index)
  264. ^
  265. ../src/shogun/lib/SGVector.h:247:13: note: candidate function
  266. inline T& operator[](int64_t index)
  267. ^
  268. ../src/shogun/lib/SGVector.h:257:13: note: candidate function
  269. inline T& operator[](uint32_t index)
  270. ^
  271. ../src/shogun/lib/SGVector.h:267:13: note: candidate function
  272. inline T& operator[](int32_t index)
  273. ^
  274. ../src/shogun/lib/SGVector.h:197:19: note: candidate function
  275. inline const T& operator[](uint64_t index) const
  276. ^
  277. ../src/shogun/lib/SGVector.h:207:19: note: candidate function
  278. inline const T& operator[](int64_t index) const
  279. ^
  280. ../src/shogun/lib/SGVector.h:217:19: note: candidate function
  281. inline const T& operator[](uint32_t index) const
  282. ^
  283. ../src/shogun/lib/SGVector.h:227:19: note: candidate function
  284. inline const T& operator[](int32_t index) const
  285. ^
  286. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](double *, long)
  287. result[k]=compute(terms[k]);
  288. ^
  289. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](const double *, long)
  290. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](volatile double *, long)
  291. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](const volatile double *, long)
  292. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: error: use of overloaded operator '[]' is ambiguous (with operand types 'SGVector<float64_t>' (aka 'SGVector<double>') and 'size_t' (aka 'unsigned long'))
  293. SG_SDEBUG("result[%d] = %f!\n", k, result[k]);
  294. ~~~~~~^~
  295. ../src/shogun/io/SGIO.h:169:69: note: expanded from macro 'SG_SDEBUG'
  296. sg_io->message(MSG_DEBUG,__PRETTY_FUNCTION__, __FILE__, __LINE__, __VA_ARGS__); \
  297. ^~~~~~~~~~~
  298. ../src/shogun/lib/SGVector.h:237:13: note: candidate function
  299. inline T& operator[](uint64_t index)
  300. ^
  301. ../src/shogun/lib/SGVector.h:247:13: note: candidate function
  302. inline T& operator[](int64_t index)
  303. ^
  304. ../src/shogun/lib/SGVector.h:257:13: note: candidate function
  305. inline T& operator[](uint32_t index)
  306. ^
  307. ../src/shogun/lib/SGVector.h:267:13: note: candidate function
  308. inline T& operator[](int32_t index)
  309. ^
  310. ../src/shogun/lib/SGVector.h:197:19: note: candidate function
  311. inline const T& operator[](uint64_t index) const
  312. ^
  313. ../src/shogun/lib/SGVector.h:207:19: note: candidate function
  314. inline const T& operator[](int64_t index) const
  315. ^
  316. ../src/shogun/lib/SGVector.h:217:19: note: candidate function
  317. inline const T& operator[](uint32_t index) const
  318. ^
  319. ../src/shogun/lib/SGVector.h:227:19: note: candidate function
  320. inline const T& operator[](int32_t index) const
  321. ^
  322. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](double *, long)
  323. SG_SDEBUG("result[%d] = %f!\n", k, result[k]);
  324. ^
  325. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](const double *, long)
  326. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](volatile double *, long)
  327. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](const volatile double *, long)
  328. /Users/wiking/shogun/src/shogun/statistical_testing/StreamingMMD.cpp:296:36: error: use of overloaded operator '[]' is ambiguous (with operand types 'SGVector<float64_t>' (aka 'SGVector<double>') and 'size_t' (aka 'unsigned long'))
  329. auto delta=mmds[k][i]-statistic[k];
  330. ~~~~~~~~~^~
  331. ../src/shogun/lib/SGVector.h:237:13: note: candidate function
  332. inline T& operator[](uint64_t index)
  333. ^
  334. ../src/shogun/lib/SGVector.h:247:13: note: candidate function
  335. inline T& operator[](int64_t index)
  336. ^
  337. ../src/shogun/lib/SGVector.h:257:13: note: candidate function
  338. inline T& operator[](uint32_t index)
  339. ^
  340. ../src/shogun/lib/SGVector.h:267:13: note: candidate function
  341. inline T& operator[](int32_t index)
  342. ^
  343. ../src/shogun/lib/SGVector.h:197:19: note: candidate function
  344. inline const T& operator[](uint64_t index) const
  345. ^
  346. ../src/shogun/lib/SGVector.h:207:19: note: candidate function
  347. inline const T& operator[](int64_t index) const
  348. ^
  349. ../src/shogun/lib/SGVector.h:217:19: note: candidate function
  350. inline const T& operator[](uint32_t index) const
  351. ^
  352. ../src/shogun/lib/SGVector.h:227:19: note: candidate function
  353. inline const T& operator[](int32_t index) const
  354. ^
  355. /Users/wiking/shogun/src/shogun/statistical_testing/StreamingMMD.cpp:296:36: note: built-in candidate operator[](double *, long)
  356. auto delta=mmds[k][i]-statistic[k];
  357. ^
  358. /Users/wiking/shogun/src/shogun/statistical_testing/StreamingMMD.cpp:296:36: note: built-in candidate operator[](const double *, long)
  359. /Users/wiking/shogun/src/shogun/statistical_testing/StreamingMMD.cpp:296:36: note: built-in candidate operator[](volatile double *, long)
  360. /Users/wiking/shogun/src/shogun/statistical_testing/StreamingMMD.cpp:296:36: note: built-in candidate operator[](const volatile double *, long)
  361. /Users/wiking/shogun/src/shogun/statistical_testing/StreamingMMD.cpp:297:14: error: use of overloaded operator '[]' is ambiguous (with operand types 'SGVector<float64_t>' (aka 'SGVector<double>') and 'size_t' (aka 'unsigned long'))
  362. statistic[k]+=delta/term_counters_statistic[k]++;
  363. ~~~~~~~~~^~
  364. ../src/shogun/lib/SGVector.h:237:13: note: candidate function
  365. inline T& operator[](uint64_t index)
  366. ^
  367. ../src/shogun/lib/SGVector.h:247:13: note: candidate function
  368. inline T& operator[](int64_t index)
  369. ^
  370. ../src/shogun/lib/SGVector.h:257:13: note: candidate function
  371. inline T& operator[](uint32_t index)
  372. ^
  373. ../src/shogun/lib/SGVector.h:267:13: note: candidate function
  374. inline T& operator[](int32_t index)
  375. ^
  376. ../src/shogun/lib/SGVector.h:197:19: note: candidate function
  377. inline const T& operator[](uint64_t index) const
  378. ^
  379. ../src/shogun/lib/SGVector.h:207:19: note: candidate function
  380. inline const T& operator[](int64_t index) const
  381. ^
  382. ../src/shogun/lib/SGVector.h:217:19: note: candidate function
  383. inline const T& operator[](uint32_t index) const
  384. ^
  385. ../src/shogun/lib/SGVector.h:227:19: note: candidate function
  386. inline const T& operator[](int32_t index) const
  387. ^
  388. /Users/wiking/shogun/src/shogun/statistical_testing/StreamingMMD.cpp:297:14: note: built-in candidate operator[](double *, long)
  389. statistic[k]+=delta/term_counters_statistic[k]++;
  390. ^
  391. /Users/wiking/shogun/src/shogun/statistical_testing/StreamingMMD.cpp:297:14: note: built-in candidate operator[](const double *, long)
  392. /Users/wiking/shogun/src/shogun/statistical_testing/StreamingMMD.cpp:297:14: note: built-in candidate operator[](volatile double *, long)
  393. /Users/wiking/shogun/src/shogun/statistical_testing/StreamingMMD.cpp:297:14: note: built-in candidate operator[](const volatile double *, long)
  394. 4 errors generated.
  395. [50/776] Building CXX object src/shogun/CMakeFiles/libshogun.dir/features/streaming/StreamingDenseFeatures.cpp.o
  396. [51/776] Building CXX object src/shogun/CMakeFiles/libshogun.dir/statistical_testing/kernelselection/internals/MaxCrossValidation.cpp.o
  397. FAILED: src/shogun/CMakeFiles/libshogun.dir/statistical_testing/kernelselection/internals/MaxCrossValidation.cpp.o
  398. /usr/local/bin/ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -I../src -Isrc -isystem /usr/local/include/eigen3 -I/usr/local/include -I/usr/local/include/json-c -I/usr/include/libxml2 -I/usr/local/Cellar/hdf5/1.10.0-patch1/include -I/usr/local/opt/szip/include -Wall -Wno-unused-parameter -Wformat -Wformat-security -Wparentheses -Wshadow -Wno-unknown-pragmas -Wno-deprecated -Qunused-arguments -fcolor-diagnostics -g -fPIC -std=c++11 -MD -MT src/shogun/CMakeFiles/libshogun.dir/statistical_testing/kernelselection/internals/MaxCrossValidation.cpp.o -MF src/shogun/CMakeFiles/libshogun.dir/statistical_testing/kernelselection/internals/MaxCrossValidation.cpp.o.d -o src/shogun/CMakeFiles/libshogun.dir/statistical_testing/kernelselection/internals/MaxCrossValidation.cpp.o -c /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxCrossValidation.cpp
  399. In file included from /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxCrossValidation.cpp:45:
  400. In file included from ../src/shogun/statistical_testing/internals/mmd/CrossValidationMMD.h:42:
  401. In file included from ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:39:
  402. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: error: use of overloaded operator '[]' is ambiguous (with operand types 'SGVector<float64_t>' (aka 'SGVector<double>') and 'size_t' (aka 'unsigned long'))
  403. result[k]=compute(terms[k]);
  404. ~~~~~~^~
  405. ../src/shogun/lib/SGVector.h:237:13: note: candidate function
  406. inline T& operator[](uint64_t index)
  407. ^
  408. ../src/shogun/lib/SGVector.h:247:13: note: candidate function
  409. inline T& operator[](int64_t index)
  410. ^
  411. ../src/shogun/lib/SGVector.h:257:13: note: candidate function
  412. inline T& operator[](uint32_t index)
  413. ^
  414. ../src/shogun/lib/SGVector.h:267:13: note: candidate function
  415. inline T& operator[](int32_t index)
  416. ^
  417. ../src/shogun/lib/SGVector.h:197:19: note: candidate function
  418. inline const T& operator[](uint64_t index) const
  419. ^
  420. ../src/shogun/lib/SGVector.h:207:19: note: candidate function
  421. inline const T& operator[](int64_t index) const
  422. ^
  423. ../src/shogun/lib/SGVector.h:217:19: note: candidate function
  424. inline const T& operator[](uint32_t index) const
  425. ^
  426. ../src/shogun/lib/SGVector.h:227:19: note: candidate function
  427. inline const T& operator[](int32_t index) const
  428. ^
  429. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](double *, long)
  430. result[k]=compute(terms[k]);
  431. ^
  432. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](const double *, long)
  433. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](volatile double *, long)
  434. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](const volatile double *, long)
  435. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: error: use of overloaded operator '[]' is ambiguous (with operand types 'SGVector<float64_t>' (aka 'SGVector<double>') and 'size_t' (aka 'unsigned long'))
  436. SG_SDEBUG("result[%d] = %f!\n", k, result[k]);
  437. ~~~~~~^~
  438. ../src/shogun/io/SGIO.h:169:69: note: expanded from macro 'SG_SDEBUG'
  439. sg_io->message(MSG_DEBUG,__PRETTY_FUNCTION__, __FILE__, __LINE__, __VA_ARGS__); \
  440. ^~~~~~~~~~~
  441. ../src/shogun/lib/SGVector.h:237:13: note: candidate function
  442. inline T& operator[](uint64_t index)
  443. ^
  444. ../src/shogun/lib/SGVector.h:247:13: note: candidate function
  445. inline T& operator[](int64_t index)
  446. ^
  447. ../src/shogun/lib/SGVector.h:257:13: note: candidate function
  448. inline T& operator[](uint32_t index)
  449. ^
  450. ../src/shogun/lib/SGVector.h:267:13: note: candidate function
  451. inline T& operator[](int32_t index)
  452. ^
  453. ../src/shogun/lib/SGVector.h:197:19: note: candidate function
  454. inline const T& operator[](uint64_t index) const
  455. ^
  456. ../src/shogun/lib/SGVector.h:207:19: note: candidate function
  457. inline const T& operator[](int64_t index) const
  458. ^
  459. ../src/shogun/lib/SGVector.h:217:19: note: candidate function
  460. inline const T& operator[](uint32_t index) const
  461. ^
  462. ../src/shogun/lib/SGVector.h:227:19: note: candidate function
  463. inline const T& operator[](int32_t index) const
  464. ^
  465. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](double *, long)
  466. SG_SDEBUG("result[%d] = %f!\n", k, result[k]);
  467. ^
  468. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](const double *, long)
  469. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](volatile double *, long)
  470. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](const volatile double *, long)
  471. In file included from /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxCrossValidation.cpp:45:
  472. In file included from ../src/shogun/statistical_testing/internals/mmd/CrossValidationMMD.h:42:
  473. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: error: use of overloaded operator '[]' is ambiguous (with operand types 'SGVector<float64_t>' (aka 'SGVector<double>') and 'size_t' (aka 'unsigned long'))
  474. result[k]=compute_p_value(null_samples, statistic);
  475. ~~~~~~^~
  476. ../src/shogun/lib/SGVector.h:237:13: note: candidate function
  477. inline T& operator[](uint64_t index)
  478. ^
  479. ../src/shogun/lib/SGVector.h:247:13: note: candidate function
  480. inline T& operator[](int64_t index)
  481. ^
  482. ../src/shogun/lib/SGVector.h:257:13: note: candidate function
  483. inline T& operator[](uint32_t index)
  484. ^
  485. ../src/shogun/lib/SGVector.h:267:13: note: candidate function
  486. inline T& operator[](int32_t index)
  487. ^
  488. ../src/shogun/lib/SGVector.h:197:19: note: candidate function
  489. inline const T& operator[](uint64_t index) const
  490. ^
  491. ../src/shogun/lib/SGVector.h:207:19: note: candidate function
  492. inline const T& operator[](int64_t index) const
  493. ^
  494. ../src/shogun/lib/SGVector.h:217:19: note: candidate function
  495. inline const T& operator[](uint32_t index) const
  496. ^
  497. ../src/shogun/lib/SGVector.h:227:19: note: candidate function
  498. inline const T& operator[](int32_t index) const
  499. ^
  500. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: note: built-in candidate operator[](double *, long)
  501. result[k]=compute_p_value(null_samples, statistic);
  502. ^
  503. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: note: built-in candidate operator[](const double *, long)
  504. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: note: built-in candidate operator[](volatile double *, long)
  505. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: note: built-in candidate operator[](const volatile double *, long)
  506. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: error: use of overloaded operator '[]' is ambiguous (with operand types 'SGVector<float64_t>' (aka 'SGVector<double>') and 'size_t' (aka 'unsigned long'))
  507. SG_SDEBUG("Kernel(%d): p_value=%f\n", k, result[k]);
  508. ~~~~~~^~
  509. ../src/shogun/io/SGIO.h:169:69: note: expanded from macro 'SG_SDEBUG'
  510. sg_io->message(MSG_DEBUG,__PRETTY_FUNCTION__, __FILE__, __LINE__, __VA_ARGS__); \
  511. ^~~~~~~~~~~
  512. ../src/shogun/lib/SGVector.h:237:13: note: candidate function
  513. inline T& operator[](uint64_t index)
  514. ^
  515. ../src/shogun/lib/SGVector.h:247:13: note: candidate function
  516. inline T& operator[](int64_t index)
  517. ^
  518. ../src/shogun/lib/SGVector.h:257:13: note: candidate function
  519. inline T& operator[](uint32_t index)
  520. ^
  521. ../src/shogun/lib/SGVector.h:267:13: note: candidate function
  522. inline T& operator[](int32_t index)
  523. ^
  524. ../src/shogun/lib/SGVector.h:197:19: note: candidate function
  525. inline const T& operator[](uint64_t index) const
  526. ^
  527. ../src/shogun/lib/SGVector.h:207:19: note: candidate function
  528. inline const T& operator[](int64_t index) const
  529. ^
  530. ../src/shogun/lib/SGVector.h:217:19: note: candidate function
  531. inline const T& operator[](uint32_t index) const
  532. ^
  533. ../src/shogun/lib/SGVector.h:227:19: note: candidate function
  534. inline const T& operator[](int32_t index) const
  535. ^
  536. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: note: built-in candidate operator[](double *, long)
  537. SG_SDEBUG("Kernel(%d): p_value=%f\n", k, result[k]);
  538. ^
  539. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: note: built-in candidate operator[](const double *, long)
  540. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: note: built-in candidate operator[](volatile double *, long)
  541. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: note: built-in candidate operator[](const volatile double *, long)
  542. In file included from /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxCrossValidation.cpp:46:
  543. ../src/shogun/statistical_testing/kernelselection/internals/MaxCrossValidation.h:56:30: warning: 'get_measure_vector' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
  544. virtual SGVector<float64_t> get_measure_vector();
  545. ^
  546. ../src/shogun/statistical_testing/kernelselection/internals/KernelSelection.h:59:30: note: overridden virtual function is here
  547. virtual SGVector<float64_t> get_measure_vector()=0;
  548. ^
  549. In file included from /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxCrossValidation.cpp:46:
  550. ../src/shogun/statistical_testing/kernelselection/internals/MaxCrossValidation.h:57:30: warning: 'get_measure_matrix' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
  551. virtual SGMatrix<float64_t> get_measure_matrix();
  552. ^
  553. ../src/shogun/statistical_testing/kernelselection/internals/KernelSelection.h:58:30: note: overridden virtual function is here
  554. virtual SGMatrix<float64_t> get_measure_matrix()=0;
  555. ^
  556. In file included from /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxCrossValidation.cpp:46:
  557. ../src/shogun/statistical_testing/kernelselection/internals/MaxCrossValidation.h:59:15: warning: 'init_measures' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
  558. virtual void init_measures();
  559. ^
  560. ../src/shogun/statistical_testing/kernelselection/internals/KernelSelection.h:63:15: note: overridden virtual function is here
  561. virtual void init_measures()=0;
  562. ^
  563. In file included from /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxCrossValidation.cpp:46:
  564. ../src/shogun/statistical_testing/kernelselection/internals/MaxCrossValidation.h:60:15: warning: 'compute_measures' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
  565. virtual void compute_measures();
  566. ^
  567. ../src/shogun/statistical_testing/kernelselection/internals/KernelSelection.h:64:15: note: overridden virtual function is here
  568. virtual void compute_measures()=0;
  569. ^
  570. 4 warnings and 4 errors generated.
  571. [52/776] Building CXX object src/shogun/CMakeFiles/libshogun.dir/statistical_testing/QuadraticTimeMMD.cpp.o
  572. FAILED: src/shogun/CMakeFiles/libshogun.dir/statistical_testing/QuadraticTimeMMD.cpp.o
  573. /usr/local/bin/ccache /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -I../src -Isrc -isystem /usr/local/include/eigen3 -I/usr/local/include -I/usr/local/include/json-c -I/usr/include/libxml2 -I/usr/local/Cellar/hdf5/1.10.0-patch1/include -I/usr/local/opt/szip/include -Wall -Wno-unused-parameter -Wformat -Wformat-security -Wparentheses -Wshadow -Wno-unknown-pragmas -Wno-deprecated -Qunused-arguments -fcolor-diagnostics -g -fPIC -std=c++11 -MD -MT src/shogun/CMakeFiles/libshogun.dir/statistical_testing/QuadraticTimeMMD.cpp.o -MF src/shogun/CMakeFiles/libshogun.dir/statistical_testing/QuadraticTimeMMD.cpp.o.d -o src/shogun/CMakeFiles/libshogun.dir/statistical_testing/QuadraticTimeMMD.cpp.o -c /Users/wiking/shogun/src/shogun/statistical_testing/QuadraticTimeMMD.cpp
  574. In file included from /Users/wiking/shogun/src/shogun/statistical_testing/QuadraticTimeMMD.cpp:45:
  575. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: error: use of overloaded operator '[]' is ambiguous (with operand types 'SGVector<float64_t>' (aka 'SGVector<double>') and 'size_t' (aka 'unsigned long'))
  576. result[k]=compute(terms[k]);
  577. ~~~~~~^~
  578. ../src/shogun/lib/SGVector.h:237:13: note: candidate function
  579. inline T& operator[](uint64_t index)
  580. ^
  581. ../src/shogun/lib/SGVector.h:247:13: note: candidate function
  582. inline T& operator[](int64_t index)
  583. ^
  584. ../src/shogun/lib/SGVector.h:257:13: note: candidate function
  585. inline T& operator[](uint32_t index)
  586. ^
  587. ../src/shogun/lib/SGVector.h:267:13: note: candidate function
  588. inline T& operator[](int32_t index)
  589. ^
  590. ../src/shogun/lib/SGVector.h:197:19: note: candidate function
  591. inline const T& operator[](uint64_t index) const
  592. ^
  593. ../src/shogun/lib/SGVector.h:207:19: note: candidate function
  594. inline const T& operator[](int64_t index) const
  595. ^
  596. ../src/shogun/lib/SGVector.h:217:19: note: candidate function
  597. inline const T& operator[](uint32_t index) const
  598. ^
  599. ../src/shogun/lib/SGVector.h:227:19: note: candidate function
  600. inline const T& operator[](int32_t index) const
  601. ^
  602. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](double *, long)
  603. result[k]=compute(terms[k]);
  604. ^
  605. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](const double *, long)
  606. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](volatile double *, long)
  607. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](const volatile double *, long)
  608. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: error: use of overloaded operator '[]' is ambiguous (with operand types 'SGVector<float64_t>' (aka 'SGVector<double>') and 'size_t' (aka 'unsigned long'))
  609. SG_SDEBUG("result[%d] = %f!\n", k, result[k]);
  610. ~~~~~~^~
  611. ../src/shogun/io/SGIO.h:169:69: note: expanded from macro 'SG_SDEBUG'
  612. sg_io->message(MSG_DEBUG,__PRETTY_FUNCTION__, __FILE__, __LINE__, __VA_ARGS__); \
  613. ^~~~~~~~~~~
  614. ../src/shogun/lib/SGVector.h:237:13: note: candidate function
  615. inline T& operator[](uint64_t index)
  616. ^
  617. ../src/shogun/lib/SGVector.h:247:13: note: candidate function
  618. inline T& operator[](int64_t index)
  619. ^
  620. ../src/shogun/lib/SGVector.h:257:13: note: candidate function
  621. inline T& operator[](uint32_t index)
  622. ^
  623. ../src/shogun/lib/SGVector.h:267:13: note: candidate function
  624. inline T& operator[](int32_t index)
  625. ^
  626. ../src/shogun/lib/SGVector.h:197:19: note: candidate function
  627. inline const T& operator[](uint64_t index) const
  628. ^
  629. ../src/shogun/lib/SGVector.h:207:19: note: candidate function
  630. inline const T& operator[](int64_t index) const
  631. ^
  632. ../src/shogun/lib/SGVector.h:217:19: note: candidate function
  633. inline const T& operator[](uint32_t index) const
  634. ^
  635. ../src/shogun/lib/SGVector.h:227:19: note: candidate function
  636. inline const T& operator[](int32_t index) const
  637. ^
  638. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](double *, long)
  639. SG_SDEBUG("result[%d] = %f!\n", k, result[k]);
  640. ^
  641. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](const double *, long)
  642. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](volatile double *, long)
  643. ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](const volatile double *, long)
  644. In file included from /Users/wiking/shogun/src/shogun/statistical_testing/QuadraticTimeMMD.cpp:46:
  645. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: error: use of overloaded operator '[]' is ambiguous (with operand types 'SGVector<float64_t>' (aka 'SGVector<double>') and 'size_t' (aka 'unsigned long'))
  646. result[k]=compute_p_value(null_samples, statistic);
  647. ~~~~~~^~
  648. ../src/shogun/lib/SGVector.h:237:13: note: candidate function
  649. inline T& operator[](uint64_t index)
  650. ^
  651. ../src/shogun/lib/SGVector.h:247:13: note: candidate function
  652. inline T& operator[](int64_t index)
  653. ^
  654. ../src/shogun/lib/SGVector.h:257:13: note: candidate function
  655. inline T& operator[](uint32_t index)
  656. ^
  657. ../src/shogun/lib/SGVector.h:267:13: note: candidate function
  658. inline T& operator[](int32_t index)
  659. ^
  660. ../src/shogun/lib/SGVector.h:197:19: note: candidate function
  661. inline const T& operator[](uint64_t index) const
  662. ^
  663. ../src/shogun/lib/SGVector.h:207:19: note: candidate function
  664. inline const T& operator[](int64_t index) const
  665. ^
  666. ../src/shogun/lib/SGVector.h:217:19: note: candidate function
  667. inline const T& operator[](uint32_t index) const
  668. ^
  669. ../src/shogun/lib/SGVector.h:227:19: note: candidate function
  670. inline const T& operator[](int32_t index) const
  671. ^
  672. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: note: built-in candidate operator[](double *, long)
  673. result[k]=compute_p_value(null_samples, statistic);
  674. ^
  675. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: note: built-in candidate operator[](const double *, long)
  676. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: note: built-in candidate operator[](volatile double *, long)
  677. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: note: built-in candidate operator[](const volatile double *, long)
  678. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: error: use of overloaded operator '[]' is ambiguous (with operand types 'SGVector<float64_t>' (aka 'SGVector<double>') and 'size_t' (aka 'unsigned long'))
  679. SG_SDEBUG("Kernel(%d): p_value=%f\n", k, result[k]);
  680. ~~~~~~^~
  681. ../src/shogun/io/SGIO.h:169:69: note: expanded from macro 'SG_SDEBUG'
  682. sg_io->message(MSG_DEBUG,__PRETTY_FUNCTION__, __FILE__, __LINE__, __VA_ARGS__); \
  683. ^~~~~~~~~~~
  684. ../src/shogun/lib/SGVector.h:237:13: note: candidate function
  685. inline T& operator[](uint64_t index)
  686. ^
  687. ../src/shogun/lib/SGVector.h:247:13: note: candidate function
  688. inline T& operator[](int64_t index)
  689. ^
  690. ../src/shogun/lib/SGVector.h:257:13: note: candidate function
  691. inline T& operator[](uint32_t index)
  692. ^
  693. ../src/shogun/lib/SGVector.h:267:13: note: candidate function
  694. inline T& operator[](int32_t index)
  695. ^
  696. ../src/shogun/lib/SGVector.h:197:19: note: candidate function
  697. inline const T& operator[](uint64_t index) const
  698. ^
  699. ../src/shogun/lib/SGVector.h:207:19: note: candidate function
  700. inline const T& operator[](int64_t index) const
  701. ^
  702. ../src/shogun/lib/SGVector.h:217:19: note: candidate function
  703. inline const T& operator[](uint32_t index) const
  704. ^
  705. ../src/shogun/lib/SGVector.h:227:19: note: candidate function
  706. inline const T& operator[](int32_t index) const
  707. ^
  708. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: note: built-in candidate operator[](double *, long)
  709. SG_SDEBUG("Kernel(%d): p_value=%f\n", k, result[k]);
  710. ^
  711. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: note: built-in candidate operator[](const double *, long)
  712. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: note: built-in candidate operator[](volatile double *, long)
  713. ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: note: built-in candidate operator[](const volatile double *, long)
  714. In file included from /Users/wiking/shogun/src/shogun/statistical_testing/QuadraticTimeMMD.cpp:48:
  715. ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:203:10: error: use of overloaded operator '[]' is ambiguous (with operand types 'SGVector<float64_t>' (aka 'SGVector<double>') and 'size_t' (aka 'unsigned long'))
  716. result[k]=compute_variance_estimate();
  717. ~~~~~~^~
  718. ../src/shogun/lib/SGVector.h:237:13: note: candidate function
  719. inline T& operator[](uint64_t index)
  720. ^
  721. ../src/shogun/lib/SGVector.h:247:13: note: candidate function
  722. inline T& operator[](int64_t index)
  723. ^
  724. ../src/shogun/lib/SGVector.h:257:13: note: candidate function
  725. inline T& operator[](uint32_t index)
  726. ^
  727. ../src/shogun/lib/SGVector.h:267:13: note: candidate function
  728. inline T& operator[](int32_t index)
  729. ^
  730. ../src/shogun/lib/SGVector.h:197:19: note: candidate function
  731. inline const T& operator[](uint64_t index) const
  732. ^
  733. ../src/shogun/lib/SGVector.h:207:19: note: candidate function
  734. inline const T& operator[](int64_t index) const
  735. ^
  736. ../src/shogun/lib/SGVector.h:217:19: note: candidate function
  737. inline const T& operator[](uint32_t index) const
  738. ^
  739. ../src/shogun/lib/SGVector.h:227:19: note: candidate function
  740. inline const T& operator[](int32_t index) const
  741. ^
  742. ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:203:10: note: built-in candidate operator[](double *, long)
  743. result[k]=compute_variance_estimate();
  744. ^
  745. ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:203:10: note: built-in candidate operator[](const double *, long)
  746. ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:203:10: note: built-in candidate operator[](volatile double *, long)
  747. ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:203:10: note: built-in candidate operator[](const volatile double *, long)
  748. ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:236:10: error: use of overloaded operator '[]' is ambiguous (with operand types 'SGVector<float64_t>' (aka 'SGVector<double>') and 'size_t' (aka 'unsigned long'))
  749. result[k]=mmd_est/CMath::sqrt(var_est+m_lambda);
  750. ~~~~~~^~
  751. ../src/shogun/lib/SGVector.h:237:13: note: candidate function
  752. inline T& operator[](uint64_t index)
  753. ^
  754. ../src/shogun/lib/SGVector.h:247:13: note: candidate function
  755. inline T& operator[](int64_t index)
  756. ^
  757. ../src/shogun/lib/SGVector.h:257:13: note: candidate function
  758. inline T& operator[](uint32_t index)
  759. ^
  760. ../src/shogun/lib/SGVector.h:267:13: note: candidate function
  761. inline T& operator[](int32_t index)
  762. ^
  763. ../src/shogun/lib/SGVector.h:197:19: note: candidate function
  764. inline const T& operator[](uint64_t index) const
  765. ^
  766. ../src/shogun/lib/SGVector.h:207:19: note: candidate function
  767. inline const T& operator[](int64_t index) const
  768. ^
  769. ../src/shogun/lib/SGVector.h:217:19: note: candidate function
  770. inline const T& operator[](uint32_t index) const
  771. ^
  772. ../src/shogun/lib/SGVector.h:227:19: note: candidate function
  773. inline const T& operator[](int32_t index) const
  774. ^
  775. ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:236:10: note: built-in candidate operator[](double *, long)
  776. result[k]=mmd_est/CMath::sqrt(var_est+m_lambda);
  777. ^
  778. ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:236:10: note: built-in candidate operator[](const double *, long)
  779. ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:236:10: note: built-in candidate operator[](volatile double *, long)
  780. ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:236:10: note: built-in candidate operator[](const volatile double *, long)
  781. 6 errors generated.
  782. ninja: build stopped: subcommand failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement