Changeset 2291 in Sophya for trunk/SophyaLib/Samba/lambdaBuilder.h
- Timestamp:
- Dec 5, 2002, 4:43:59 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/Samba/lambdaBuilder.h
r1756 r2291 14 14 15 15 public : 16 Legendre();17 16 Legendre(r_8 x, int_4 lmax); 18 inline r_8 getPl(int_4 l) 17 18 inline r_8 getPl(int_4 l) const 19 19 { 20 20 if (l>lmax_) … … 25 25 } 26 26 27 27 28 private : 28 void array_init(int_4 lmax); 29 30 Legendre() {;} 31 32 void array_init(int_4 lmax); 29 33 30 34 r_8 x_; … … 45 49 46 50 /*! return the value of the coefficient \f$ \lambda_l^m \f$ */ 47 inline double lamlm(int l, int m) const { return lambda_(l,m); } 51 inline double lamlm(int l, int m) const 52 { 53 lambda_.CheckRelativeIndices(l,m); 54 return lambda_(l,m); 55 } 48 56 49 inline double lamlm(int index) const { return lambda_(index); } 57 inline double lamlm(int index) const { 58 return lambda_(index); 59 } 50 60 51 61 … … 92 102 inline void lam_wx(int l, int m, r_8& w, r_8& x) const 93 103 { 104 if (m > l ) 105 { 106 throw RangeCheckError("LambdaWXBuilder::lam_wx : l < m !" ); 107 } 94 108 w=lamWlm_(l,m); 95 109 x=lamXlm_(l,m); … … 117 131 inline void lam_pm(int l, int m, r_8& lambda_plus, r_8& lambda_moins) const 118 132 { 133 if (m > l ) 134 { 135 throw RangeCheckError("LambdaPMBuilder::lam_pm : l < m !" ); 136 } 119 137 lambda_plus = lamPlm_(l,m); 120 138 lambda_moins = lamMlm_(l,m);
Note:
See TracChangeset
for help on using the changeset viewer.