Downhill Simplex Method (Bug #3703)
Description
DownhillSolverImpl::innerDownhillSimplex something looks broken here:
Mat_<double> coord_sum(1,ndim,0.0),buf(1,ndim,0.0),y(1,ndim,0.0);
nfunk = 0;
for(i=0;i<ndim+1;++i)
{
y(i) = f->calc(p[i]);
}
y has only ndim elements, while the loop goes over ndim+1.
Resulting in unknown exception.
Associated revisions
Merge pull request #3703 from BKNio:fixing_bad_alloc
History
Updated by be rak almost 11 years ago
oh now we got 2 pr's
Updated by Dmitry Retinskiy almost 11 years ago
- Pull request set to https://github.com/Itseez/opencv/pull/2784
- Assignee set to Saree Alnaghy
- Status changed from New to Open
Updated by Yash Vadalia almost 11 years ago
I removed my PR.