Timeline for Mirrors number at borders of interval, untill it lays in the interval
Current License: CC BY-SA 4.0
16 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 22, 2019 at 6:37 | vote | accept | CommunityBot | ||
Mar 22, 2019 at 4:01 | answer | added | Quuxplusone | timeline score: 1 | |
Mar 21, 2019 at 11:42 | comment | added | user186243 |
@papagaga the usall case is lb == 0 und ub < 10000 (4096 is the biggest that I encountered). index is the result some distortion applyed to a value between lB and uB . Good point with the overflow.
|
|
Mar 21, 2019 at 10:29 | comment | added | papagaga |
I haven't thought this through but I feel like mirroring is meaningful only in certain circumstances. If, for instance, index can have any values between INT_MIN and INT_MAX , but lB is 0 and uB is 10 , then mirroring is a waste of time. Or if lB is very high and index very low, then we have an overflow that would certainly deprive mirroring of any sense. Do we know anything about those values besides lB <= uB ?
|
|
Mar 21, 2019 at 10:22 | comment | added | user186243 | @Mast does the edit answer your questions? | |
Mar 21, 2019 at 10:08 | history | edited | user186243 | CC BY-SA 4.0 |
added 958 characters in body
|
Mar 21, 2019 at 9:57 | history | edited | user186243 | CC BY-SA 4.0 |
added 958 characters in body
|
Mar 21, 2019 at 9:48 | comment | added | Mast♦ |
You've made a good start, but would it be possible to provide more context? How is this used? When is this used? Why the while approach, especially considering this is CUDA?
|
|
Mar 21, 2019 at 9:45 | history | edited | user186243 | CC BY-SA 4.0 |
added 22 characters in body
|
Mar 21, 2019 at 9:44 | comment | added | user186243 | @lubgr yes it can be less than zero. | |
Mar 21, 2019 at 9:43 | comment | added | lubgr |
Can index be less than zero, too?
|
|
S Mar 21, 2019 at 9:39 | history | suggested | lubgr | CC BY-SA 4.0 |
Improve readability through indentation
|
Mar 21, 2019 at 9:37 | comment | added | Juho | Would you be able to also post a small driver program that shows a few cases for expected output? | |
Mar 21, 2019 at 9:32 | review | Suggested edits | |||
S Mar 21, 2019 at 9:39 | |||||
Mar 21, 2019 at 8:40 | review | First posts | |||
Mar 21, 2019 at 9:49 | |||||
Mar 21, 2019 at 8:37 | history | asked | user186243 | CC BY-SA 4.0 |