Giter Site home page Giter Site logo

la_vector's People

Contributors

gvinciguerra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

la_vector's Issues

compiler error

Hello, while trying to compile your code on an Ubuntu 18.04 with gcc 7.5.0, I am getting the error below. Do you know what might be going on?

Thanks!

for (i = frontier[bpc]; i < n && segmentations[bpc].add_point(i, begin[i]); ++i)

[100%] Building CXX object test/CMakeFiles/tests.dir/main.cpp.o
[100%] Building CXX object test/CMakeFiles/tests.dir/tests.cpp.o
In file included from /home/odenas/code/matching_statistics/la_vector/example.cpp:2:0:
/home/odenas/code/matching_statistics/la_vector/include/la_vector.hpp: In instantiation of ‘la_vector<K, t_bpc, t_top_level>::make_segmentation(RandomIt, RandomIt)::<lambda(auto:5, auto:6)> [with auto:5 = unsigned char; auto:6 = long unsigned int; RandomIt = __gnu_cxx::__normal_iterator<unsigned int*, std::vector<unsigned int> >; bool Enable = true; typename std::enable_if<Enable, int>::type <anonymous> = 0; K = unsigned int; unsigned char t_bpc = 0; t_top_level = bucketing_top_level]’:
/home/odenas/code/matching_statistics/la_vector/include/la_vector.hpp:407:42:   required from ‘static std::pair<std::vector<la_vector<K, t_bpc, t_top_level>::canonical_segment_bpc>, long unsigned int> la_vector<K, t_bpc, t_top_level>::make_segmentation(RandomIt, RandomIt) [with RandomIt = __gnu_cxx::__normal_iterator<unsigned int*, std::vector<unsigned int> >; bool Enable = true; typename std::enable_if<Enable, int>::type <anonymous> = 0; K = unsigned int; unsigned char t_bpc = 0; t_top_level = bucketing_top_level]’
/home/odenas/code/matching_statistics/la_vector/include/la_vector.hpp:95:63:   required from ‘la_vector<K, t_bpc, t_top_level>::la_vector(RandomIt, RandomIt) [with RandomIt = __gnu_cxx::__normal_iterator<unsigned int*, std::vector<unsigned int> >; K = unsigned int; unsigned char t_bpc = 0; t_top_level = bucketing_top_level]’
/home/odenas/code/matching_statistics/la_vector/include/la_vector.hpp:84:82:   required from ‘la_vector<K, t_bpc, t_top_level>::la_vector(std::vector<_RealType>&) [with K = unsigned int; unsigned char t_bpc = 0; t_top_level = bucketing_top_level]’
/home/odenas/code/matching_statistics/la_vector/example.cpp:17:35:   required from here
/home/odenas/code/matching_statistics/la_vector/include/la_vector.hpp:394:39: internal compiler error: in finish_member_declaration, at cp/semantics.c:3029
             for (i = frontier[bpc]; i < n && segmentations[bpc].add_point(i, begin[i]); ++i)
                                     ~~^~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
