numere-org / NumeRe

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

Add an optional step width to the range operator #33

Closed raphael-sys closed 1 year ago

raphael-sys commented 1 year ago

DESCRIPTION

What does your feature request improve on? Please describe. It would be helpful to have a range operator with a specified step width instead of the default 1 step width.

Describe the solution you'd like So far I can select a table range using test() = myTable(1:20) I would expect the new behaviour to allow a more flexibel selection like test() = myTable(1:2:20) where only every second element (1, 3, 5, ...) would be selected.

Additional context Currently mostly needed for tables and clusters, but I would expect the range operator to (hopefully) be a generic one and therefore this improvement might come in handy in other cases, too.

(Do not write below this line)


DEVS' SECTION

ANALYSIS

(Describe, what's the issue and which changes have to be made)

IMPLEMENTATION

(see also our Wiki for implementation guidelines)

DOCUMENTATION

(see also our Wiki for further information)

TESTS

(Describe, which tests you performed and their outcome)

raphael-sys commented 1 year ago

Can already be solved using the following syntax myTable({1:2:20})

raphael-sys commented 1 year ago

Add appropriate help entry to documentation is now a separate issue #34