Add the function logtoidx() (logical to index) and idxtolog() (index to logical) to the matop mode. These functions are used to convert results from logical expressions like A==B to index values like the find() function in MATLAB.
Analysis:
The implementation of these two functions is quite straightforward.
Implementation:
The functions were implemented as requested. Implementation tests were passed successfully. An additional change was made: caches, which are used in matop mode as target for the result and which are passed with empty argument parentheses are now cleared completely before the result is written (i.e. they are overwritten completely now).
Documenation:
The new functionality was documented in the changes log, the functions were added to the syntax element lists and to the language files.
Tests:
The functions were added to the automatic tests. No deviations detected. New functionality implemented successfully.
Anonymous
Diff:
Diff:
Diff:
Diff: