- Timestamp:
- Sep 11, 2011, 4:17:52 PM (14 years ago)
- Children:
- c2f74f
- Parents:
- d0b958
- Location:
- src/base
- Files:
-
- 2 edited
-
helper.hpp (modified) (1 diff)
-
index.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/base/helper.hpp
rd0b958 r62f19a 105 105 106 106 inline void MdM(int nn, vmg_float u, 107 vmg_float * __restrict__ tbl, vmg_float * __restrict__dtbl)107 vmg_float * restrict tbl, vmg_float * restrict dtbl) 108 108 { 109 109 int i, n, m; -
src/base/index.hpp
rd0b958 r62f19a 46 46 47 47 const Index Abs() {return Index(abs(i[0]), abs(i[1]), abs(i[2]));} 48 int Length() const {return sqrt( i[0]*i[0]+i[1]*i[1]+i[2]*i[2]);}48 int Length() const {return sqrt(double(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]));} 49 49 int Max() const {return std::max(std::max(i[0],i[1]),i[2]);} 50 50 int Min() const {return std::min(std::min(i[0],i[1]),i[2]);}
Note:
See TracChangeset
for help on using the changeset viewer.
