Now fixed. Here's the incredibly long patch if someone feels like patching 7.6 (and older). (Please do.)
cvs server: Diffing . Index: matrix_code.h =================================================================== RCS file: /pike/data/cvsroot/Pike/7.7/src/modules/Math/matrix_code.h,v retrieving revision 1.8 diff -u -r1.8 matrix_code.h --- matrix_code.h 9 Jul 2003 01:09:12 -0000 1.8 +++ matrix_code.h 9 Nov 2004 15:44:00 -0000 @@ -647,10 +647,10 @@ n=THIS->ysize; /* == mx->xsize */ p=mx->ysize;
- dmx=matrixX(_push_new_)(m,p); + dmx=matrixX(_push_new_)(p,m);
- s1=THIS->m; - s2=mx->m; + s1=mx->m; + s2=THIS->m; d=dmx->m; for (k=0; k<p; k++) for (i=0; i<m; i++)