1 страниц (5 вхождений)
sum over range is terribly slow - Сообщения
#1 Опубликовано: 28.03.2018 04:48:19
debug.sm (12 КиБ) скачан 36 раз(а).
While doing a sum on a floating-point range I have realized simple SUM(4) cannot be directly used
It requires translation of FP range into the integer range, which is basically a hack.
Doing a sum over the FP range in a loop is terribly slow - any ideas why?

While doing a sum on a floating-point range I have realized simple SUM(4) cannot be directly used
It requires translation of FP range into the integer range, which is basically a hack.
Doing a sum over the FP range in a loop is terribly slow - any ideas why?
#2 Опубликовано: 28.03.2018 05:04:43
Use Optimization --> Numeric on the function.
(R/Click on the function, select Optimization ---> Numeric.
(R/Click on the function, select Optimization ---> Numeric.
Look within!... The secret is inside you.
Best Regards
Eng. NDTM Amarasekera - Sri Lanka
#3 Опубликовано: 28.03.2018 05:38:37
WroteUse Optimization --> Numeric on the function.
(R/Click on the function, select Optimization ---> Numeric.
That worked. Thanks!
#4 Опубликовано: 28.03.2018 09:28:35
WroteDoing a sum over the FP range in a loop is terribly slow - any ideas why?
I don't see that here. "for loop" is always the winner. deeper @ kernel level.
debug [doctored].sm (12 КиБ) скачан 37 раз(а).
#5 Опубликовано: 29.03.2018 09:30:19
WroteWroteDoing a sum over the FP range in a loop is terribly slow - any ideas why?
I don't see that here. "for loop" is always the winner. deeper @ kernel level.
debug [doctored].sm (12 КиБ) скачан 37 раз(а).
AS NTDMA has suggested, Numeric Optimization did the trick. Its was purely to do with my incompetence.
1 страниц (5 вхождений)
-
Новые сообщения
-
Нет новых сообщений