* installing *source* package ‘rDppDiversity’ ... ** package ‘rDppDiversity’ successfully unpacked and MD5 sums checked ** using staged installation ** libs using C++ compiler: ‘Apple clang version 14.0.3 (clang-1403.0.22.14.1)’ using SDK: ‘MacOSX13.3.sdk’ clang++ -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c DPPDiversity.cpp -o DPPDiversity.o DPPDiversity.cpp:9:30: warning: implicit conversion loses integer precision: 'std::vector>::size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] N = item_representations.size(); ~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~ DPPDiversity.cpp:12:33: warning: implicit conversion loses integer precision: 'std::vector::size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] d = item_representations[0].size(); ~ ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ DPPDiversity.cpp:49:128: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] float curr_cond_prob = (corr_mat(last_added_elem,i) - dot_product(cond_prob_mp[last_added_elem], cond_prob_mp[i])) / (sqrt(corr_mat(last_added_elem, last_added_elem)) + 1e-4); ~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from DPPDiversity.cpp:1: In file included from ./DPPDiversity.h:8: In file included from ./deps/eigen-3.3.9/Eigen/Core:367: ./deps/eigen-3.3.9/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of (const float &, const float &)>' is deprecated [-Wdeprecated-declarations] typedef typename std::result_of::type type1; ^ ./deps/eigen-3.3.9/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of (const float &, const float &)>' requested here typedef typename result_of< ^ ./deps/eigen-3.3.9/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits, const Eigen::Transpose>, 1, -1, true>>, const Eigen::Block, -1, 1, true>>>' requested here template::XprKind, typename StorageKind = typename traits::StorageKind> ^ ./deps/eigen-3.3.9/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base, const Eigen::Transpose>, 1, -1, true>>, const Eigen::Block, -1, 1, true>>>' required here : public internal::generic_xpr_base >::type ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./deps/eigen-3.3.9/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl, const Eigen::Transpose>, 1, -1, true>>, const Eigen::Block, -1, 1, true>, Eigen::Dense>' requested here public CwiseBinaryOpImpl< ^ ./deps/eigen-3.3.9/Eigen/src/Core/ProductEvaluators.h:578:40: note: in instantiation of template class 'Eigen::CwiseBinaryOp, const Eigen::Transpose>, 1, -1, true>>, const Eigen::Block, -1, 1, true>>' requested here return (m_lhs.row(row).transpose().cwiseProduct( m_rhs.col(col) )).sum(); ^ ./deps/eigen-3.3.9/Eigen/src/Core/AssignEvaluator.h:631:58: note: (skipping 13 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) m_functor.assignCoeff(m_dst.coeffRef(row,col), m_src.coeff(row,col)); ^ ./deps/eigen-3.3.9/Eigen/src/Core/AssignEvaluator.h:796:41: note: in instantiation of function template specialization 'Eigen::Matrix::Matrix>, Eigen::Matrix, 0>>' requested here typename plain_matrix_type::type tmp(src); ^ ./deps/eigen-3.3.9/Eigen/src/Core/AssignEvaluator.h:782:3: note: in instantiation of function template specialization 'Eigen::internal::call_assignment, Eigen::Product>, Eigen::Matrix, 0>, Eigen::internal::assign_op>' requested here call_assignment(dst, src, internal::assign_op()); ^ ./deps/eigen-3.3.9/Eigen/src/Core/PlainObjectBase.h:714:17: note: in instantiation of function template specialization 'Eigen::internal::call_assignment, Eigen::Product>, Eigen::Matrix, 0>>' requested here internal::call_assignment(this->derived(), other.derived()); ^ ./deps/eigen-3.3.9/Eigen/src/Core/Matrix.h:225:20: note: in instantiation of function template specialization 'Eigen::PlainObjectBase>::_set>, Eigen::Matrix, 0>>' requested here return Base::_set(other); ^ DPPDiversity.cpp:23:14: note: in instantiation of function template specialization 'Eigen::Matrix::operator=>, Eigen::Matrix, 0>>' requested here corr_mat = weighted_corr_mat.transpose() * weighted_corr_mat; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:578:34: note: 'result_of (const float &, const float &)>' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_IN_CXX17 result_of; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:837:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17' # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:810:49: note: expanded from macro '_LIBCPP_DEPRECATED' # define _LIBCPP_DEPRECATED __attribute__((deprecated)) ^ 4 warnings generated. clang++ -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c DppKernelModel.cpp -o DppKernelModel.o In file included from DppKernelModel.cpp:1: ./DppKernelModel.h:23:93: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] explicit DppKernelModel(size_t num_items, size_t embedding_size, float regularization = 0.1): _num_items(num_items), _emb_size(embedding_size), _num_iter(0), _accumulate_log_likelihood(0), _regularization(regularization) { ~ ^~~ In file included from DppKernelModel.cpp:1: In file included from ./DppKernelModel.h:14: In file included from ./deps/eigen-3.3.9/Eigen/Core:367: ./deps/eigen-3.3.9/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of (const float &, const float &)>' is deprecated [-Wdeprecated-declarations] typedef typename std::result_of::type type1; ^ ./deps/eigen-3.3.9/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of (const float &, const float &)>' requested here typedef typename result_of< ^ ./deps/eigen-3.3.9/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits, const Eigen::CwiseNullaryOp, const Eigen::Matrix>, const Eigen::Transpose>>>>' requested here template::XprKind, typename StorageKind = typename traits::StorageKind> ^ ./deps/eigen-3.3.9/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base, const Eigen::CwiseNullaryOp, const Eigen::Matrix>, const Eigen::Transpose>>>>' required here : public internal::generic_xpr_base >::type ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./deps/eigen-3.3.9/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl, const Eigen::CwiseNullaryOp, const Eigen::Matrix>, const Eigen::Transpose>>, Eigen::Dense>' requested here public CwiseBinaryOpImpl< ^ ./DppKernelModel.h:100:33: note: in instantiation of template class 'Eigen::CwiseBinaryOp, const Eigen::CwiseNullaryOp, const Eigen::Matrix>, const Eigen::Transpose>>>' requested here *(grad) = label / det_Y * subset_kernel_mat.adjoint().transpose() * subset_item_mat; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:578:34: note: 'result_of (const float &, const float &)>' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_IN_CXX17 result_of; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:837:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17' # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:810:49: note: expanded from macro '_LIBCPP_DEPRECATED' # define _LIBCPP_DEPRECATED __attribute__((deprecated)) ^ In file included from DppKernelModel.cpp:1: In file included from ./DppKernelModel.h:14: In file included from ./deps/eigen-3.3.9/Eigen/Core:367: ./deps/eigen-3.3.9/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of (const float &)>' is deprecated [-Wdeprecated-declarations] typedef typename std::result_of::type type1; ^ ./deps/eigen-3.3.9/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of (const float &)>' requested here typedef typename result_of< ^ ./deps/eigen-3.3.9/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits, const Eigen::Matrix>>' requested here template::XprKind, typename StorageKind = typename traits::StorageKind> ^ ./deps/eigen-3.3.9/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base, const Eigen::Matrix>>' required here : public internal::generic_xpr_base >::type ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./deps/eigen-3.3.9/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl, const Eigen::Matrix, Eigen::Dense>' requested here class CwiseUnaryOp : public CwiseUnaryOpImpl::StorageKind>, internal::no_assignment_operator ^ ./deps/eigen-3.3.9/Eigen/src/LU/PartialPivLU.h:523:22: note: in instantiation of template class 'Eigen::CwiseUnaryOp, const Eigen::Matrix>' requested here m_l1_norm = m_lu.cwiseAbs().colwise().sum().maxCoeff(); ^ ./deps/eigen-3.3.9/Eigen/src/LU/PartialPivLU.h:131:7: note: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all) compute(); ^ ./deps/eigen-3.3.9/Eigen/src/LU/PartialPivLU.h:323:3: note: in instantiation of function template specialization 'Eigen::PartialPivLU>::compute>' requested here compute(matrix.derived()); ^ ./deps/eigen-3.3.9/Eigen/src/LU/PartialPivLU.h:594:10: note: in instantiation of function template specialization 'Eigen::PartialPivLU>::PartialPivLU>' requested here return PartialPivLU(eval()); ^ ./deps/eigen-3.3.9/Eigen/src/LU/Determinant.h:41:14: note: in instantiation of member function 'Eigen::MatrixBase>::partialPivLu' requested here return m.partialPivLu().determinant(); ^ ./deps/eigen-3.3.9/Eigen/src/LU/Determinant.h:96:83: note: in instantiation of member function 'Eigen::internal::determinant_impl, -1>::run' requested here return internal::determinant_impl::type>::run(derived()); ^ ./DppKernelModel.h:96:41: note: in instantiation of member function 'Eigen::MatrixBase>::determinant' requested here float det_Y = subset_kernel_mat.determinant(); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:578:34: note: 'result_of (const float &)>' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_IN_CXX17 result_of; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:837:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17' # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:810:49: note: expanded from macro '_LIBCPP_DEPRECATED' # define _LIBCPP_DEPRECATED __attribute__((deprecated)) ^ In file included from DppKernelModel.cpp:1: In file included from ./DppKernelModel.h:14: In file included from ./deps/eigen-3.3.9/Eigen/Core:367: ./deps/eigen-3.3.9/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of (const float &)>' is deprecated [-Wdeprecated-declarations] typedef typename std::result_of::type type1; ^ ./deps/eigen-3.3.9/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of (const float &)>' requested here typedef typename result_of< ^ ./deps/eigen-3.3.9/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits, const Eigen::Block, 0>, -1, -1, false>, -1, 1, false>, -1, 1, false>>>' requested here template::XprKind, typename StorageKind = typename traits::StorageKind> ^ ./deps/eigen-3.3.9/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base, const Eigen::Block, 0>, -1, -1, false>, -1, 1, false>, -1, 1, false>>>' required here : public internal::generic_xpr_base >::type ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./deps/eigen-3.3.9/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl, const Eigen::Block, 0>, -1, -1, false>, -1, 1, false>, -1, 1, false>, Eigen::Dense>' requested here class CwiseUnaryOp : public CwiseUnaryOpImpl::StorageKind>, internal::no_assignment_operator ^ ./deps/eigen-3.3.9/Eigen/src/LU/PartialPivLU.h:381:34: note: in instantiation of template class 'Eigen::CwiseUnaryOp, const Eigen::Block, 0>, -1, -1, false>, -1, 1, false>, -1, 1, false>>' requested here = lu.col(k).tail(rows-k).unaryExpr(Scoring()).maxCoeff(&row_of_biggest_in_col); ^ ./deps/eigen-3.3.9/Eigen/src/LU/PartialPivLU.h:436:14: note: (skipping 4 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) return unblocked_lu(lu, row_transpositions, nb_transpositions); ^ ./deps/eigen-3.3.9/Eigen/src/LU/PartialPivLU.h:323:3: note: in instantiation of function template specialization 'Eigen::PartialPivLU>::compute>' requested here compute(matrix.derived()); ^ ./deps/eigen-3.3.9/Eigen/src/LU/PartialPivLU.h:594:10: note: in instantiation of function template specialization 'Eigen::PartialPivLU>::PartialPivLU>' requested here return PartialPivLU(eval()); ^ ./deps/eigen-3.3.9/Eigen/src/LU/Determinant.h:41:14: note: in instantiation of member function 'Eigen::MatrixBase>::partialPivLu' requested here return m.partialPivLu().determinant(); ^ ./deps/eigen-3.3.9/Eigen/src/LU/Determinant.h:96:83: note: in instantiation of member function 'Eigen::internal::determinant_impl, -1>::run' requested here return internal::determinant_impl::type>::run(derived()); ^ ./DppKernelModel.h:96:41: note: in instantiation of member function 'Eigen::MatrixBase>::determinant' requested here float det_Y = subset_kernel_mat.determinant(); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:578:34: note: 'result_of (const float &)>' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_IN_CXX17 result_of; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:837:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17' # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:810:49: note: expanded from macro '_LIBCPP_DEPRECATED' # define _LIBCPP_DEPRECATED __attribute__((deprecated)) ^ 4 warnings generated. clang++ -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c RDppDiversity.cpp -o RDppDiversity.o RDppDiversity.cpp:18:25: warning: implicit conversion loses floating-point precision: 'typename storage_type<14>::type' (aka 'double') to 'std::vector::value_type' (aka 'float') [-Wimplicit-float-conversion] ratingsCpp[i] = ratings[i]; ~ ^~~~~~~~~~ RDppDiversity.cpp:20:30: warning: implicit conversion loses floating-point precision: 'typename storage_type<14>::type' (aka 'double') to 'std::vector::value_type' (aka 'float') [-Wimplicit-float-conversion] itemsCpp[i][j] = item_representations(i, j); ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ RDppDiversity.cpp:25:24: warning: implicit conversion loses integer precision: 'std::vector>::size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] int valid_n = res->size(); ~~~~~~~ ~~~~~^~~~~~ In file included from RDppDiversity.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:58: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:76: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; ~~~~~~ ^ RDppDiversity.cpp:20:50: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here itemsCpp[i][j] = item_representations(i, j); ^ In file included from RDppDiversity.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:58: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:73: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; ~~~~~~ ^ 5 warnings generated. clang++ -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c RDppLearnItemEmb.cpp -o RDppLearnItemEmb.o In file included from RDppLearnItemEmb.cpp:2: ./DppKernelModel.h:23:93: warning: implicit conversion loses floating-point precision: 'double' to 'float' [-Wimplicit-float-conversion] explicit DppKernelModel(size_t num_items, size_t embedding_size, float regularization = 0.1): _num_items(num_items), _emb_size(embedding_size), _num_iter(0), _accumulate_log_likelihood(0), _regularization(regularization) { ~ ^~~ In file included from RDppLearnItemEmb.cpp:2: In file included from ./DppKernelModel.h:14: In file included from ./deps/eigen-3.3.9/Eigen/Core:367: ./deps/eigen-3.3.9/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of (const float &, const float &)>' is deprecated [-Wdeprecated-declarations] typedef typename std::result_of::type type1; ^ ./deps/eigen-3.3.9/Eigen/src/Core/CwiseBinaryOp.h:33:20: note: in instantiation of template class 'Eigen::internal::result_of (const float &, const float &)>' requested here typedef typename result_of< ^ ./deps/eigen-3.3.9/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits, const Eigen::CwiseNullaryOp, const Eigen::Matrix>, const Eigen::Transpose>>>>' requested here template::XprKind, typename StorageKind = typename traits::StorageKind> ^ ./deps/eigen-3.3.9/Eigen/src/Core/CwiseBinaryOp.h:149:22: note: in instantiation of default argument for 'generic_xpr_base, const Eigen::CwiseNullaryOp, const Eigen::Matrix>, const Eigen::Transpose>>>>' required here : public internal::generic_xpr_base >::type ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./deps/eigen-3.3.9/Eigen/src/Core/CwiseBinaryOp.h:78:10: note: in instantiation of template class 'Eigen::CwiseBinaryOpImpl, const Eigen::CwiseNullaryOp, const Eigen::Matrix>, const Eigen::Transpose>>, Eigen::Dense>' requested here public CwiseBinaryOpImpl< ^ ./DppKernelModel.h:100:33: note: in instantiation of template class 'Eigen::CwiseBinaryOp, const Eigen::CwiseNullaryOp, const Eigen::Matrix>, const Eigen::Transpose>>>' requested here *(grad) = label / det_Y * subset_kernel_mat.adjoint().transpose() * subset_item_mat; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:578:34: note: 'result_of (const float &, const float &)>' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_IN_CXX17 result_of; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:837:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17' # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:810:49: note: expanded from macro '_LIBCPP_DEPRECATED' # define _LIBCPP_DEPRECATED __attribute__((deprecated)) ^ RDppLearnItemEmb.cpp:25:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'const int' [-Wshorten-64-to-32] Rcpp::NumericMatrix itemEmb(num_items, emb_size); ~~~~~~~ ^~~~~~~~~ In file included from RDppLearnItemEmb.cpp:2: In file included from ./DppKernelModel.h:14: In file included from ./deps/eigen-3.3.9/Eigen/Core:367: ./deps/eigen-3.3.9/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of (const float &)>' is deprecated [-Wdeprecated-declarations] typedef typename std::result_of::type type1; ^ ./deps/eigen-3.3.9/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of (const float &)>' requested here typedef typename result_of< ^ ./deps/eigen-3.3.9/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits, const Eigen::Matrix>>' requested here template::XprKind, typename StorageKind = typename traits::StorageKind> ^ ./deps/eigen-3.3.9/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base, const Eigen::Matrix>>' required here : public internal::generic_xpr_base >::type ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./deps/eigen-3.3.9/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl, const Eigen::Matrix, Eigen::Dense>' requested here class CwiseUnaryOp : public CwiseUnaryOpImpl::StorageKind>, internal::no_assignment_operator ^ ./deps/eigen-3.3.9/Eigen/src/LU/PartialPivLU.h:523:22: note: in instantiation of template class 'Eigen::CwiseUnaryOp, const Eigen::Matrix>' requested here m_l1_norm = m_lu.cwiseAbs().colwise().sum().maxCoeff(); ^ ./deps/eigen-3.3.9/Eigen/src/LU/PartialPivLU.h:131:7: note: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all) compute(); ^ ./deps/eigen-3.3.9/Eigen/src/LU/PartialPivLU.h:323:3: note: in instantiation of function template specialization 'Eigen::PartialPivLU>::compute>' requested here compute(matrix.derived()); ^ ./deps/eigen-3.3.9/Eigen/src/LU/PartialPivLU.h:594:10: note: in instantiation of function template specialization 'Eigen::PartialPivLU>::PartialPivLU>' requested here return PartialPivLU(eval()); ^ ./deps/eigen-3.3.9/Eigen/src/LU/Determinant.h:41:14: note: in instantiation of member function 'Eigen::MatrixBase>::partialPivLu' requested here return m.partialPivLu().determinant(); ^ ./deps/eigen-3.3.9/Eigen/src/LU/Determinant.h:96:83: note: in instantiation of member function 'Eigen::internal::determinant_impl, -1>::run' requested here return internal::determinant_impl::type>::run(derived()); ^ ./DppKernelModel.h:96:41: note: in instantiation of member function 'Eigen::MatrixBase>::determinant' requested here float det_Y = subset_kernel_mat.determinant(); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:578:34: note: 'result_of (const float &)>' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_IN_CXX17 result_of; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:837:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17' # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:810:49: note: expanded from macro '_LIBCPP_DEPRECATED' # define _LIBCPP_DEPRECATED __attribute__((deprecated)) ^ In file included from RDppLearnItemEmb.cpp:2: In file included from ./DppKernelModel.h:14: In file included from ./deps/eigen-3.3.9/Eigen/Core:367: ./deps/eigen-3.3.9/Eigen/src/Core/util/Meta.h:320:25: warning: 'result_of (const float &)>' is deprecated [-Wdeprecated-declarations] typedef typename std::result_of::type type1; ^ ./deps/eigen-3.3.9/Eigen/src/Core/CwiseUnaryOp.h:21:20: note: in instantiation of template class 'Eigen::internal::result_of (const float &)>' requested here typedef typename result_of< ^ ./deps/eigen-3.3.9/Eigen/src/Core/util/XprHelper.h:497:56: note: in instantiation of template class 'Eigen::internal::traits, const Eigen::Block, 0>, -1, -1, false>, -1, 1, false>, -1, 1, false>>>' requested here template::XprKind, typename StorageKind = typename traits::StorageKind> ^ ./deps/eigen-3.3.9/Eigen/src/Core/CwiseUnaryOp.h:95:22: note: in instantiation of default argument for 'generic_xpr_base, const Eigen::Block, 0>, -1, -1, false>, -1, 1, false>, -1, 1, false>>>' required here : public internal::generic_xpr_base >::type ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./deps/eigen-3.3.9/Eigen/src/Core/CwiseUnaryOp.h:55:29: note: in instantiation of template class 'Eigen::CwiseUnaryOpImpl, const Eigen::Block, 0>, -1, -1, false>, -1, 1, false>, -1, 1, false>, Eigen::Dense>' requested here class CwiseUnaryOp : public CwiseUnaryOpImpl::StorageKind>, internal::no_assignment_operator ^ ./deps/eigen-3.3.9/Eigen/src/LU/PartialPivLU.h:381:34: note: in instantiation of template class 'Eigen::CwiseUnaryOp, const Eigen::Block, 0>, -1, -1, false>, -1, 1, false>, -1, 1, false>>' requested here = lu.col(k).tail(rows-k).unaryExpr(Scoring()).maxCoeff(&row_of_biggest_in_col); ^ ./deps/eigen-3.3.9/Eigen/src/LU/PartialPivLU.h:436:14: note: (skipping 4 contexts in backtrace; use -ftemplate-backtrace-limit=0 to see all) return unblocked_lu(lu, row_transpositions, nb_transpositions); ^ ./deps/eigen-3.3.9/Eigen/src/LU/PartialPivLU.h:323:3: note: in instantiation of function template specialization 'Eigen::PartialPivLU>::compute>' requested here compute(matrix.derived()); ^ ./deps/eigen-3.3.9/Eigen/src/LU/PartialPivLU.h:594:10: note: in instantiation of function template specialization 'Eigen::PartialPivLU>::PartialPivLU>' requested here return PartialPivLU(eval()); ^ ./deps/eigen-3.3.9/Eigen/src/LU/Determinant.h:41:14: note: in instantiation of member function 'Eigen::MatrixBase>::partialPivLu' requested here return m.partialPivLu().determinant(); ^ ./deps/eigen-3.3.9/Eigen/src/LU/Determinant.h:96:83: note: in instantiation of member function 'Eigen::internal::determinant_impl, -1>::run' requested here return internal::determinant_impl::type>::run(derived()); ^ ./DppKernelModel.h:96:41: note: in instantiation of member function 'Eigen::MatrixBase>::determinant' requested here float det_Y = subset_kernel_mat.determinant(); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/type_traits:578:34: note: 'result_of (const float &)>' has been explicitly marked deprecated here template class _LIBCPP_DEPRECATED_IN_CXX17 result_of; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:837:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17' # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__config:810:49: note: expanded from macro '_LIBCPP_DEPRECATED' # define _LIBCPP_DEPRECATED __attribute__((deprecated)) ^ In file included from RDppLearnItemEmb.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:58: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:76: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; ~~~~~~ ^ RDppLearnItemEmb.cpp:29:20: note: in instantiation of member function 'Rcpp::Matrix<14>::operator()' requested here itemEmb(i, j) = item_emb(i, j); ^ In file included from RDppLearnItemEmb.cpp:1: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp.h:40: In file included from /Users/ripley/R/Library/Rcpp/include/Rcpp/Vector.h:58: /Users/ripley/R/Library/Rcpp/include/Rcpp/vector/Matrix.h:138:73: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long') to 'int' [-Wshorten-64-to-32] return static_cast< Vector* >( this )->operator[]( offset( i, j ) ) ; ~~~~~~ ^ 7 warnings generated. clang++ -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c RcppExports.cpp -o RcppExports.o clang++ -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Users/ripley/R/R-devel/lib -L/opt/R/arm64/lib -o rDppDiversity.so DPPDiversity.o DppKernelModel.o RDppDiversity.o RDppLearnItemEmb.o RcppExports.o -L/Users/ripley/R/R-devel/lib -lR -Wl,-framework -Wl,CoreFoundation installing to /Users/ripley/R/packages/tests-devel/rDppDiversity.Rcheck/00LOCK-rDppDiversity/00new/rDppDiversity/libs ** R ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** testing if installed package can be loaded from temporary location ** checking absolute paths in shared objects and dynamic libraries ** testing if installed package can be loaded from final location ** testing if installed package keeps a record of temporary installation path * DONE (rDppDiversity)