We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 99ff8c0 + eb069bf commit 8c6bff2Copy full SHA for 8c6bff2
1 file changed
inst/include/Rcpp/Dimension.h
@@ -56,7 +56,7 @@ namespace Rcpp{
56
inline int size() const {
57
return (int) dims.size() ;
58
}
59
- inline int prod() const {
+ inline R_xlen_t prod() const {
60
return std::accumulate( dims.begin(), dims.end(), static_cast<R_xlen_t>(1), std::multiplies<R_xlen_t>() );
61
62
0 commit comments