Changeset 60e4be in git


Ignore:
Timestamp:
Oct 9, 2009, 4:42:07 PM (14 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
a7b18ceea1f3cf51c0b57470ffc0bc09eff384bd
Parents:
95a6f3a9673fd36b24fd0024a6835ad945e9a3f6
Message:
bug fix


git-svn-id: file:///usr/local/Singular/svn/trunk@12183 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/TestMinors.cc

    r95a6f3 r60e4be  
    425425  int columnCount = mat->ncols;
    426426
    427   int* myPolyMatrix = (int*)(mat->m);
     427  poly* myPolyMatrix = (poly*)(mat->m);
     428  int theSize = rowCount * columnCount;
     429  int myIntMatrix[theSize]; int vv;
     430  for (int i = 0; i < theSize; i++)
     431  {
     432    vv = 0;
     433    if (myPolyMatrix[i] != NULL)
     434    {
     435      vv = n_Int(pGetCoeff(myPolyMatrix[i]), currRing);
     436      if (characteristic != 0) vv = vv % characteristic;
     437    }
     438    myIntMatrix[i] = vv;
     439  }
     440
    428441  IntMinorProcessor mp;
    429   mp.defineMatrix(rowCount, columnCount, myPolyMatrix);
    430 
    431   /* The next lines are for defining the sub-matrix of myPolyMatrix
     442  mp.defineMatrix(rowCount, columnCount, myIntMatrix);
     443
     444  /* The next lines are for defining the sub-matrix of myIntMatrix
    432445     from which we want to compute all k x k - minors.
    433446     In the given setting, we want the entire matrix to form the sub-matrix. */
Note: See TracChangeset for help on using the changeset viewer.