Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [47/776] Building CXX object src/shogun/CMakeFiles/libshogun.dir/statistical_testing/kernelselection/internals/MaxMeasure.cpp.o
- FAILED: src/shogun/CMakeFiles/libshogun.dir/statistical_testing/kernelselection/internals/MaxMeasure.cpp.o
- /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 -Wfor
- 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
- /statistical_testing/kernelselection/internals/MaxMeasure.cpp.o -MF src/shogun/CMakeFiles/libshogun.dir/statistical_testing/kernelselection/internals/MaxMeasure.cpp.o.d -o src/sh
- ogun/CMakeFiles/libshogun.dir/statistical_testing/kernelselection/internals/MaxMeasure.cpp.o -c /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxM
- easure.cpp
- /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxMeasure.cpp:88:12: error: use of overloaded operator '[]' is ambiguous (with operand types 'SGVec
- tor<float64_t>' (aka 'SGVector<double>') and 'size_t' (aka 'unsigned long'))
- measures[i]=estimator->compute_statistic();
- ~~~~~~~~^~
- ../src/shogun/lib/SGVector.h:237:13: note: candidate function
- inline T& operator[](uint64_t index)
- ^
- ../src/shogun/lib/SGVector.h:247:13: note: candidate function
- inline T& operator[](int64_t index)
- ^
- ../src/shogun/lib/SGVector.h:257:13: note: candidate function
- inline T& operator[](uint32_t index)
- ^
- ../src/shogun/lib/SGVector.h:267:13: note: candidate function
- inline T& operator[](int32_t index)
- ^
- ../src/shogun/lib/SGVector.h:197:19: note: candidate function
- inline const T& operator[](uint64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:207:19: note: candidate function
- inline const T& operator[](int64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:217:19: note: candidate function
- inline const T& operator[](uint32_t index) const
- ^
- ../src/shogun/lib/SGVector.h:227:19: note: candidate function
- inline const T& operator[](int32_t index) const
- ^
- /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxMeasure.cpp:88:12: note: built-in candidate operator[](double *, long)
- measures[i]=estimator->compute_statistic();
- ^
- /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxMeasure.cpp:88:12: note: built-in candidate operator[](const double *, long)
- /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxMeasure.cpp:88:12: note: built-in candidate operator[](volatile double *, long)
- /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxMeasure.cpp:88:12: note: built-in candidate operator[](const volatile double *, long)
- 1 error generated.
- [48/776] Building CXX object src/shogun/CMakeFiles/libshogun.dir/statistical_testing/MultiKernelQuadraticTimeMMD.cpp.o
- FAILED: src/shogun/CMakeFiles/libshogun.dir/statistical_testing/MultiKernelQuadraticTimeMMD.cpp.o
- /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
- In file included from /Users/wiking/shogun/src/shogun/statistical_testing/MultiKernelQuadraticTimeMMD.cpp:41:
- ../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'))
- result[k]=compute(terms[k]);
- ~~~~~~^~
- ../src/shogun/lib/SGVector.h:237:13: note: candidate function
- inline T& operator[](uint64_t index)
- ^
- ../src/shogun/lib/SGVector.h:247:13: note: candidate function
- inline T& operator[](int64_t index)
- ^
- ../src/shogun/lib/SGVector.h:257:13: note: candidate function
- inline T& operator[](uint32_t index)
- ^
- ../src/shogun/lib/SGVector.h:267:13: note: candidate function
- inline T& operator[](int32_t index)
- ^
- ../src/shogun/lib/SGVector.h:197:19: note: candidate function
- inline const T& operator[](uint64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:207:19: note: candidate function
- inline const T& operator[](int64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:217:19: note: candidate function
- inline const T& operator[](uint32_t index) const
- ^
- ../src/shogun/lib/SGVector.h:227:19: note: candidate function
- inline const T& operator[](int32_t index) const
- ^
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](double *, long)
- result[k]=compute(terms[k]);
- ^
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](const double *, long)
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](volatile double *, long)
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](const volatile double *, long)
- ../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'))
- SG_SDEBUG("result[%d] = %f!\n", k, result[k]);
- ~~~~~~^~
- ../src/shogun/io/SGIO.h:169:69: note: expanded from macro 'SG_SDEBUG'
- sg_io->message(MSG_DEBUG,__PRETTY_FUNCTION__, __FILE__, __LINE__, __VA_ARGS__); \
- ^~~~~~~~~~~
- ../src/shogun/lib/SGVector.h:237:13: note: candidate function
- inline T& operator[](uint64_t index)
- ^
- ../src/shogun/lib/SGVector.h:247:13: note: candidate function
- inline T& operator[](int64_t index)
- ^
- ../src/shogun/lib/SGVector.h:257:13: note: candidate function
- inline T& operator[](uint32_t index)
- ^
- ../src/shogun/lib/SGVector.h:267:13: note: candidate function
- inline T& operator[](int32_t index)
- ^
- ../src/shogun/lib/SGVector.h:197:19: note: candidate function
- inline const T& operator[](uint64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:207:19: note: candidate function
- inline const T& operator[](int64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:217:19: note: candidate function
- inline const T& operator[](uint32_t index) const
- ^
- ../src/shogun/lib/SGVector.h:227:19: note: candidate function
- inline const T& operator[](int32_t index) const
- ^
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](double *, long)
- SG_SDEBUG("result[%d] = %f!\n", k, result[k]);
- ^
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](const double *, long)
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](volatile double *, long)
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](const volatile double *, long)
- In file included from /Users/wiking/shogun/src/shogun/statistical_testing/MultiKernelQuadraticTimeMMD.cpp:42:
- ../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'))
- result[k]=compute_variance_estimate();
- ~~~~~~^~
- ../src/shogun/lib/SGVector.h:237:13: note: candidate function
- inline T& operator[](uint64_t index)
- ^
- ../src/shogun/lib/SGVector.h:247:13: note: candidate function
- inline T& operator[](int64_t index)
- ^
- ../src/shogun/lib/SGVector.h:257:13: note: candidate function
- inline T& operator[](uint32_t index)
- ^
- ../src/shogun/lib/SGVector.h:267:13: note: candidate function
- inline T& operator[](int32_t index)
- ^
- ../src/shogun/lib/SGVector.h:197:19: note: candidate function
- inline const T& operator[](uint64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:207:19: note: candidate function
- inline const T& operator[](int64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:217:19: note: candidate function
- inline const T& operator[](uint32_t index) const
- ^
- ../src/shogun/lib/SGVector.h:227:19: note: candidate function
- inline const T& operator[](int32_t index) const
- ^
- ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:203:10: note: built-in candidate operator[](double *, long)
- result[k]=compute_variance_estimate();
- ^
- ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:203:10: note: built-in candidate operator[](const double *, long)
- ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:203:10: note: built-in candidate operator[](volatile double *, long)
- ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:203:10: note: built-in candidate operator[](const volatile double *, long)
- ../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'))
- result[k]=mmd_est/CMath::sqrt(var_est+m_lambda);
- ~~~~~~^~
- ../src/shogun/lib/SGVector.h:237:13: note: candidate function
- inline T& operator[](uint64_t index)
- ^
- ../src/shogun/lib/SGVector.h:247:13: note: candidate function
- inline T& operator[](int64_t index)
- ^
- ../src/shogun/lib/SGVector.h:257:13: note: candidate function
- inline T& operator[](uint32_t index)
- ^
- ../src/shogun/lib/SGVector.h:267:13: note: candidate function
- inline T& operator[](int32_t index)
- ^
- ../src/shogun/lib/SGVector.h:197:19: note: candidate function
- inline const T& operator[](uint64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:207:19: note: candidate function
- inline const T& operator[](int64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:217:19: note: candidate function
- inline const T& operator[](uint32_t index) const
- ^
- ../src/shogun/lib/SGVector.h:227:19: note: candidate function
- inline const T& operator[](int32_t index) const
- ^
- ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:236:10: note: built-in candidate operator[](double *, long)
- result[k]=mmd_est/CMath::sqrt(var_est+m_lambda);
- ^
- ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:236:10: note: built-in candidate operator[](const double *, long)
- ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:236:10: note: built-in candidate operator[](volatile double *, long)
- ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:236:10: note: built-in candidate operator[](const volatile double *, long)
- In file included from /Users/wiking/shogun/src/shogun/statistical_testing/MultiKernelQuadraticTimeMMD.cpp:43:
- ../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'))
- result[k]=compute_p_value(null_samples, statistic);
- ~~~~~~^~
- ../src/shogun/lib/SGVector.h:237:13: note: candidate function
- inline T& operator[](uint64_t index)
- ^
- ../src/shogun/lib/SGVector.h:247:13: note: candidate function
- inline T& operator[](int64_t index)
- ^
- ../src/shogun/lib/SGVector.h:257:13: note: candidate function
- inline T& operator[](uint32_t index)
- ^
- ../src/shogun/lib/SGVector.h:267:13: note: candidate function
- inline T& operator[](int32_t index)
- ^
- ../src/shogun/lib/SGVector.h:197:19: note: candidate function
- inline const T& operator[](uint64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:207:19: note: candidate function
- inline const T& operator[](int64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:217:19: note: candidate function
- inline const T& operator[](uint32_t index) const
- ^
- ../src/shogun/lib/SGVector.h:227:19: note: candidate function
- inline const T& operator[](int32_t index) const
- ^
- ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: note: built-in candidate operator[](double *, long)
- result[k]=compute_p_value(null_samples, statistic);
- ^
- ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: note: built-in candidate operator[](const double *, long)
- ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: note: built-in candidate operator[](volatile double *, long)
- ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: note: built-in candidate operator[](const volatile double *, long)
- ../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'))
- SG_SDEBUG("Kernel(%d): p_value=%f\n", k, result[k]);
- ~~~~~~^~
- ../src/shogun/io/SGIO.h:169:69: note: expanded from macro 'SG_SDEBUG'
- sg_io->message(MSG_DEBUG,__PRETTY_FUNCTION__, __FILE__, __LINE__, __VA_ARGS__); \
- ^~~~~~~~~~~
- ../src/shogun/lib/SGVector.h:237:13: note: candidate function
- inline T& operator[](uint64_t index)
- ^
- ../src/shogun/lib/SGVector.h:247:13: note: candidate function
- inline T& operator[](int64_t index)
- ^
- ../src/shogun/lib/SGVector.h:257:13: note: candidate function
- inline T& operator[](uint32_t index)
- ^
- ../src/shogun/lib/SGVector.h:267:13: note: candidate function
- inline T& operator[](int32_t index)
- ^
- ../src/shogun/lib/SGVector.h:197:19: note: candidate function
- inline const T& operator[](uint64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:207:19: note: candidate function
- inline const T& operator[](int64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:217:19: note: candidate function
- inline const T& operator[](uint32_t index) const
- ^
- ../src/shogun/lib/SGVector.h:227:19: note: candidate function
- inline const T& operator[](int32_t index) const
- ^
- ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: note: built-in candidate operator[](double *, long)
- SG_SDEBUG("Kernel(%d): p_value=%f\n", k, result[k]);
- ^
- ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: note: built-in candidate operator[](const double *, long)
- ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: note: built-in candidate operator[](volatile double *, long)
- ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: note: built-in candidate operator[](const volatile double *, long)
- 6 errors generated.
- [49/776] Building CXX object src/shogun/CMakeFiles/libshogun.dir/statistical_testing/StreamingMMD.cpp.o
- FAILED: src/shogun/CMakeFiles/libshogun.dir/statistical_testing/StreamingMMD.cpp.o
- /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
- In file included from /Users/wiking/shogun/src/shogun/statistical_testing/StreamingMMD.cpp: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'))
- result[k]=compute(terms[k]);
- ~~~~~~^~
- ../src/shogun/lib/SGVector.h:237:13: note: candidate function
- inline T& operator[](uint64_t index)
- ^
- ../src/shogun/lib/SGVector.h:247:13: note: candidate function
- inline T& operator[](int64_t index)
- ^
- ../src/shogun/lib/SGVector.h:257:13: note: candidate function
- inline T& operator[](uint32_t index)
- ^
- ../src/shogun/lib/SGVector.h:267:13: note: candidate function
- inline T& operator[](int32_t index)
- ^
- ../src/shogun/lib/SGVector.h:197:19: note: candidate function
- inline const T& operator[](uint64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:207:19: note: candidate function
- inline const T& operator[](int64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:217:19: note: candidate function
- inline const T& operator[](uint32_t index) const
- ^
- ../src/shogun/lib/SGVector.h:227:19: note: candidate function
- inline const T& operator[](int32_t index) const
- ^
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](double *, long)
- result[k]=compute(terms[k]);
- ^
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](const double *, long)
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](volatile double *, long)
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](const volatile double *, long)
- ../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'))
- SG_SDEBUG("result[%d] = %f!\n", k, result[k]);
- ~~~~~~^~
- ../src/shogun/io/SGIO.h:169:69: note: expanded from macro 'SG_SDEBUG'
- sg_io->message(MSG_DEBUG,__PRETTY_FUNCTION__, __FILE__, __LINE__, __VA_ARGS__); \
- ^~~~~~~~~~~
- ../src/shogun/lib/SGVector.h:237:13: note: candidate function
- inline T& operator[](uint64_t index)
- ^
- ../src/shogun/lib/SGVector.h:247:13: note: candidate function
- inline T& operator[](int64_t index)
- ^
- ../src/shogun/lib/SGVector.h:257:13: note: candidate function
- inline T& operator[](uint32_t index)
- ^
- ../src/shogun/lib/SGVector.h:267:13: note: candidate function
- inline T& operator[](int32_t index)
- ^
- ../src/shogun/lib/SGVector.h:197:19: note: candidate function
- inline const T& operator[](uint64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:207:19: note: candidate function
- inline const T& operator[](int64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:217:19: note: candidate function
- inline const T& operator[](uint32_t index) const
- ^
- ../src/shogun/lib/SGVector.h:227:19: note: candidate function
- inline const T& operator[](int32_t index) const
- ^
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](double *, long)
- SG_SDEBUG("result[%d] = %f!\n", k, result[k]);
- ^
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](const double *, long)
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](volatile double *, long)
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](const volatile double *, long)
- /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'))
- auto delta=mmds[k][i]-statistic[k];
- ~~~~~~~~~^~
- ../src/shogun/lib/SGVector.h:237:13: note: candidate function
- inline T& operator[](uint64_t index)
- ^
- ../src/shogun/lib/SGVector.h:247:13: note: candidate function
- inline T& operator[](int64_t index)
- ^
- ../src/shogun/lib/SGVector.h:257:13: note: candidate function
- inline T& operator[](uint32_t index)
- ^
- ../src/shogun/lib/SGVector.h:267:13: note: candidate function
- inline T& operator[](int32_t index)
- ^
- ../src/shogun/lib/SGVector.h:197:19: note: candidate function
- inline const T& operator[](uint64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:207:19: note: candidate function
- inline const T& operator[](int64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:217:19: note: candidate function
- inline const T& operator[](uint32_t index) const
- ^
- ../src/shogun/lib/SGVector.h:227:19: note: candidate function
- inline const T& operator[](int32_t index) const
- ^
- /Users/wiking/shogun/src/shogun/statistical_testing/StreamingMMD.cpp:296:36: note: built-in candidate operator[](double *, long)
- auto delta=mmds[k][i]-statistic[k];
- ^
- /Users/wiking/shogun/src/shogun/statistical_testing/StreamingMMD.cpp:296:36: note: built-in candidate operator[](const double *, long)
- /Users/wiking/shogun/src/shogun/statistical_testing/StreamingMMD.cpp:296:36: note: built-in candidate operator[](volatile double *, long)
- /Users/wiking/shogun/src/shogun/statistical_testing/StreamingMMD.cpp:296:36: note: built-in candidate operator[](const volatile double *, long)
- /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'))
- statistic[k]+=delta/term_counters_statistic[k]++;
- ~~~~~~~~~^~
- ../src/shogun/lib/SGVector.h:237:13: note: candidate function
- inline T& operator[](uint64_t index)
- ^
- ../src/shogun/lib/SGVector.h:247:13: note: candidate function
- inline T& operator[](int64_t index)
- ^
- ../src/shogun/lib/SGVector.h:257:13: note: candidate function
- inline T& operator[](uint32_t index)
- ^
- ../src/shogun/lib/SGVector.h:267:13: note: candidate function
- inline T& operator[](int32_t index)
- ^
- ../src/shogun/lib/SGVector.h:197:19: note: candidate function
- inline const T& operator[](uint64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:207:19: note: candidate function
- inline const T& operator[](int64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:217:19: note: candidate function
- inline const T& operator[](uint32_t index) const
- ^
- ../src/shogun/lib/SGVector.h:227:19: note: candidate function
- inline const T& operator[](int32_t index) const
- ^
- /Users/wiking/shogun/src/shogun/statistical_testing/StreamingMMD.cpp:297:14: note: built-in candidate operator[](double *, long)
- statistic[k]+=delta/term_counters_statistic[k]++;
- ^
- /Users/wiking/shogun/src/shogun/statistical_testing/StreamingMMD.cpp:297:14: note: built-in candidate operator[](const double *, long)
- /Users/wiking/shogun/src/shogun/statistical_testing/StreamingMMD.cpp:297:14: note: built-in candidate operator[](volatile double *, long)
- /Users/wiking/shogun/src/shogun/statistical_testing/StreamingMMD.cpp:297:14: note: built-in candidate operator[](const volatile double *, long)
- 4 errors generated.
- [50/776] Building CXX object src/shogun/CMakeFiles/libshogun.dir/features/streaming/StreamingDenseFeatures.cpp.o
- [51/776] Building CXX object src/shogun/CMakeFiles/libshogun.dir/statistical_testing/kernelselection/internals/MaxCrossValidation.cpp.o
- FAILED: src/shogun/CMakeFiles/libshogun.dir/statistical_testing/kernelselection/internals/MaxCrossValidation.cpp.o
- /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
- In file included from /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxCrossValidation.cpp:45:
- In file included from ../src/shogun/statistical_testing/internals/mmd/CrossValidationMMD.h:42:
- In file included from ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:39:
- ../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'))
- result[k]=compute(terms[k]);
- ~~~~~~^~
- ../src/shogun/lib/SGVector.h:237:13: note: candidate function
- inline T& operator[](uint64_t index)
- ^
- ../src/shogun/lib/SGVector.h:247:13: note: candidate function
- inline T& operator[](int64_t index)
- ^
- ../src/shogun/lib/SGVector.h:257:13: note: candidate function
- inline T& operator[](uint32_t index)
- ^
- ../src/shogun/lib/SGVector.h:267:13: note: candidate function
- inline T& operator[](int32_t index)
- ^
- ../src/shogun/lib/SGVector.h:197:19: note: candidate function
- inline const T& operator[](uint64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:207:19: note: candidate function
- inline const T& operator[](int64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:217:19: note: candidate function
- inline const T& operator[](uint32_t index) const
- ^
- ../src/shogun/lib/SGVector.h:227:19: note: candidate function
- inline const T& operator[](int32_t index) const
- ^
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](double *, long)
- result[k]=compute(terms[k]);
- ^
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](const double *, long)
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](volatile double *, long)
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](const volatile double *, long)
- ../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'))
- SG_SDEBUG("result[%d] = %f!\n", k, result[k]);
- ~~~~~~^~
- ../src/shogun/io/SGIO.h:169:69: note: expanded from macro 'SG_SDEBUG'
- sg_io->message(MSG_DEBUG,__PRETTY_FUNCTION__, __FILE__, __LINE__, __VA_ARGS__); \
- ^~~~~~~~~~~
- ../src/shogun/lib/SGVector.h:237:13: note: candidate function
- inline T& operator[](uint64_t index)
- ^
- ../src/shogun/lib/SGVector.h:247:13: note: candidate function
- inline T& operator[](int64_t index)
- ^
- ../src/shogun/lib/SGVector.h:257:13: note: candidate function
- inline T& operator[](uint32_t index)
- ^
- ../src/shogun/lib/SGVector.h:267:13: note: candidate function
- inline T& operator[](int32_t index)
- ^
- ../src/shogun/lib/SGVector.h:197:19: note: candidate function
- inline const T& operator[](uint64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:207:19: note: candidate function
- inline const T& operator[](int64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:217:19: note: candidate function
- inline const T& operator[](uint32_t index) const
- ^
- ../src/shogun/lib/SGVector.h:227:19: note: candidate function
- inline const T& operator[](int32_t index) const
- ^
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](double *, long)
- SG_SDEBUG("result[%d] = %f!\n", k, result[k]);
- ^
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](const double *, long)
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](volatile double *, long)
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](const volatile double *, long)
- In file included from /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxCrossValidation.cpp:45:
- In file included from ../src/shogun/statistical_testing/internals/mmd/CrossValidationMMD.h:42:
- ../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'))
- result[k]=compute_p_value(null_samples, statistic);
- ~~~~~~^~
- ../src/shogun/lib/SGVector.h:237:13: note: candidate function
- inline T& operator[](uint64_t index)
- ^
- ../src/shogun/lib/SGVector.h:247:13: note: candidate function
- inline T& operator[](int64_t index)
- ^
- ../src/shogun/lib/SGVector.h:257:13: note: candidate function
- inline T& operator[](uint32_t index)
- ^
- ../src/shogun/lib/SGVector.h:267:13: note: candidate function
- inline T& operator[](int32_t index)
- ^
- ../src/shogun/lib/SGVector.h:197:19: note: candidate function
- inline const T& operator[](uint64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:207:19: note: candidate function
- inline const T& operator[](int64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:217:19: note: candidate function
- inline const T& operator[](uint32_t index) const
- ^
- ../src/shogun/lib/SGVector.h:227:19: note: candidate function
- inline const T& operator[](int32_t index) const
- ^
- ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: note: built-in candidate operator[](double *, long)
- result[k]=compute_p_value(null_samples, statistic);
- ^
- ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: note: built-in candidate operator[](const double *, long)
- ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: note: built-in candidate operator[](volatile double *, long)
- ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: note: built-in candidate operator[](const volatile double *, long)
- ../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'))
- SG_SDEBUG("Kernel(%d): p_value=%f\n", k, result[k]);
- ~~~~~~^~
- ../src/shogun/io/SGIO.h:169:69: note: expanded from macro 'SG_SDEBUG'
- sg_io->message(MSG_DEBUG,__PRETTY_FUNCTION__, __FILE__, __LINE__, __VA_ARGS__); \
- ^~~~~~~~~~~
- ../src/shogun/lib/SGVector.h:237:13: note: candidate function
- inline T& operator[](uint64_t index)
- ^
- ../src/shogun/lib/SGVector.h:247:13: note: candidate function
- inline T& operator[](int64_t index)
- ^
- ../src/shogun/lib/SGVector.h:257:13: note: candidate function
- inline T& operator[](uint32_t index)
- ^
- ../src/shogun/lib/SGVector.h:267:13: note: candidate function
- inline T& operator[](int32_t index)
- ^
- ../src/shogun/lib/SGVector.h:197:19: note: candidate function
- inline const T& operator[](uint64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:207:19: note: candidate function
- inline const T& operator[](int64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:217:19: note: candidate function
- inline const T& operator[](uint32_t index) const
- ^
- ../src/shogun/lib/SGVector.h:227:19: note: candidate function
- inline const T& operator[](int32_t index) const
- ^
- ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: note: built-in candidate operator[](double *, long)
- SG_SDEBUG("Kernel(%d): p_value=%f\n", k, result[k]);
- ^
- ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: note: built-in candidate operator[](const double *, long)
- ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: note: built-in candidate operator[](volatile double *, long)
- ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: note: built-in candidate operator[](const volatile double *, long)
- In file included from /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxCrossValidation.cpp:46:
- ../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]
- virtual SGVector<float64_t> get_measure_vector();
- ^
- ../src/shogun/statistical_testing/kernelselection/internals/KernelSelection.h:59:30: note: overridden virtual function is here
- virtual SGVector<float64_t> get_measure_vector()=0;
- ^
- In file included from /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxCrossValidation.cpp:46:
- ../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]
- virtual SGMatrix<float64_t> get_measure_matrix();
- ^
- ../src/shogun/statistical_testing/kernelselection/internals/KernelSelection.h:58:30: note: overridden virtual function is here
- virtual SGMatrix<float64_t> get_measure_matrix()=0;
- ^
- In file included from /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxCrossValidation.cpp:46:
- ../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]
- virtual void init_measures();
- ^
- ../src/shogun/statistical_testing/kernelselection/internals/KernelSelection.h:63:15: note: overridden virtual function is here
- virtual void init_measures()=0;
- ^
- In file included from /Users/wiking/shogun/src/shogun/statistical_testing/kernelselection/internals/MaxCrossValidation.cpp:46:
- ../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]
- virtual void compute_measures();
- ^
- ../src/shogun/statistical_testing/kernelselection/internals/KernelSelection.h:64:15: note: overridden virtual function is here
- virtual void compute_measures()=0;
- ^
- 4 warnings and 4 errors generated.
- [52/776] Building CXX object src/shogun/CMakeFiles/libshogun.dir/statistical_testing/QuadraticTimeMMD.cpp.o
- FAILED: src/shogun/CMakeFiles/libshogun.dir/statistical_testing/QuadraticTimeMMD.cpp.o
- /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
- In file included from /Users/wiking/shogun/src/shogun/statistical_testing/QuadraticTimeMMD.cpp:45:
- ../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'))
- result[k]=compute(terms[k]);
- ~~~~~~^~
- ../src/shogun/lib/SGVector.h:237:13: note: candidate function
- inline T& operator[](uint64_t index)
- ^
- ../src/shogun/lib/SGVector.h:247:13: note: candidate function
- inline T& operator[](int64_t index)
- ^
- ../src/shogun/lib/SGVector.h:257:13: note: candidate function
- inline T& operator[](uint32_t index)
- ^
- ../src/shogun/lib/SGVector.h:267:13: note: candidate function
- inline T& operator[](int32_t index)
- ^
- ../src/shogun/lib/SGVector.h:197:19: note: candidate function
- inline const T& operator[](uint64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:207:19: note: candidate function
- inline const T& operator[](int64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:217:19: note: candidate function
- inline const T& operator[](uint32_t index) const
- ^
- ../src/shogun/lib/SGVector.h:227:19: note: candidate function
- inline const T& operator[](int32_t index) const
- ^
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](double *, long)
- result[k]=compute(terms[k]);
- ^
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](const double *, long)
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](volatile double *, long)
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:132:10: note: built-in candidate operator[](const volatile double *, long)
- ../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'))
- SG_SDEBUG("result[%d] = %f!\n", k, result[k]);
- ~~~~~~^~
- ../src/shogun/io/SGIO.h:169:69: note: expanded from macro 'SG_SDEBUG'
- sg_io->message(MSG_DEBUG,__PRETTY_FUNCTION__, __FILE__, __LINE__, __VA_ARGS__); \
- ^~~~~~~~~~~
- ../src/shogun/lib/SGVector.h:237:13: note: candidate function
- inline T& operator[](uint64_t index)
- ^
- ../src/shogun/lib/SGVector.h:247:13: note: candidate function
- inline T& operator[](int64_t index)
- ^
- ../src/shogun/lib/SGVector.h:257:13: note: candidate function
- inline T& operator[](uint32_t index)
- ^
- ../src/shogun/lib/SGVector.h:267:13: note: candidate function
- inline T& operator[](int32_t index)
- ^
- ../src/shogun/lib/SGVector.h:197:19: note: candidate function
- inline const T& operator[](uint64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:207:19: note: candidate function
- inline const T& operator[](int64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:217:19: note: candidate function
- inline const T& operator[](uint32_t index) const
- ^
- ../src/shogun/lib/SGVector.h:227:19: note: candidate function
- inline const T& operator[](int32_t index) const
- ^
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](double *, long)
- SG_SDEBUG("result[%d] = %f!\n", k, result[k]);
- ^
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](const double *, long)
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](volatile double *, long)
- ../src/shogun/statistical_testing/internals/mmd/ComputeMMD.h:133:45: note: built-in candidate operator[](const volatile double *, long)
- In file included from /Users/wiking/shogun/src/shogun/statistical_testing/QuadraticTimeMMD.cpp:46:
- ../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'))
- result[k]=compute_p_value(null_samples, statistic);
- ~~~~~~^~
- ../src/shogun/lib/SGVector.h:237:13: note: candidate function
- inline T& operator[](uint64_t index)
- ^
- ../src/shogun/lib/SGVector.h:247:13: note: candidate function
- inline T& operator[](int64_t index)
- ^
- ../src/shogun/lib/SGVector.h:257:13: note: candidate function
- inline T& operator[](uint32_t index)
- ^
- ../src/shogun/lib/SGVector.h:267:13: note: candidate function
- inline T& operator[](int32_t index)
- ^
- ../src/shogun/lib/SGVector.h:197:19: note: candidate function
- inline const T& operator[](uint64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:207:19: note: candidate function
- inline const T& operator[](int64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:217:19: note: candidate function
- inline const T& operator[](uint32_t index) const
- ^
- ../src/shogun/lib/SGVector.h:227:19: note: candidate function
- inline const T& operator[](int32_t index) const
- ^
- ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: note: built-in candidate operator[](double *, long)
- result[k]=compute_p_value(null_samples, statistic);
- ^
- ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: note: built-in candidate operator[](const double *, long)
- ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: note: built-in candidate operator[](volatile double *, long)
- ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:189:10: note: built-in candidate operator[](const volatile double *, long)
- ../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'))
- SG_SDEBUG("Kernel(%d): p_value=%f\n", k, result[k]);
- ~~~~~~^~
- ../src/shogun/io/SGIO.h:169:69: note: expanded from macro 'SG_SDEBUG'
- sg_io->message(MSG_DEBUG,__PRETTY_FUNCTION__, __FILE__, __LINE__, __VA_ARGS__); \
- ^~~~~~~~~~~
- ../src/shogun/lib/SGVector.h:237:13: note: candidate function
- inline T& operator[](uint64_t index)
- ^
- ../src/shogun/lib/SGVector.h:247:13: note: candidate function
- inline T& operator[](int64_t index)
- ^
- ../src/shogun/lib/SGVector.h:257:13: note: candidate function
- inline T& operator[](uint32_t index)
- ^
- ../src/shogun/lib/SGVector.h:267:13: note: candidate function
- inline T& operator[](int32_t index)
- ^
- ../src/shogun/lib/SGVector.h:197:19: note: candidate function
- inline const T& operator[](uint64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:207:19: note: candidate function
- inline const T& operator[](int64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:217:19: note: candidate function
- inline const T& operator[](uint32_t index) const
- ^
- ../src/shogun/lib/SGVector.h:227:19: note: candidate function
- inline const T& operator[](int32_t index) const
- ^
- ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: note: built-in candidate operator[](double *, long)
- SG_SDEBUG("Kernel(%d): p_value=%f\n", k, result[k]);
- ^
- ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: note: built-in candidate operator[](const double *, long)
- ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: note: built-in candidate operator[](volatile double *, long)
- ../src/shogun/statistical_testing/internals/mmd/PermutationMMD.h:190:51: note: built-in candidate operator[](const volatile double *, long)
- In file included from /Users/wiking/shogun/src/shogun/statistical_testing/QuadraticTimeMMD.cpp:48:
- ../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'))
- result[k]=compute_variance_estimate();
- ~~~~~~^~
- ../src/shogun/lib/SGVector.h:237:13: note: candidate function
- inline T& operator[](uint64_t index)
- ^
- ../src/shogun/lib/SGVector.h:247:13: note: candidate function
- inline T& operator[](int64_t index)
- ^
- ../src/shogun/lib/SGVector.h:257:13: note: candidate function
- inline T& operator[](uint32_t index)
- ^
- ../src/shogun/lib/SGVector.h:267:13: note: candidate function
- inline T& operator[](int32_t index)
- ^
- ../src/shogun/lib/SGVector.h:197:19: note: candidate function
- inline const T& operator[](uint64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:207:19: note: candidate function
- inline const T& operator[](int64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:217:19: note: candidate function
- inline const T& operator[](uint32_t index) const
- ^
- ../src/shogun/lib/SGVector.h:227:19: note: candidate function
- inline const T& operator[](int32_t index) const
- ^
- ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:203:10: note: built-in candidate operator[](double *, long)
- result[k]=compute_variance_estimate();
- ^
- ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:203:10: note: built-in candidate operator[](const double *, long)
- ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:203:10: note: built-in candidate operator[](volatile double *, long)
- ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:203:10: note: built-in candidate operator[](const volatile double *, long)
- ../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'))
- result[k]=mmd_est/CMath::sqrt(var_est+m_lambda);
- ~~~~~~^~
- ../src/shogun/lib/SGVector.h:237:13: note: candidate function
- inline T& operator[](uint64_t index)
- ^
- ../src/shogun/lib/SGVector.h:247:13: note: candidate function
- inline T& operator[](int64_t index)
- ^
- ../src/shogun/lib/SGVector.h:257:13: note: candidate function
- inline T& operator[](uint32_t index)
- ^
- ../src/shogun/lib/SGVector.h:267:13: note: candidate function
- inline T& operator[](int32_t index)
- ^
- ../src/shogun/lib/SGVector.h:197:19: note: candidate function
- inline const T& operator[](uint64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:207:19: note: candidate function
- inline const T& operator[](int64_t index) const
- ^
- ../src/shogun/lib/SGVector.h:217:19: note: candidate function
- inline const T& operator[](uint32_t index) const
- ^
- ../src/shogun/lib/SGVector.h:227:19: note: candidate function
- inline const T& operator[](int32_t index) const
- ^
- ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:236:10: note: built-in candidate operator[](double *, long)
- result[k]=mmd_est/CMath::sqrt(var_est+m_lambda);
- ^
- ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:236:10: note: built-in candidate operator[](const double *, long)
- ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:236:10: note: built-in candidate operator[](volatile double *, long)
- ../src/shogun/statistical_testing/internals/mmd/VarianceH1.h:236:10: note: built-in candidate operator[](const volatile double *, long)
- 6 errors generated.
- ninja: build stopped: subcommand failed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement