Changeset 3533 in Sophya for trunk/SophyaLib/Samba/lambdaBuilder.h
- Timestamp:
- Oct 12, 2008, 7:11:59 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/Samba/lambdaBuilder.h
r2958 r3533 6 6 #include "tvector.h" 7 7 #include "alm.h" 8 #include "pexceptions.h" 8 9 9 10 10 11 namespace SOPHYA { 11 12 12 /*! class e pour les polynomes de legendre*/13 /*! class of Legendre polynomials */ 13 14 class Legendre { 15 public : 16 Legendre(r_8 x, int_4 lmax); 14 17 15 public : 16 Legendre(r_8 x, int_4 lmax); 18 inline r_8 getPl(int_4 l) const 19 { 20 if (l>lmax_) { 21 throw RangeCheckError("Legendre::getPl(l) l>lmax -> Instanciate class with greater lmax ..."); 22 } 23 return Pl_(l); 24 } 17 25 18 inline r_8 getPl(int_4 l) const 19 { 20 if (l>lmax_) 21 { 22 throw (" illegal call of Legendre::getPl with index greater than lmax, which Legendre Class was instanciated with : instanciate Legendre with a greater lmax... "); 23 } 24 return Pl_(l); 25 } 26 private : 27 Legendre() {;} // this is forbidden 26 28 27 28 private : 29 30 Legendre() {;} 31 32 void array_init(int_4 lmax); 29 void array_init(int_4 lmax); 33 30 34 31 r_8 x_; … … 39 36 40 37 41 38 class LambdaLMBuilder { 42 39 43 40 public: 44 41 45 42 LambdaLMBuilder() {} … … 103 100 104 101 105 106 102 class LambdaWXBuilder : public LambdaLMBuilder 107 103 { 108 104 public: 109 105 110 106
Note:
See TracChangeset
for help on using the changeset viewer.