[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Update and questions regarding vecorization
From: |
Oliver Heimlich |
Subject: |
Re: Update and questions regarding vecorization |
Date: |
Thu, 22 Jun 2017 18:42:02 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
Hi Joel,
On 22.06.2017 16:29, Joel Dahne wrote:
> Oliver Heimlich writes:
>> On 21.06.2017 16:55, Joel Dahne wrote:
>> When you want to check all mapping functions (=functions that are
>> applied element-wise on non-scalar inputs) on a large scale, I would
>> suggest that we improve ITF1788: ITF1788 currently generates a long
>> list of assert statements to test arithmetic correctness of most
>> functions in the package with many test cases. The test cases are
>> defined in the test/*.itl files. That could be improved as follows:
>> ITF1788 generates an Octave script, which could then generate test code
>> for Octave. The numeric test data could be stored in *.mat files and
>> could then be used to (1) loop over the test data for scalar test cases
>> of interval functions like the assert statements do today, to (2) test
>> the mapping functions on the vectors of all test values at once, and (3)
>> reshape the test data into more dimensions to also test vectorization in
>> higher dimensions, and (4) check broadcasting.
>>
>> Do you want me to look into this during the weekend? When you are
>> unfamiliar with ITF1788, it could be distracting to start this side
>> project yourself now.
> I think what you propose is a good idea. Then we can generate lots of
> tests for all relevant functions. This would help us to catch bugs like
> the one for sinus.
>
> If you can take a look at it that's probably a good idea. From what I
> understand it's mainly a matter of adding more ways to parse the test
> data?
I have sketched my idea in this Github issue, feel free to add comments.
I am going to look into this during the weekend.
https://github.com/oheim/ITF1788/issues/8
Just assume that you will receive a large amount of vectorization tests
as soon as I am finished. ;-)
Oliver