Changeset a9d624 in git for kernel/Ideal.h
- Timestamp:
- Sep 8, 2005, 2:47:18 PM (19 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- a171c0db5983b1b21803816bbc2059e6a2c2c01c
- Parents:
- d964f9729f190e72c24a8391d0e7b4ab964543a2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Ideal.h
rd964f9 ra9d624 1 1 #ifndef IDEAL_CPP_HEADER 2 2 #define IDEAL_CPP_HEADER 3 //$Id: Ideal.h,v 1. 1 2005-09-08 12:07:20bricken Exp $3 //$Id: Ideal.h,v 1.2 2005-09-08 12:47:04 bricken Exp $ 4 4 #include "Poly.h" 5 #include "ideals.h" 5 6 //base for ideals as well for modules 6 7 … … 43 44 return storage.end(); 44 45 } 45 size_type size() {46 size_type size() const{ 46 47 return storage.size(); 47 48 } … … 61 62 return insert(__pos,__first,__last); 62 63 } 64 63 65 }; 64 66 … … 68 70 Ideal(){ 69 71 } 72 Ideal(ideal i, ring r){ 73 for(int j=0;j<IDELEMS(i);j++){ 74 storage.push_back(Poly(i->m[j],r)); 75 } 76 } 70 77 Ideal(iterator first, 71 78 iterator last, … … 73 80 IdealBase<Poly>(first,last,__a){ 74 81 } 82 ideal as_ideal() const{ 83 //no checks for rings 84 int s=size(); 85 ideal result=idInit(s); 86 87 for(int i=0;i<s;i++){ 88 result->m[i]=storage[i].as_poly(); 89 } 90 return result; 91 } 75 92 }; 76 93 class Modul:
Note: See TracChangeset
for help on using the changeset viewer.