Ignore:
Timestamp:
Dec 5, 2002, 4:43:59 PM (23 years ago)
Author:
lemeur
Message:

protections de dimensions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/Samba/lambdaBuilder.h

    r1756 r2291  
    1414
    1515 public :
    16 Legendre();
    1716Legendre(r_8 x, int_4 lmax);
    18  inline r_8 getPl(int_4 l)
     17
     18inline r_8 getPl(int_4 l) const
    1919{
    2020  if (l>lmax_)
     
    2525}
    2626
     27
    2728 private :
    28   void array_init(int_4 lmax);
     29
     30Legendre() {;}
     31
     32void array_init(int_4 lmax);
    2933
    3034  r_8 x_;
     
    4549
    4650 /*! return the value of the coefficient \f$  \lambda_l^m \f$ */
    47 inline double lamlm(int l, int m) const { return lambda_(l,m); }
     51inline double lamlm(int l, int m) const
     52  {
     53    lambda_.CheckRelativeIndices(l,m);
     54    return lambda_(l,m);
     55  }
    4856
    49 inline double lamlm(int index) const { return lambda_(index); }
     57inline double lamlm(int index) const {
     58 return lambda_(index);
     59}
    5060
    5161
     
    92102inline void lam_wx(int l, int m, r_8& w, r_8& x) const
    93103   {
     104  if (m > l )
     105    {
     106      throw RangeCheckError("LambdaWXBuilder::lam_wx : l < m !" );
     107    }
    94108     w=lamWlm_(l,m);
    95109     x=lamXlm_(l,m);
     
    117131inline void lam_pm(int l, int m, r_8& lambda_plus, r_8& lambda_moins) const
    118132   {
     133  if (m > l )
     134    {
     135      throw RangeCheckError("LambdaPMBuilder::lam_pm : l < m !" );
     136    }
    119137      lambda_plus = lamPlm_(l,m);
    120138     lambda_moins = lamMlm_(l,m);
Note: See TracChangeset for help on using the changeset viewer.