Changeset a5fb9a in git
- Timestamp:
- Dec 21, 2014, 1:15:48 AM (9 years ago)
- Branches:
- (u'spielwiese', 'd0474371d8c5d8068ab70bfb42719c97936b18a6')
- Children:
- f533f6f7667328bccb271b19b2f603aaebe41596
- Parents:
- 20863c905e3e6d10e3e1e6de5a625a88d4ba28b2
- git-author:
- Jakob Kroeker <kroeker@math.uni-hannover.de>2014-12-21 01:15:48+01:00
- git-committer:
- Jakob Kroeker <kroeker@math.uni-hannover.de>2014-12-21 01:17:46+01:00
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Tst/Short.lst
r20863c ra5fb9a 36 36 Short/bug_34.tst 37 37 Short/bug_35.tst 38 Short/bug_358.tst 38 39 Short/bug_36.tst 39 40 Short/bug_37.tst -
kernel/linear_algebra/linearAlgebra.cc
r20863c ra5fb9a 407 407 /* determine whether uMat * xVec = yVec is solvable */ 408 408 bool isSolvable = true; 409 bool isZeroRow; int nonZeroRowIndex; 409 bool isZeroRow; 410 int nonZeroRowIndex = 0 ; // handle case that the matrix is zero 410 411 for (int r = m; r >= 1; r--) 411 412 { … … 430 431 solution space will be. Thus, we start with the possibly too wide 431 432 matrix N and later copy the relevant columns of N into H. */ 432 int nonZeroC; int lastNonZeroC = n + 1; 433 int nonZeroC = 0 ; 434 int lastNonZeroC = n + 1; 435 433 436 for (int r = nonZeroRowIndex; r >= 1; r--) 434 437 { 435 438 for (nonZeroC = 1; nonZeroC <= n; nonZeroC++) 436 439 if (MATELEM(uMat, r, nonZeroC) != NULL) break; 440 437 441 for (int w = lastNonZeroC - 1; w >= nonZeroC + 1; w--) 438 442 { … … 467 471 lastNonZeroC = nonZeroC; 468 472 } 473 for (int w = lastNonZeroC - 1; w >= 1; w--) 474 { 475 // remaining variables are free 476 dim++; 477 MATELEM(N, w, dim) = pOne(); 478 } 479 469 480 if (dim == 0) 470 481 { … … 484 495 idDelete((ideal*)&N); 485 496 } 486 487 497 idDelete((ideal*)&cVec); 488 498 idDelete((ideal*)&yVec);
Note: See TracChangeset
for help on using the changeset viewer.