Changeset b78996 in git for libpolys/polys/matpol.cc
- Timestamp:
- Apr 14, 2011, 3:34:10 PM (13 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/matpol.cc
r2f5936 rb78996 30 30 #include "monomials/ring.h" 31 31 #include "monomials/p_polys.h" 32 // #include <kernel/sparsmat.h>33 32 34 33 #include "coeffrings.h" … … 365 364 int *qrow, *qcol; 366 365 poly *Xarray; 367 ring _R;366 const ring _R; 368 367 369 368 void mpInitMat(); … … 1094 1093 if (ap[jj] != NULL) 1095 1094 { 1096 q2 = SM_MULT(ap[jj], elim, div );1095 q2 = SM_MULT(ap[jj], elim, div, _R); 1097 1096 if (a[jj] != NULL) 1098 1097 { 1099 q1 = SM_MULT(a[jj], piv, div );1098 q1 = SM_MULT(a[jj], piv, div, _R); 1100 1099 p_Delete(&a[jj], _R); 1101 1100 q2 = p_Add_q(q2, q1, _R); … … 1104 1103 else if (a[jj] != NULL) 1105 1104 { 1106 q2 = SM_MULT(a[jj], piv, div );1105 q2 = SM_MULT(a[jj], piv, div, _R); 1107 1106 } 1108 1107 if ((q2!=NULL) && div) 1109 SM_DIV(q2, div );1108 SM_DIV(q2, div, _R); 1110 1109 a[jj] = q2; 1111 1110 } … … 1119 1118 if (a[jj] != NULL) 1120 1119 { 1121 q2 = SM_MULT(a[jj], piv, div );1120 q2 = SM_MULT(a[jj], piv, div, _R); 1122 1121 p_Delete(&a[jj], _R); 1123 1122 if (div) 1124 SM_DIV(q2, div );1123 SM_DIV(q2, div, _R); 1125 1124 a[jj] = q2; 1126 1125 } … … 1839 1838 if (a[j] != NULL) 1840 1839 { 1841 q1 = SM_MULT(a[j], piv, div );1840 q1 = SM_MULT(a[j], piv, div, _R); 1842 1841 if (ap[j] != NULL) 1843 1842 { 1844 q2 = SM_MULT(ap[j], elim, div );1843 q2 = SM_MULT(ap[j], elim, div, _R); 1845 1844 q1 = p_Add_q(q1,q2, _R); 1846 1845 } 1847 1846 } 1848 1847 else if (ap[j] != NULL) 1849 q1 = SM_MULT(ap[j], elim, div );1848 q1 = SM_MULT(ap[j], elim, div, _R); 1850 1849 if (q1 != NULL) 1851 1850 { 1852 1851 if (div) 1853 SM_DIV(q1, div );1852 SM_DIV(q1, div, _R); 1854 1853 q[j] = q1; 1855 1854 } … … 1862 1861 if (a[j] != NULL) 1863 1862 { 1864 q1 = SM_MULT(a[j], piv, div );1863 q1 = SM_MULT(a[j], piv, div, _R); 1865 1864 if (div) 1866 SM_DIV(q1, div );1865 SM_DIV(q1, div, _R); 1867 1866 q[j] = q1; 1868 1867 }
Note: See TracChangeset
for help on using the changeset viewer.