We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In "anms.h", the following line assigns c = 0 when width = 1 because of integer division:
c = 0
width = 1
double c = width/2; //initializing Grid
This causes the assignment of infinity to
int numCellCols = floor(cols/c); int numCellRows = floor(rows/c);
int numCellCols = floor(cols/c);
int numCellRows = floor(rows/c);
which, in turn, returns an std::bad_alloc exception because of the call
std::bad_alloc
std::vector<std::vector<bool> > coveredVec(numCellRows+1,std::vector<bool>(numCellCols+1,false));
The text was updated successfully, but these errors were encountered:
@drondao Thank you for pointing it out. Feel free to commit changes through the pull request.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
In "anms.h", the following line assigns
c = 0
whenwidth = 1
because of integer division:double c = width/2; //initializing Grid
This causes the assignment of infinity to
int numCellCols = floor(cols/c);
int numCellRows = floor(rows/c);
which, in turn, returns an
std::bad_alloc
exception because of the callstd::vector<std::vector<bool> > coveredVec(numCellRows+1,std::vector<bool>(numCellCols+1,false));
The text was updated successfully, but these errors were encountered: