Estimation DLL, matrix library: fixed bug in mat::row_copy()

time-shift
Sébastien Villemot 2010-02-18 19:11:09 +01:00
parent 07091a6b63
commit cd9f9ff1b9
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ namespace mat
&& row_src < src.getRows() && row_dest < dest.getRows());
const double *p1 = src.getData() + row_src;
double *p2 = dest.getData() + row_dest;
while (p1 < src.getData() + src.getRows() * src.getLd())
while (p1 < src.getData() + src.getCols() * src.getLd())
{
*p2 = *p1;
p1 += src.getLd();