Changeset 922 in Sophya for trunk/SophyaLib/TArray/tarray.cc


Ignore:
Timestamp:
Apr 13, 2000, 7:03:03 PM (25 years ago)
Author:
ansari
Message:

pb compil sur SGI avec sqrt - Reza 13/4/2000

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/TArray/tarray.cc

    r894 r922  
    55#include <stdio.h>
    66#include <stdlib.h>
     7#include <math.h>
    78#include "pexceptions.h"
    89#include "tarray.h"
     
    198199}
    199200
     201inline double _SqrtRz_(double x) { return sqrt(x); }  // Pb avec SGI-CC - $CHECK$ - Reza 04/2000
     202
    200203//! Give value (in \b double) for element at position \b ip..
    201204template <class T>
     
    220223  double cr = (double)(c.real());
    221224  double ci = (double)(c.imag());
    222   return( sqrt(cr*cr+ci*ci) );
     225  return( _SqrtRz_(cr*cr+ci*ci) );
    223226}
    224227
     
    235238  double cr = (double)(c.real());
    236239  double ci = (double)(c.imag());
    237   return( sqrt(cr*cr+ci*ci) );
     240  return( _SqrtRz_(cr*cr+ci*ci) );
    238241}
    239242
Note: See TracChangeset for help on using the changeset viewer.