numere-org / NumeRe

Framework for numerical computations, data analysis and visualisation
https://www.numere.org
GNU General Public License v3.0
17 stars 5 forks source link

The function cmp() applied on tables does not respect indices #193

Closed numeredev closed 4 months ago

numeredev commented 4 months ago

DESCRIPTION

Describe the bug If the function cmp() is applied on only a part of a column of a table, the returned indices are with respect to the absolut index and not as a offset to the starting index. This does not correspond to the behavior provided by the direct usage of the function on some values.

To Reproduce Steps to reproduce the behavior:

  1. Create some random data set
  2. Call cmp() with some offset on the table
  3. Call cmp() without the offset on the table
  4. See same indices

Expected behavior cmp() returns the indices with respect to the offset instead of the absolute index.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

(Do not write below this line)


DEVS' SECTION

ANALYSIS

That should be includable by calculating the overall min index and add this value to the result index (if index is required).

IMPLEMENTATION STEPS

(see also our Wiki for implementation guidelines)

DOCUMENTATION STEPS

(see also our Wiki for further information)

PULL REQUEST