Changeset b78996 in git for libpolys/polys/matpol.cc


Ignore:
Timestamp:
Apr 14, 2011, 3:34:10 PM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
a665ebdc0e6f023769cadc08a35bd0eb3f3ad935
Parents:
2f5936105b139a5635034b6eb233c5405b3e3e29
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-04-14 15:34:10+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:30:32+01:00
Message:
FIX: strting to fix sparse matrices (sparsmat.{h, cc})
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/matpol.cc

    r2f5936 rb78996  
    3030#include "monomials/ring.h"
    3131#include "monomials/p_polys.h"
    32 // #include <kernel/sparsmat.h>
    3332
    3433#include "coeffrings.h"
     
    365364  int       *qrow, *qcol;
    366365  poly      *Xarray;
    367   ring      _R;
     366  const ring      _R;
    368367 
    369368  void mpInitMat();
     
    10941093        if (ap[jj] != NULL)
    10951094        {
    1096           q2 = SM_MULT(ap[jj], elim, div);
     1095          q2 = SM_MULT(ap[jj], elim, div, _R);
    10971096          if (a[jj] != NULL)
    10981097          {
    1099             q1 = SM_MULT(a[jj], piv, div);
     1098            q1 = SM_MULT(a[jj], piv, div, _R);
    11001099            p_Delete(&a[jj], _R);
    11011100            q2 = p_Add_q(q2, q1, _R);
     
    11041103        else if (a[jj] != NULL)
    11051104        {
    1106           q2 = SM_MULT(a[jj], piv, div);
     1105          q2 = SM_MULT(a[jj], piv, div, _R);
    11071106        }
    11081107        if ((q2!=NULL) && div)
    1109           SM_DIV(q2, div);
     1108          SM_DIV(q2, div, _R);
    11101109        a[jj] = q2;
    11111110      }
     
    11191118        if (a[jj] != NULL)
    11201119        {
    1121           q2 = SM_MULT(a[jj], piv, div);
     1120          q2 = SM_MULT(a[jj], piv, div, _R);
    11221121          p_Delete(&a[jj], _R);
    11231122          if (div)
    1124             SM_DIV(q2, div);
     1123            SM_DIV(q2, div, _R);
    11251124          a[jj] = q2;
    11261125        }
     
    18391838        if (a[j] != NULL)
    18401839        {
    1841           q1 = SM_MULT(a[j], piv, div);
     1840          q1 = SM_MULT(a[j], piv, div, _R);
    18421841          if (ap[j] != NULL)
    18431842          {
    1844             q2 = SM_MULT(ap[j], elim, div);
     1843            q2 = SM_MULT(ap[j], elim, div, _R);
    18451844            q1 = p_Add_q(q1,q2, _R);
    18461845          }
    18471846        }
    18481847        else if (ap[j] != NULL)
    1849           q1 = SM_MULT(ap[j], elim, div);
     1848          q1 = SM_MULT(ap[j], elim, div, _R);
    18501849        if (q1 != NULL)
    18511850        {
    18521851          if (div)
    1853             SM_DIV(q1, div);
     1852            SM_DIV(q1, div, _R);
    18541853          q[j] = q1;
    18551854        }
     
    18621861        if (a[j] != NULL)
    18631862        {
    1864           q1 = SM_MULT(a[j], piv, div);
     1863          q1 = SM_MULT(a[j], piv, div, _R);
    18651864          if (div)
    1866             SM_DIV(q1, div);
     1865            SM_DIV(q1, div, _R);
    18671866          q[j] = q1;
    18681867        }
Note: See TracChangeset for help on using the changeset viewer.