* Bugs 15838 15839 15842 16452 16454 fixed: gsort() for all sparse in all modes 84/21484/5
authorSamuel GOUGEON <sgougeon@free.fr>
Wed, 3 Jun 2020 01:23:54 +0000 (03:23 +0200)
committerClément DAVID <clement.david@esi-group.com>
Thu, 4 Jun 2020 18:50:23 +0000 (20:50 +0200)
commit5b9a84907b7efdb574bd37166cc8acf4506d4243
tree4d0c714ee87e2d5b6af2d22db47be121351f645c
parent232df83155f4f47b3db4da519a252f511926a69b
* Bugs 15838 15839 15842 16452 16454 fixed: gsort() for all sparse in all modes

  http://bugzilla.scilab.org/15839 : gsort() for sparse: only vectors of
                          doubles could be sorted, and only in "g" mode,
                          and without multi-level sorting. Now,
     * Any 2D array of doubles can be sorted in "g" mode (not only vectors).
     * Any array of doubles can be sorted in any other r, c, lr, lc mode.
     * Any boolean array can be sorted in any g, r, c, lr, lc mode.

  http://bugzilla.scilab.org/15838 : [..,K]=gsort(): K missed indices of zeros.
  http://bugzilla.scilab.org/15842 : unique(sparseMatrix) yielded an error.
  http://bugzilla.scilab.org/16452 : setdiff(sparse([1 3 0 2]), sparse([3 7])) wrong
  http://bugzilla.scilab.org/15842 : gsort(Sparse) with NaN => error

--> test_run elementary_functions gsort*
   TMPDIR = C:\Users\I\AppData\Local\Temp\SCI_TMP_4540_1271

   001/007 - [elementary_functions] gsort_sparse................passed
   002/007 - [elementary_functions] gsort_multilevel_text.......passed
   003/007 - [elementary_functions] gsort_multilevel_polynomials passed
   004/007 - [elementary_functions] gsort_multilevel_numbers....passed
   005/007 - [elementary_functions] gsort_multilevel_complex....passed
   006/007 - [elementary_functions] gsort_boolean...............passed
   007/007 - [elementary_functions] gsort.......................passed
   --------------------------------------------------------------------------
 ans  =
  T

Change-Id: I0be52e6f9416ad7e7279ad9f7a8eb9db941d7ac0
scilab/CHANGES.md
scilab/modules/elementary_functions/help/en_US/searchandsort/gsort.xml
scilab/modules/elementary_functions/help/ru_RU/searchandsort/gsort.xml [new file with mode: 0644]
scilab/modules/elementary_functions/macros/%b_gsort.sci
scilab/modules/elementary_functions/macros/%sp_gsort.sci
scilab/modules/elementary_functions/macros/%spb_gsort.sci [new file with mode: 0644]
scilab/modules/elementary_functions/tests/nonreg_tests/bug_15842.tst [new file with mode: 0644]
scilab/modules/elementary_functions/tests/nonreg_tests/bug_16452.tst [new file with mode: 0644]
scilab/modules/elementary_functions/tests/nonreg_tests/bug_16454.tst [new file with mode: 0644]
scilab/modules/elementary_functions/tests/unit_tests/gsort_boolean.tst
scilab/modules/elementary_functions/tests/unit_tests/gsort_sparse.tst