Changeset 2e467b in git
- Timestamp:
- Mar 15, 1999, 1:23:41 PM (25 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- cbc84b566a8243fb3545d987bbb1dd67a9171ee9
- Parents:
- 70fa9a9325e89b413a16b1300d6f3dc1b470f9b2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ring.cc
r70fa9a9 r2e467b 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ring.cc,v 1.4 5 1999-03-11 15:58:09Singular Exp $ */4 /* $Id: ring.cc,v 1.46 1999-03-15 12:23:41 Singular Exp $ */ 5 5 6 6 /* … … 1672 1672 tmpR.block1=(int*)Alloc0(b*sizeof(int)); 1673 1673 tmpR.wvhdl=(short**)Alloc0(b*sizeof(short*)); 1674 /* weights not implemented yet ...*/1675 1674 if (rb!=NULL) 1676 1675 { … … 1690 1689 tmpR.block0[i]=r1->block0[i]; 1691 1690 tmpR.block1[i]=r1->block1[i]; 1691 if (r1->wvhdl[i]!=NULL) 1692 { 1693 int l=mmSizeL(r1->wvhdl[i]); 1694 tmpR.wvhdl[i]=(short *)AllocL(l); 1695 memcpy(tmpR.wvhdl[i],r1->wvhdl[i],l); 1696 } 1692 1697 } 1693 1698 j=i; … … 1707 1712 tmpR.block0[j]=r2->block0[i]+r1->N; 1708 1713 tmpR.block1[j]=r2->block1[i]+r1->N; 1714 if (r2->wvhdl[i]!=NULL) 1715 { 1716 int l=mmSizeL(r2->wvhdl[i]); 1717 tmpR.wvhdl[i]=(short *)AllocL(l); 1718 memcpy(tmpR.wvhdl[i],r2->wvhdl[i],l); 1719 } 1709 1720 } 1710 1721 } … … 1722 1733 tmpR.block1=(int*)Alloc0(b*sizeof(int)); 1723 1734 tmpR.wvhdl=(short**)Alloc0(b*sizeof(short*)); 1724 /* weights not implemented yet ...*/1725 1735 for (i=0;i<b;i++) 1726 1736 { … … 1728 1738 tmpR.block0[i]=r1->block0[i]; 1729 1739 tmpR.block1[i]=r1->block1[i]; 1740 if (r1->wvhdl[i]!=NULL) 1741 { 1742 int l=mmSizeL(r1->wvhdl[i]); 1743 tmpR.wvhdl[i]=(short *)AllocL(l); 1744 memcpy(tmpR.wvhdl[i],r1->wvhdl[i],l); 1745 } 1730 1746 } 1731 1747 tmpR.OrdSgn=r1->OrdSgn;
Note: See TracChangeset
for help on using the changeset viewer.