Changeset 0c3e67 in git
- Timestamp:
- Dec 8, 2000, 3:43:46 PM (22 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 1cf2dc689f8efb78a20e7d2cafb16cf1005eed55
- Parents:
- 98621a5b684f137b6eeb5faaee33834605a7b2de
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/prCopy.cc
r98621a5 r0c3e67 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: prCopy.cc,v 1. 9 2000-11-03 14:50:23 obachmanExp $ */4 /* $Id: prCopy.cc,v 1.10 2000-12-08 14:43:46 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT - implementation of functions for Copy/Move/Delete for Polys … … 131 131 prCopyEvector(poly dest, ring dest_r, poly src, ring src_r,int max) 132 132 { 133 assume( dest_r == currRing);133 assume((dest_r == currRing)||(dest_r== currRing->algring)); 134 134 number n = pGetCoeff(dest); 135 int i =0;136 for (i=max; i ; i--)135 int i; 136 for (i=max; i>0; i--) 137 137 { 138 138 p_SetExp(dest, i, p_GetExp( src, i,src_r), dest_r); 139 139 assume(n == pGetCoeff(dest)); 140 140 } 141 p_SetComp(dest, p_GetComp( src,src_r), dest_r); 142 assume(n == pGetCoeff(dest)); 141 if (rRing_has_Comp(dest_r)) 142 p_SetComp(dest, p_GetComp( src,src_r), dest_r); 143 assume(n == pGetCoeff(dest)); 143 144 p_Setm(dest, dest_r); 144 145 assume(n == pGetCoeff(dest));
Note: See TracChangeset
for help on using the changeset viewer.