Re: [fpc-devel] Nested functions in numlib

2017-04-05 Thread Michael Schnell
Performance-wise, moreover for some tasks (such as Matrix multiplication) with modern multi-core machines parallel calculation could increase performance greatly. This can be done e.g. by using a thread pool. (I once did a thread pool implementation based on TThread, but I suppose there are

Re: [fpc-devel] Nested functions in numlib

2017-04-04 Thread Werner Pamler
Am 04.04.2017 um 03:28 schrieb Marco van de Voort: Did you test performance? Repeated access to parent frame in tight loops might be suboptimal. Could maybe be helped with some pointer work? Right, I should have done that before asking... Here are the results of a test running the original

Re: [fpc-devel] Nested functions in numlib

2017-04-04 Thread Marco van de Voort
In our previous episode, Marco van de Voort said: > > Is there a chance that such a patch would be accepted? > > Did you test performance? Repeated access to parent frame in tight loops > might be suboptimal. Could maybe be helped with some pointer work? (no it can't be helped with pointer work,

Re: [fpc-devel] Nested functions in numlib

2017-04-03 Thread Marco van de Voort
In our previous episode, Werner Pamler said: > Is there a chance that such a patch would be accepted? Did you test performance? Repeated access to parent frame in tight loops might be suboptimal. Could maybe be helped with some pointer work? ___

[fpc-devel] Nested functions in numlib

2017-04-03 Thread Werner Pamler
In addition to the incomplete gamma function I am planning to add a series of other special functions useful for statistical calculations, among them the incomplete beta function and its inverse. Calculation of the inverse incomplete beta function usually is performed in the literature by