Show
Ignore:
Timestamp:
06/02/10 13:53:29 (14 years ago)
Author:
prikryl
Message:

Corrected win32-specific error: pow(2,n) calls on these systems are ambiguous (there are three variants of pow() with different double/float/long double parameters). Replaced pow() with left shift and reorganised some parts of the code.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/estim/arx.h

    r1025 r1030  
    263263        void validate() { 
    264264                ARX::validate(); 
    265                 int philen = pow(2, est._V().cols() - 1); 
     265                // kamil: int philen = pow(2, est._V().cols() - 1); 
     266                // but under win32 this call is ambiguous, and moreover it uses 
     267                // floats to compute 2^n ... 
     268                int philen = 1 << (est._V().cols() - 1); 
    266269                rvc.add ( RV ( "{phi }", vec_1(philen) ) ); // pocet 2^parametru 
    267270                dimc += philen;