Changeset 1059


Ignore:
Timestamp:
Nov 11, 2011, 2:10:15 AM (12 years ago)
Author:
sam
Message:

core: add a double complex type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/matrix.h

    r1052 r1059  
    2929    typedef tname<half> f16##suffix; \
    3030    typedef tname<float> suffix; \
     31    typedef tname<double> f64##suffix; \
    3132    typedef tname<int8_t> i8##suffix; \
    3233    typedef tname<uint8_t> u8##suffix; \
     
    111112    } \
    112113    \
    113     inline float len() const \
     114    inline double len() const \
    114115    { \
    115116        using namespace std; \
    116         return sqrtf((float)sqlen()); \
     117        return sqrt((double)sqlen()); \
    117118    } \
    118119    \
     
    447448#define SCALAR_GLOBAL2(tname, op) \
    448449    SCALAR_GLOBAL(tname, op, int) \
    449     SCALAR_GLOBAL(tname, op, float)
     450    SCALAR_GLOBAL(tname, op, float) \
     451    SCALAR_GLOBAL(tname, op, double)
    450452
    451453#define GLOBALS(tname) \
Note: See TracChangeset for help on using the changeset viewer.