- Timestamp:
- Jun 8, 2016, 8:29:24 PM (9 years ago)
- Children:
- f84241
- Parents:
- 0c9476
- git-author:
- Frederik Heber <heber@…> (05/27/16 18:34:23)
- git-committer:
- Frederik Heber <heber@…> (06/08/16 20:29:24)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Fragmentation/Summation/SetValues/SamplingGrid_inline.hpp
r0c9476 ra5d4c3 38 38 inline 39 39 #endif 40 const size_t SamplingGrid::getDiscreteWindowLengthPerAxis(const size_t axis) const 41 { 42 const double round_offset = 43 (std::numeric_limits<size_t>::round_style == std::round_toward_zero) ? 44 0.5 : 0.; // need offset to get to round_toward_nearest behavior 45 const double length = 46 (double)getGridPointsPerAxis()*getWindowLengthPerAxis(axis)/getTotalLengthPerAxis(axis)+round_offset; 47 return length; 48 } 49 50 #ifdef HAVE_INLINE 51 inline 52 #endif 40 53 const size_t SamplingGrid::getWindowGridPoints() const 41 54 {
Note:
See TracChangeset
for help on using the changeset viewer.
