Changeset 8487b7 in git
 Timestamp:
 Jul 4, 2013, 11:11:20 AM (10 years ago)
 Branches:
 (u'jengelhdatetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
 Children:
 90e49f7869b86be3e49012a3f3091d48b56c09ad
 Parents:
 358f9d7899436a4f0ac58f23dc33e07dce976d44
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

kernel/linearAlgebra.cc
r358f9d7 r8487b7 107 107 int cc = aMat>cols(); 108 108 pMat = mpNew(rr, rr); 109 uMat = mpNew(rr, cc); 110 /* copy aMat into uMat: */ 111 for (int r = 1; r <= rr; r++) 112 for (int c = 1; c <= cc; c++) 113 MATELEM(uMat, r, c) = p_Copy(aMat>m[c  1 + (r  1) * cc], R); 109 uMat = mp_Copy(aMat,R); /* copy aMat into uMat: */ 114 110 115 111 /* we use an int array to store all row permutations; … … 159 155 is nonzero: */ 160 156 number pivotElement = pGetCoeff(MATELEM(uMat, r, r + cOffset)); 161 poly p; number n;157 poly p; 162 158 for (int rGauss = r + 1; rGauss <= rr; rGauss++) 163 159 { … … 165 161 if (p != NULL) 166 162 { 167 n = n_Div(pGetCoeff(p), pivotElement, R>cf);163 number n = n_Div(pGetCoeff(p), pivotElement, R>cf); 168 164 n_Normalize(n,R>cf); 169 165
Note: See TracChangeset
for help on using the changeset viewer.