* installing *source* package ‘LOMAR’ ... ** this is package ‘LOMAR’ version ‘0.5.0’ ** package ‘LOMAR’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C++ compiler: ‘Apple clang version 17.0.0 (clang-1700.6.3.2)’ using SDK: ‘MacOSX26.2.sdk’ clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -I'/Users/ripley/R/Library/BH/include' -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -DBOOST_DISABLE_THREADS -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c RcppExports.cpp -o RcppExports.o In file included from RcppExports.cpp:4: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ 1 warning generated. clang++ -mmacos-version-min=26 -std=gnu++20 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I. -I'/Users/ripley/R/Library/BH/include' -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -DBOOST_DISABLE_THREADS -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c diag.cpp -o diag.o In file included from diag.cpp:6: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:27: In file included from /Users/ripley/R/Library/Rcpp/include/RcppCommon.h:192: /Users/ripley/R/Library/Rcpp/include/Rcpp/internal/wrap.h:71:47: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 71 | return Rf_mkCharLen(st.data(), st.size()); | ~~~~~~~~~~~~ ~~~^~~~~~ In file included from diag.cpp:9: In file included from ./tdautils/ripsL2.h:5: In file included from ./topology/rips.h:6: In file included from ./topology/simplex.h:221: In file included from ./topology/simplex.hpp:3: In file included from /Users/ripley/R/Library/BH/include/boost/serialization/set.hpp:28: /Users/ripley/R/Library/BH/include/boost/serialization/library_version_type.hpp:42:64: warning: implicit conversion loses integer precision: 'const unsigned int' to 'base_type' (aka 'unsigned short') [-Wimplicit-int-conversion] 42 | explicit library_version_type(const unsigned int & t_) : t(t_){ | ~^~ In file included from diag.cpp:9: In file included from ./tdautils/ripsL2.h:5: In file included from ./topology/rips.h:6: In file included from ./topology/simplex.h:221: ./topology/simplex.hpp:12:1: warning: 'BoundaryIterator' defined as a struct here but previously declared as a class; this is valid, but may result in linker errors under the Microsoft C++ ABI [-Wmismatched-tags] 12 | struct Simplex::BoundaryIterator: public boost::iterator_adaptor::ComparePair: | ^ ./topology/rips.h:34:9: note: did you mean struct here? 34 | class ComparePair; | ^~~~~ | struct In file included from diag.cpp:9: In file included from ./tdautils/ripsL2.h:8: In file included from ./topology/dynamic-persistence.h:332: ./topology/dynamic-persistence.hpp:143:22: error: no member named 'not2' in namespace 'std' 143 | if (std::not2(order_comparison())(index(k),index(l))) | ~~~~~^ ./topology/dynamic-persistence.hpp:189:22: error: no member named 'not2' in namespace 'std' 189 | if (std::not2(order_comparison())(index(low_ii), index(low_i))) | ~~~~~^ In file included from diag.cpp:13: In file included from ./tdautils/gridUtils.h:19: In file included from /Users/ripley/R/Library/BH/include/boost/archive/text_oarchive.hpp:31: In file included from /Users/ripley/R/Library/BH/include/boost/archive/basic_text_oarchive.hpp:29: In file included from /Users/ripley/R/Library/BH/include/boost/archive/detail/common_oarchive.hpp:21: In file included from /Users/ripley/R/Library/BH/include/boost/archive/detail/basic_oarchive.hpp:24: /Users/ripley/R/Library/BH/include/boost/archive/basic_archive.hpp:82:46: warning: implicit conversion loses integer precision: 'const int' to 'base_type' (aka 'short') [-Wimplicit-int-conversion] 82 | explicit class_id_type(const int t_) : t(t_){ | ~^~ /Users/ripley/R/Library/BH/include/boost/archive/basic_archive.hpp:85:54: warning: implicit conversion loses integer precision: 'const std::size_t' (aka 'const unsigned long') to 'base_type' (aka 'short') [-Wimplicit-int-conversion] 85 | explicit class_id_type(const std::size_t t_) : t(t_){ | ~^~ In file included from diag.cpp:13: In file included from ./tdautils/gridUtils.h:20: In file included from /Users/ripley/R/Library/BH/include/boost/archive/text_iarchive.hpp:23: /Users/ripley/R/Library/BH/include/boost/archive/basic_text_iprimitive.hpp:100:13: warning: implicit conversion loses integer precision: 'short' to 'char' [-Wimplicit-int-conversion] 100 | t = i; | ~ ^ /Users/ripley/R/Library/BH/include/boost/archive/basic_text_iprimitive.hpp:106:13: warning: implicit conversion loses integer precision: 'short' to 'signed char' [-Wimplicit-int-conversion] 106 | t = i; | ~ ^ /Users/ripley/R/Library/BH/include/boost/archive/basic_text_iprimitive.hpp:112:13: warning: implicit conversion loses integer precision: 'unsigned short' to 'unsigned char' [-Wimplicit-int-conversion] 112 | t = i; | ~ ^ In file included from diag.cpp:13: ./tdautils/gridUtils.h:183:13: warning: unused variable 'value' [-Wunused-variable] 183 | double value, value2; // max of value and value 2 is the fcn value. | ^~~~~ ./tdautils/gridUtils.h:183:20: warning: unused variable 'value2' [-Wunused-variable] 183 | double value, value2; // max of value and value 2 is the fcn value. | ^~~~~~ In file included from diag.cpp:26: In file included from ./kde.h:2: ./tdautils/kernelUtils.h:34:23: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 34 | int progressAmount = std::floor((100 * (++counter) / totalCount - percentageFloor) / 2); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from diag.cpp:26: ./kde.h:21:16: warning: unused variable 'pi' [-Wunused-variable] 21 | const double pi = 3.141592653589793; | ^~ In file included from diag.cpp:25: ./grid.h:93:55: warning: implicit conversion loses integer precision: 'int' to 'unsigned char' [-Wimplicit-int-conversion] 93 | simplicesFromGridBarycenter(gridDim, maxdimension + 1, cmplx); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~ diag.cpp:68:3: note: in instantiation of function template specialization 'gridFiltration, Rcpp::Vector<13>, void (const char *, ...), std::vector>' requested here 68 | gridFiltration( | ^ In file included from diag.cpp:13: ./tdautils/gridUtils.h:523:162: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'int' [-Wshorten-64-to-32] 523 | std::vector< std::map< std::vector< unsigned char >, std::vector< std::vector< std::vector< unsigned char > > > > > triedCube = triangulateHypercube(gridDim.size(), embedDim); | ~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~^~~~~~ ./grid.h:93:5: note: in instantiation of function template specialization 'simplicesFromGridBarycenter, std::vector>>' requested here 93 | simplicesFromGridBarycenter(gridDim, maxdimension + 1, cmplx); | ^ diag.cpp:68:3: note: in instantiation of function template specialization 'gridFiltration, Rcpp::Vector<13>, void (const char *, ...), std::vector>' requested here 68 | gridFiltration( | ^ In file included from diag.cpp:16: ./tdautils/typecastUtils.h:119:36: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'const unsigned int' [-Wshorten-64-to-32] 119 | const unsigned nCmplx = stlCmplx.size(); | ~~~~~~ ~~~~~~~~~^~~~~~ diag.cpp:73:7: note: in instantiation of function template specialization 'StlCmplxToRcpp, Rcpp::Vector<19>, std::vector>>' requested here 73 | StlCmplxToRcpp< Rcpp::IntegerVector, Rcpp::List >(cmplx, 1), | ^ In file included from diag.cpp:19: ./tdautils/dionysusUtils.h:256:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 256 | typename Persistence::PairVisitor(p.size())); | ~~~~~~~~ ~~^~~~~~ ./tdautils/filtrationDiag.h:53:5: note: in instantiation of function template specialization 'FiltrationDiagDionysus, Filtration>>' requested here 53 | FiltrationDiagDionysus< Persistence >( | ^ ./grid.h:148:3: note: in instantiation of function template specialization 'filtrationDiagSorted, std::vector>, std::vector>' requested here 148 | filtrationDiagSorted< VertexVector >( | ^ diag.cpp:119:3: note: in instantiation of function template specialization 'gridDiag, Rcpp::Vector<14>, Rcpp::Vector<13>, void (const char *, ...)>' requested here 119 | gridDiag< std::vector< unsigned > >( | ^ In file included from diag.cpp:9: In file included from ./tdautils/ripsL2.h:5: In file included from ./topology/rips.h:6: ./topology/simplex.h:89:112: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'Dimension' (aka 'short') [-Wimplicit-int-conversion] 89 | Dimension dimension() const { return vertices().size() - 1; } | ~~~~~~ ~~~~~~~~~~~~~~~~~~^~~ ./topology/simplex.hpp:53:9: note: in instantiation of member function 'Simplex::dimension' requested here 53 | if (dimension() == 0) return boundary_end(); | ^ ./topology/static-persistence.hpp:34:82: note: in instantiation of member function 'Simplex::boundary_begin' requested here 34 | BOOST_FOREACH(const typename Filtration::Simplex& s, std::make_pair(cur->boundary_begin(), cur->boundary_end())) | ^ ./topology/static-persistence.h:100:99: note: in instantiation of function template specialization 'StaticPersistence<>::initialize>>' requested here 100 | template StaticPersistence(const Filtration& f): ocmp_(order_) { initialize(f); } | ^ ./tdautils/dionysusUtils.h:249:14: note: in instantiation of function template specialization 'StaticPersistence<>::StaticPersistence>>' requested here 249 | Persistence p(filtration); // initialize persistence | ^ ./tdautils/filtrationDiag.h:53:5: note: in instantiation of function template specialization 'FiltrationDiagDionysus, Filtration>>' requested here 53 | FiltrationDiagDionysus< Persistence >( | ^ ./grid.h:148:3: note: in instantiation of function template specialization 'filtrationDiagSorted, std::vector>, std::vector>' requested here 148 | filtrationDiagSorted< VertexVector >( | ^ diag.cpp:119:3: note: in instantiation of function template specialization 'gridDiag, Rcpp::Vector<14>, Rcpp::Vector<13>, void (const char *, ...)>' requested here 119 | gridDiag< std::vector< unsigned > >( | ^ In file included from diag.cpp:9: In file included from ./tdautils/ripsL2.h:7: In file included from ./topology/static-persistence.h:195: ./topology/static-persistence.hpp:51:29: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 51 | PairVisitor visitor(size()); | ~~~~~~~ ^~~~~~ ./tdautils/dionysusUtils.h:251:5: note: in instantiation of member function 'StaticPersistence<>::pair_simplices' requested here 251 | p.pair_simplices(printProgress); // pair simplices | ^ ./tdautils/filtrationDiag.h:53:5: note: in instantiation of function template specialization 'FiltrationDiagDionysus, Filtration>>' requested here 53 | FiltrationDiagDionysus< Persistence >( | ^ ./grid.h:148:3: note: in instantiation of function template specialization 'filtrationDiagSorted, std::vector>, std::vector>' requested here 148 | filtrationDiagSorted< VertexVector >( | ^ diag.cpp:119:3: note: in instantiation of function template specialization 'gridDiag, Rcpp::Vector<14>, Rcpp::Vector<13>, void (const char *, ...)>' requested here 119 | gridDiag< std::vector< unsigned > >( | ^ In file included from diag.cpp:16: ./tdautils/typecastUtils.h:228:24: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 228 | rowNum = matrixItr->size(); | ~ ~~~~~~~~~~~^~~~~~ diag.cpp:127:3: note: in instantiation of function template specialization 'StlToRcppMatrixList, Rcpp::Matrix<14>, std::vector>' requested here 127 | StlToRcppMatrixList< Rcpp::List, Rcpp::NumericMatrix >(persCycle)); | ^ In file included from diag.cpp:16: ./tdautils/typecastUtils.h:230:51: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'const int' [-Wshorten-64-to-32] 230 | RcppMatrix rcppMatrix(rowNum, (*matrixItr)[0].size()); | ~~~~~~~~~~ ~~~~~~~~~~~~~~~~^~~~~~ In file included from diag.cpp:9: In file included from ./tdautils/ripsL2.h:9: In file included from ./topology/persistence-diagram.h:176: ./topology/persistence-diagram.hpp:207:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'const unsigned int' [-Wshorten-64-to-32] 207 | const unsigned max_size = dgm1.size() + dgm2.size(); | ~~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~~~~~ ./topology/persistence-diagram.h:170:10: note: in instantiation of function template specialization 'bottleneck_distance, PersistenceDiagram<>, Linfty, PDPoint<>>>' requested here 170 | { return bottleneck_distance(dgm1, dgm2, Linfty()); } | ^ diag.cpp:137:9: note: in instantiation of function template specialization 'bottleneck_distance, PersistenceDiagram<>>' requested here 137 | return bottleneck_distance(RcppToDionysus< PersistenceDiagram<> >(Diag1), | ^ In file included from diag.cpp:9: In file included from ./tdautils/ripsL2.h:9: In file included from ./topology/persistence-diagram.h:176: ./topology/persistence-diagram.hpp:213:28: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 213 | for (unsigned i = dgm1.size(); i < max_size; ++i) | ~ ~~~~~^~~~~~ ./topology/persistence-diagram.hpp:214:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 214 | for (unsigned j = max_size + dgm2.size(); j < 2*max_size; ++j) | ~ ~~~~~~~~~^~~~~~~~~~~~~ ./topology/persistence-diagram.hpp:231:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 231 | edges.push_back(Edge(i, max_size + dgm2.size() + i, norm.diagonal(*cur1))); | ~~~~ ~~~~~~~~~~~~~~~~~~~~~~~^~~ ./topology/persistence-diagram.hpp:234:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 234 | edges.push_back(Edge(dgm1.size() + (i - max_size), i, norm.diagonal(*cur2))); | ~~~~ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ ./topology/persistence-diagram.hpp:260:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 260 | unsigned size = dgm1.size() + dgm2.size(); | ~~~~ ~~~~~~~~~~~~^~~~~~~~~~~~~ diag.cpp:149:9: note: in instantiation of function template specialization 'wasserstein_distance>' requested here 149 | return wasserstein_distance(RcppToDionysus< PersistenceDiagram<> >(Diag1), | ^ In file included from diag.cpp:9: In file included from ./tdautils/ripsL2.h:9: In file included from ./topology/persistence-diagram.h:176: ./topology/persistence-diagram.hpp:271:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 271 | m(j + dgm1.size(), i + dgm2.size()) = 0; | ~ ~~^~~~~~~~~~~~~ ./topology/persistence-diagram.hpp:271:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] 271 | m(j + dgm1.size(), i + dgm2.size()) = 0; | ~ ~~^~~~~~~~~~~~~ ./topology/persistence-diagram.hpp:275:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 275 | for (unsigned j = dgm2.size(); j < size; ++j) | ~ ~~~~~^~~~~~ ./topology/persistence-diagram.hpp:282:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'unsigned int' [-Wshorten-64-to-32] 282 | for (unsigned i = dgm1.size(); i < size; ++i) | ~ ~~~~~^~~~~~ In file included from diag.cpp:26: In file included from ./kde.h:2: ./tdautils/kernelUtils.h:109:29: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'const unsigned int' [-Wshorten-64-to-32] 109 | const unsigned dim = point.size(); | ~~~ ~~~~~~^~~~~~ ./tdautils/kernelUtils.h:153:24: note: in instantiation of function template specialization 'oneKernel, Rcpp::Vector<14>, Rcpp::Matrix<14>>' requested here 153 | kernelValue[yIdx] = oneKernel( | ^ ./kde.h:41:16: note: in instantiation of function template specialization 'computeKernel, Rcpp::Matrix<14>, Rcpp::Matrix<14>, Rcpp::Vector<14>, void (*)(const char *, ...)>' requested here 41 | kdeValue = computeKernel< RealVector >( | ^ diag.cpp:166:10: note: in instantiation of function template specialization 'kde, Rcpp::Matrix<14>, void (const char *, ...)>' requested here 166 | return kde( | ^ In file included from diag.cpp:26: In file included from ./kde.h:2: ./tdautils/kernelUtils.h:34:23: warning: implicit conversion turns floating-point number into integer: 'double' to 'int' [-Wfloat-conversion] 34 | int progressAmount = std::floor((100 * (++counter) / totalCount - percentageFloor) / 2); | ~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tdautils/kernelUtils.h:158:4: note: in instantiation of function template specialization 'printProgressAmount' requested here 158 | printProgressAmount(print, counter, totalCount, percentageFloor); | ^ ./kde.h:41:16: note: in instantiation of function template specialization 'computeKernel, Rcpp::Matrix<14>, Rcpp::Matrix<14>, Rcpp::Vector<14>, void (*)(const char *, ...)>' requested here 41 | kdeValue = computeKernel< RealVector >( | ^ diag.cpp:166:10: note: in instantiation of function template specialization 'kde, Rcpp::Matrix<14>, void (const char *, ...)>' requested here 166 | return kde( | ^ In file included from diag.cpp:26: In file included from ./kde.h:2: ./tdautils/kernelUtils.h:216:26: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'const unsigned int' [-Wshorten-64-to-32] 216 | const unsigned xNum = X.size(); | ~~~~ ~~^~~~~~ ./tdautils/kernelUtils.h:339:15: note: in instantiation of function template specialization 'GaussOuter, std::vector, Rcpp::Matrix<14>, void (*)(const char *, ...)>' requested here 339 | gaussOuter = GaussOuter< std::vector< double > >( | ^ ./kde.h:52:16: note: in instantiation of function template specialization 'computeGaussOuter, Rcpp::Matrix<14>, Rcpp::Vector<14>, void (*)(const char *, ...)>' requested here 52 | kdeValue = computeGaussOuter< RealVector >( | ^ diag.cpp:166:10: note: in instantiation of function template specialization 'kde, Rcpp::Matrix<14>, void (const char *, ...)>' requested here 166 | return kde( | ^ In file included from diag.cpp:26: In file included from ./kde.h:2: ./tdautils/kernelUtils.h:268:31: warning: implicit conversion turns floating-point number into integer: 'double' to 'const unsigned int' [-Wfloat-conversion] 268 | const unsigned weightSum = std::accumulate(weight.begin(), weight.end(), 0.0); | ~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tdautils/kernelUtils.h:343:15: note: in instantiation of function template specialization 'productCross, std::vector, std::vector, Rcpp::Vector<14>, void (*)(const char *, ...)>' requested here 343 | gaussValue = productCross< RealVector1 >( | ^ ./kde.h:52:16: note: in instantiation of function template specialization 'computeGaussOuter, Rcpp::Matrix<14>, Rcpp::Vector<14>, void (*)(const char *, ...)>' requested here 52 | kdeValue = computeGaussOuter< RealVector >( | ^ diag.cpp:166:10: note: in instantiation of function template specialization 'kde, Rcpp::Matrix<14>, void (const char *, ...)>' requested here 166 | return kde( | ^ In file included from diag.cpp:26: In file included from ./kde.h:2: ./tdautils/kernelUtils.h:300:31: warning: implicit conversion turns floating-point number into integer: 'double' to 'const unsigned int' [-Wfloat-conversion] 300 | const unsigned weightSum = std::accumulate(weight.begin(), weight.end(), 0.0); | ~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tdautils/kernelUtils.h:268:31: warning: implicit conversion turns floating-point number into integer: 'double' to 'const unsigned int' [-Wfloat-conversion] 268 | const unsigned weightSum = std::accumulate(weight.begin(), weight.end(), 0.0); | ~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./tdautils/kernelUtils.h:343:15: note: in instantiation of function template specialization 'productCross, std::vector, std::vector, Rcpp::Vector<14>, void (*)(const char *, ...)>' requested here 343 | gaussValue = productCross< RealVector1 >( | ^ ./kde.h:107:18: note: in instantiation of function template specialization 'computeGaussOuter, Rcpp::Matrix<14>, Rcpp::Vector<14>, void (*)(const char *, ...)>' requested here 107 | thirdValue = computeGaussOuter< std::vector< double > >( | ^ diag.cpp:183:10: note: in instantiation of function template specialization 'kdeDist, Rcpp::Matrix<14>, void (const char *, ...)>' requested here 183 | return kdeDist( | ^ In file included from diag.cpp:26: In file included from ./kde.h:2: ./tdautils/kernelUtils.h:300:31: warning: implicit conversion turns floating-point number into integer: 'double' to 'const unsigned int' [-Wfloat-conversion] 300 | const unsigned weightSum = std::accumulate(weight.begin(), weight.end(), 0.0); | ~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from diag.cpp:24: ./dtm.h:81:62: warning: implicit conversion turns floating-point number into integer: 'typename storage_type<14>::type' (aka 'double') to 'R_xlen_t' (aka 'long') [-Wfloat-conversion] 81 | weightTemp = weight[knnIndex[gridIdx + kIdx * nGrid] - 1]; | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ diag.cpp:214:10: note: in instantiation of function template specialization 'dtmWeight, Rcpp::Matrix<14>>' requested here 214 | return dtmWeight( | ^ In file included from diag.cpp:24: ./dtm.h:95:62: warning: implicit conversion turns floating-point number into integer: 'typename storage_type<14>::type' (aka 'double') to 'R_xlen_t' (aka 'long') [-Wfloat-conversion] 95 | weightTemp = weight[knnIndex[gridIdx + kIdx * nGrid] - 1]; | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ ./dtm.h:108:62: warning: implicit conversion turns floating-point number into integer: 'typename storage_type<14>::type' (aka 'double') to 'R_xlen_t' (aka 'long') [-Wfloat-conversion] 108 | weightTemp = weight[knnIndex[gridIdx + kIdx * nGrid] - 1]; | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ In file included from diag.cpp:16: ./tdautils/typecastUtils.h:94:37: warning: implicit conversion loses integer precision: 'R_xlen_t' (aka 'long') to 'const unsigned int' [-Wshorten-64-to-32] 94 | const unsigned nCmplx = rcppCmplx.size(); | ~~~~~~ ~~~~~~~~~~^~~~~~ diag.cpp:277:7: note: in instantiation of function template specialization 'RcppCmplxToStl, Rcpp::Vector<13>, Rcpp::Vector<19>>' requested here 277 | RcppCmplxToStl< std::vector< unsigned >, Rcpp::IntegerVector >(cmplx, 1); | ^ In file included from diag.cpp:21: ./tdautils/filtrationUtils.h:61:33: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'const unsigned int' [-Wshorten-64-to-32] 61 | const unsigned nCmplx = cmplx.size(); | ~~~~~~ ~~~~~~^~~~~~ diag.cpp:280:3: note: in instantiation of function template specialization 'funFiltration, std::vector>' requested here 280 | funFiltration(FUNvalues, funCmplx, values); | ^ In file included from diag.cpp:19: ./tdautils/dionysusUtils.h:379:30: warning: implicit conversion loses integer precision: 'int' to 'Dimension' (aka 'short') [-Wimplicit-int-conversion] 379 | rips.generate(maxdimension + 1, maxscale, functor); | ~~~~~~~~ ~~~~~~~~~~~~~^~~ ./rips.h:53:42: note: in instantiation of function template specialization 'RipsFiltrationDionysus>, L2Distance>, Rips>, L2Distance>, Simplex>, Filtration>, Rcpp::Matrix<14>, void (const char *, ...)>' requested here 53 | filtrationDionysusToTda< IntVector >(RipsFiltrationDionysus< PairDistances, Generator, FltrR >(X, nSample, nDim, false, maxdimension, maxscale, printProgress, print), cmplx, values, boundary); | ^ diag.cpp:321:3: note: in instantiation of function template specialization 'ripsFiltration, Rcpp::Matrix<14>, Rcpp::Vector<19>, Rcpp::Vector<14>, void (const char *, ...)>' requested here 321 | ripsFiltration< Rcpp::IntegerVector >( | ^ In file included from diag.cpp:9: In file included from ./tdautils/ripsL2.h:12: ./geometry/distances.h:62:86: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'IndexType' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | IndexType end() const { return size(); } | ~~~~~~ ^~~~~~ ./topology/rips.h:65:125: note: in instantiation of member function 'PairwiseDistances>, L2Distance>::end' requested here 65 | { generate(k, max, f, boost::make_counting_iterator(distances().begin()), boost::make_counting_iterator(distances().end())); } | ^ ./tdautils/dionysusUtils.h:379:8: note: in instantiation of function template specialization 'Rips>, L2Distance>, Simplex>::generate>, Rips>, L2Distance>, Simplex>::Evaluator>>' requested here 379 | rips.generate(maxdimension + 1, maxscale, functor); | ^ ./rips.h:53:42: note: in instantiation of function template specialization 'RipsFiltrationDionysus>, L2Distance>, Rips>, L2Distance>, Simplex>, Filtration>, Rcpp::Matrix<14>, void (const char *, ...)>' requested here 53 | filtrationDionysusToTda< IntVector >(RipsFiltrationDionysus< PairDistances, Generator, FltrR >(X, nSample, nDim, false, maxdimension, maxscale, printProgress, print), cmplx, values, boundary); | ^ diag.cpp:321:3: note: in instantiation of function template specialization 'ripsFiltration, Rcpp::Matrix<14>, Rcpp::Vector<19>, Rcpp::Vector<14>, void (const char *, ...)>' requested here 321 | ripsFiltration< Rcpp::IntegerVector >( | ^ In file included from diag.cpp:16: ./tdautils/typecastUtils.h:287:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'const unsigned int' [-Wshorten-64-to-32] 287 | const unsigned nFltr = filtration.size(); | ~~~~~ ~~~~~~~~~~~^~~~~~ ./rips.h:53:5: note: in instantiation of function template specialization 'filtrationDionysusToTda, Filtration>, Rcpp::Vector<19>, Rcpp::Vector<14>>' requested here 53 | filtrationDionysusToTda< IntVector >(RipsFiltrationDionysus< PairDistances, Generator, FltrR >(X, nSample, nDim, false, maxdimension, maxscale, printProgress, print), cmplx, values, boundary); | ^ diag.cpp:321:3: note: in instantiation of function template specialization 'ripsFiltration, Rcpp::Matrix<14>, Rcpp::Vector<19>, Rcpp::Vector<14>, void (const char *, ...)>' requested here 321 | ripsFiltration< Rcpp::IntegerVector >( | ^ In file included from diag.cpp:19: ./tdautils/dionysusUtils.h:379:30: warning: implicit conversion loses integer precision: 'int' to 'Dimension' (aka 'short') [-Wimplicit-int-conversion] 379 | rips.generate(maxdimension + 1, maxscale, functor); | ~~~~~~~~ ~~~~~~~~~~~~~^~~ ./rips.h:57:42: note: in instantiation of function template specialization 'RipsFiltrationDionysus>, ArbitDistance>, Rips>, ArbitDistance>, Simplex>, Filtration>, Rcpp::Matrix<14>, void (const char *, ...)>' requested here 57 | filtrationDionysusToTda< IntVector >(RipsFiltrationDionysus< PairDistancesA, GeneratorA, FltrRA >(X, nSample, nDim, true, maxdimension, maxscale, printProgress, print), cmplx, values, boundary); | ^ diag.cpp:321:3: note: in instantiation of function template specialization 'ripsFiltration, Rcpp::Matrix<14>, Rcpp::Vector<19>, Rcpp::Vector<14>, void (const char *, ...)>' requested here 321 | ripsFiltration< Rcpp::IntegerVector >( | ^ In file included from diag.cpp:9: In file included from ./tdautils/ripsL2.h:12: ./geometry/distances.h:62:86: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'IndexType' (aka 'unsigned int') [-Wshorten-64-to-32] 62 | IndexType end() const { return size(); } | ~~~~~~ ^~~~~~ ./topology/rips.h:65:125: note: in instantiation of member function 'PairwiseDistances>, ArbitDistance>::end' requested here 65 | { generate(k, max, f, boost::make_counting_iterator(distances().begin()), boost::make_counting_iterator(distances().end())); } | ^ ./tdautils/dionysusUtils.h:379:8: note: in instantiation of function template specialization 'Rips>, ArbitDistance>, Simplex>::generate>, Rips>, ArbitDistance>, Simplex>::Evaluator>>' requested here 379 | rips.generate(maxdimension + 1, maxscale, functor); | ^ ./rips.h:57:42: note: in instantiation of function template specialization 'RipsFiltrationDionysus>, ArbitDistance>, Rips>, ArbitDistance>, Simplex>, Filtration>, Rcpp::Matrix<14>, void (const char *, ...)>' requested here 57 | filtrationDionysusToTda< IntVector >(RipsFiltrationDionysus< PairDistancesA, GeneratorA, FltrRA >(X, nSample, nDim, true, maxdimension, maxscale, printProgress, print), cmplx, values, boundary); | ^ diag.cpp:321:3: note: in instantiation of function template specialization 'ripsFiltration, Rcpp::Matrix<14>, Rcpp::Vector<19>, Rcpp::Vector<14>, void (const char *, ...)>' requested here 321 | ripsFiltration< Rcpp::IntegerVector >( | ^ 48 warnings and 2 errors generated. make[1]: *** [diag.o] Error 1 make[1]: Target `all' not remade because of errors. ERROR: compilation failed for package ‘LOMAR’ * removing ‘/Users/ripley/R/packages/tests-devel/LOMAR.Rcheck/LOMAR’