Menu

#315 Add functions logtoidx() and idxtolog() to matop mode

v1.1.x
closed
None
v1.1.1
New Functionality
2018-04-26
2018-04-14
Erik Hänel
No

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.

Discussion

  • Erik Hänel

    Erik Hänel - 2018-04-14
    • status: open --> accepted
     
  • Erik Hänel

    Erik Hänel - 2018-04-14
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,9 @@
     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:**
    +
    +**Implementation:**
    +
    +**Documenation:**
    +
    +**Tests:**
    
    • status: accepted --> analyzing
     
  • Erik Hänel

    Erik Hänel - 2018-04-14
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,6 +1,7 @@
     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:**
    
    • status: analyzing --> implementing
     
  • Erik Hänel

    Erik Hänel - 2018-04-14
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -4,7 +4,9 @@
     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:**
    
    • status: implementing --> testing
     
  • Erik Hänel

    Erik Hänel - 2018-04-26
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -10,3 +10,4 @@
     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.
    
    • status: testing --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB