We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cde9642 commit b3c650aCopy full SHA for b3c650a
1 file changed
packages/nimble/inst/include/nimble/nimbleEigenNimArr.h
@@ -215,6 +215,7 @@ template<typename NimArrOutput, typename NimArrInput>
215
template<typename NimArrOutput, typename NimArrInput>
216
void copyNimArrToNimArrInternal(NimArrOutput &output, NimArrInput &input, int totSize, bool fillZeros, bool recycle) {
217
int sizeToCopy;
218
+ if((totSize == 0) || input.size() == 0) return;
219
if(input.size() < totSize) {
220
// _nimble_global_output << "Warning from C++: not enough initialization values.\n"; nimble_print_to_R( _nimble_global_output);
221
sizeToCopy = input.size();
0 commit comments