CMakeFiles/example.dir/build.make:75: recipe for target 'CMakeFiles/example.dir/example.cpp.o' failed
make[2]: *** [CMakeFiles/example.dir/example.cpp.o] Error 1
CMakeFiles/Makefile2:509: recipe for target 'CMakeFiles/example.dir/all' failed
make[1]: *** [CMakeFiles/example.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
In file included from /home/odenas/code/matching_statistics/la_vector/test/tests.cpp:5:0:
/home/odenas/code/matching_statistics/la_vector/include/la_vector.hpp: In instantiation of ‘la_vector<K, t_bpc, t_top_level>::make_segmentation(RandomIt, RandomIt)::<lambda(auto:5, auto:6)> [with auto:5 = unsigned char; auto:6 = long unsigned int; RandomIt = __gnu_cxx::__normal_iterator<unsigned int*, std::vector<unsigned int> >; bool Enable = true; typename std::enable_if<Enable, int>::type <anonymous> = 0; K = unsigned int; unsigned char t_bpc = 0; t_top_level = bucketing_top_level]’:
/home/odenas/code/matching_statistics/la_vector/include/la_vector.hpp:407:42:   required from ‘static std::pair<std::vector<la_vector<K, t_bpc, t_top_level>::canonical_segment_bpc>, long unsigned int> la_vector<K, t_bpc, t_top_level>::make_segmentation(RandomIt, RandomIt) [with RandomIt = __gnu_cxx::__normal_iterator<unsigned int*, std::vector<unsigned int> >; bool Enable = true; typename std::enable_if<Enable, int>::type <anonymous> = 0; K = unsigned int; unsigned char t_bpc = 0; t_top_level = bucketing_top_level]’
/home/odenas/code/matching_statistics/la_vector/include/la_vector.hpp:95:63:   required from ‘la_vector<K, t_bpc, t_top_level>::la_vector(RandomIt, RandomIt) [with RandomIt = __gnu_cxx::__normal_iterator<unsigned int*, std::vector<unsigned int> >; K = unsigned int; unsigned char t_bpc = 0; t_top_level = bucketing_top_level]’
/home/odenas/code/matching_statistics/la_vector/test/tests.cpp:27:5:   required from ‘void ____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____F_U_N_C____0() [with T = unsigned int; unsigned char B = 0]’
/home/odenas/code/matching_statistics/la_vector/test/tests.cpp:25:1:   required from ‘void {anonymous}::ns_____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____1::reg_test({anonymous}::ns_____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____1::Nttp<T, B>, Catch::NameAndTags) [with T = unsigned int; unsigned char B = 0]’
/home/odenas/code/matching_statistics/la_vector/test/tests.cpp:25:1:   required from ‘{anonymous}::ns_____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____1::____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____1<Types>::____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____1() [with Types = {{anonymous}::ns_____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____1::Nttp<unsigned int, 0>, {anonymous}::ns_____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____1::Nttp<unsigned int, 4>, {anonymous}::ns_____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____1::Nttp<unsigned int, 8>, {anonymous}::ns_____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____1::Nttp<long unsigned int, 0>, {anonymous}::ns_____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____1::Nttp<long unsigned int, 4>, {anonymous}::ns_____C_A_T_C_H____T_E_M_P_L_A_T_E____T_E_S_T____1::Nttp<long unsigned int, 8>}]’
/home/odenas/code/matching_statistics/la_vector/test/tests.cpp:25:1:   required from here
/home/odenas/code/matching_statistics/la_vector/include/la_vector.hpp:394:39: internal compiler error: in finish_member_declaration, at cp/semantics.c:3029
             for (i = frontier[bpc]; i < n && segmentations[bpc].add_point(i, begin[i]); ++i)
                                     ~~^~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
test/CMakeFiles/tests.dir/build.make:89: recipe for target 'test/CMakeFiles/tests.dir/tests.cpp.o' failed
make[2]: *** [test/CMakeFiles/tests.dir/tests.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:6775: recipe for target 'test/CMakeFiles/tests.dir/all' failed
make[1]: *** [test/CMakeFiles/tests.dir/all] Error 2
Makefile:165: recipe for target 'all' failed
make: *** [all] Error 2

la_vector will crash with this piece of data

try this sequence:
15756253474322382864 15756253976833556496 15756525753774112784 15757004406404415504 16279747014894288912 16283133381858820112 16283133476348100624 16283244831965184016 16283938310269698064 16284004804953374736 16442457586000723984 16443349573398691856 16445391963491926032 16445391967786893328 16451901171112607760 16466779307193139216 16466828278410248208 16466940742128893968 16468832907151015952 16469339408349265936 16470028742010339344 16470201378220802064 16470201386810736656 16470495991502471184 16470580636717940752 16470580662487744528 16470582530798518288 16470583690439688208 16470583991087398928 16470585425606475792 16470586645377187856 16470586649672155152 16470609047926603792 16471520650440212496 16471616080318562320 16471768414218616848 16472359144020508688 16472359238509789200 16472428877109526544 16473174157014597648 16473336755886489616 16473380671927091216 16473406411666096144 16473909146178027536 16474157159064535056 16474158516274200592 16474158529159102480 16474563054948843536 16474644173996163088 16475069414413172752 16475213437551509520 16475221988831395856 16475499572567736336 16475499598337540112 16475827312932159504 16475875790228029456 16475878066560696336 16475879136007553040 16475879389410623504 16475945626396262416 16475994116577034256 16476129764529143824 16476131233407959056 16476465583727050768 16476626692245291024 16476663465755279376 16476675530318413840 16476675861030895632 16476701725323952144 16476704929369554960 16476763890680594448 16476857911809671184 16476960316714909712 16477040022717988880 16477583847182041104 16478016071215874064 16478016075510841360 16478158067129647120 16478239216241737744 16478371574248898576 16478417526103998480 16478417573348638736 16478417891176218640 16478949028306878480 16479110798250082320 16479481642906288144 16479481647201255440 16479483992253399056 16479936067626074128 16480231784714338320 16480808006116704272 16481527649361985552 16482094997361917968 16482971308129255440 16483763699530596368 16483763905689026576 16483962702545289232 16483963703272669200 16483963729042472976 16484199698840682512 16484291847364018192 16485413654167027728 16485458274582265872 16485569509940264976 16485893943179870224 16485894037669150736 16485900334091206672 16486168013632962576 16486168039402766352 16486174245630509072 16486174619292663824 16486174782501421072 16486175366616973328 16486189926556106768 16487042958600699920 16487499805682040848 16488245884451029008 16488538779745779728 16489555570303434768 16489557189506105360 16489557215275909136

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.