[Pntool-developers] SF.net SVN: pntool:[199] pnheaders/matrix.c
Brought to you by:
compaqdrew,
miordache
From: <Ste...@us...> - 2009-07-17 16:40:13
|
Revision: 199 http://pntool.svn.sourceforge.net/pntool/?rev=199&view=rev Author: StephenCamp Date: 2009-07-17 16:40:11 +0000 (Fri, 17 Jul 2009) Log Message: ----------- Found an apparent bug in matrix.c, line 371. CopyMatrix was improperly handling transposed matrices - it was examining nr and nc in the matrix without regard to transpose state. Modified Paths: -------------- pnheaders/matrix.c Modified: pnheaders/matrix.c =================================================================== --- pnheaders/matrix.c 2009-07-15 13:21:23 UTC (rev 198) +++ pnheaders/matrix.c 2009-07-17 16:40:11 UTC (rev 199) @@ -368,7 +368,7 @@ void CopyMatrix(const matrix* src, matrix* dst) { - CopyBlock(src->nr, src->nc, src, 0, 0, dst, 0, 0); + CopyBlock(NumberOfRows(*src), NumberOfColumns(*src), src, 0, 0, dst, 0, 0); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |