Last active
June 3, 2016 16:52
-
-
Save OXPHOS/b9c363c2de6129029428e270f3bc815c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ 81%] Built target shogun-static | |
Scanning dependencies of target variational_approx_example | |
[ 81%] Building CXX object examples/undocumented/libshogun/CMakeFiles/variational_approx_example.dir/variational_approx_example.cpp.o | |
In file included from /Users/zora/Github/shogun/examples/undocumented/libshogun/variational_approx_example.cpp:42: | |
In file included from /Users/zora/Github/shogun/src/shogun/machine/gp/LogitVGPiecewiseBoundLikelihood.h:43: | |
In file included from /Users/zora/Github/shogun/src/shogun/machine/gp/LogitLikelihood.h:38: | |
In file included from /Users/zora/Github/shogun/src/shogun/machine/gp/LikelihoodModel.h:40: | |
In file included from /Users/zora/Github/shogun/src/shogun/labels/Labels.h:22: | |
In file included from /Users/zora/Github/shogun/src/shogun/features/SubsetStack.h:16: | |
In file included from /Users/zora/Github/shogun/src/shogun/mathematics/Math.h:30: | |
/Users/zora/Github/shogun/src/shogun/lib/SGVector.h:490:4: error: called object type 'shogun::CCSVFile *' is not a | |
function or function pointer | |
ar(vlen); | |
^~ | |
/Users/zora/Github/shogun/examples/undocumented/libshogun/variational_approx_example.cpp:71:16: note: in | |
instantiation of function template specialization 'shogun::SGVector<double>::load<shogun::CCSVFile *>' | |
requested here | |
m_from_matlab.load(m_file); | |
^ | |
In file included from /Users/zora/Github/shogun/examples/undocumented/libshogun/variational_approx_example.cpp:42: | |
In file included from /Users/zora/Github/shogun/src/shogun/machine/gp/LogitVGPiecewiseBoundLikelihood.h:43: | |
In file included from /Users/zora/Github/shogun/src/shogun/machine/gp/LogitLikelihood.h:38: | |
In file included from /Users/zora/Github/shogun/src/shogun/machine/gp/LikelihoodModel.h:40: | |
In file included from /Users/zora/Github/shogun/src/shogun/labels/Labels.h:22: | |
In file included from /Users/zora/Github/shogun/src/shogun/features/SubsetStack.h:16: | |
In file included from /Users/zora/Github/shogun/src/shogun/mathematics/Math.h:30: | |
/Users/zora/Github/shogun/src/shogun/lib/SGVector.h:493:5: error: called object type 'shogun::CCSVFile *' is not a | |
function or function pointer | |
ar(vector[i]); | |
^~ | |
2 errors generated. | |
make[2]: *** [examples/undocumented/libshogun/CMakeFiles/variational_approx_example.dir/variational_approx_example.cpp.o] Error 1 | |
make[1]: *** [examples/undocumented/libshogun/CMakeFiles/variational_approx_example.dir/all] Error 2 | |
make: *** [all] Error 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template<class Archive> | |
void save(Archive & ar) const | |
{ | |
ar(vlen); | |
for (index_t i = 0; i < vlen; ++i) | |
ar(vector[i]); | |
} | |
template<class Archive> | |
void load(Archive & ar) | |
{ | |
unref(); | |
ar(vlen); | |
vector = SG_MALLOC(T, vlen); | |
for (index_t i = 0; i < vlen; ++i) | |
ar(vector[i]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment