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.
1 parent 3de7c34 commit 0fea37fCopy full SHA for 0fea37f
inst/include/Rcpp/vector/Vector.h
@@ -128,6 +128,10 @@ class Vector :
128
Storage::set__( Rf_allocVector( RTYPE, static_cast<R_xlen_t>(size)) ) ;
129
init() ;
130
}
131
+ Vector( const unsigned int& size ) {
132
+ Storage::set__( Rf_allocVector( RTYPE, static_cast<R_xlen_t>(size)) ) ;
133
+ init() ;
134
+ }
135
136
Vector( const double& size ) {
137
@@ -138,7 +142,7 @@ class Vector :
138
142
Storage::set__( Rf_allocVector( RTYPE, size) ) ;
139
143
140
144
141
-
145
+
146
Vector( const Dimension& dims) {
147
Storage::set__( Rf_allocVector( RTYPE, dims.prod() ) ) ;
148
0 commit comments