<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Le 22/01/2019 à 16:34, Stéphane
      Mottelet a écrit :<br>
    </div>
    <blockquote cite="mid:9bfed43f-66ed-a93f-61cf-d2922fa0cd24@utc.fr"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div class="moz-cite-prefix">Le 22/01/2019 à 16:25, Samuel Gougeon
        a écrit :<br>
      </div>
      <blockquote type="cite"
        cite="mid:922fed48-f7af-2d09-e468-e198310ba0af@free.fr">Hello
        Stéphane, <br>
        <br>
        Le 17/01/2019 à 08:37, Stéphane Mottelet a écrit : <br>
        <blockquote type="cite">Hello Samuel, <br>
          <br>
          I have initially voted for this behavior (sparse([]) == (  0, 
          0) zero sparse matrix ) but your remark on numerous occurences
          of "sparse([])" in scilab prevented to do so. <br>
        </blockquote>
        <br>
        Why? My remark aimed to bring the attention to existing
        occurrences and to prevent merging the commit without updating
        them, not to prevent updating them. <br>
        Then these occurrences changed your opinion and vote, not mine.
        <br>
        <br>
        Best regards <br>
        Samuel <br>
      </blockquote>
      <p>Please see comment #8:</p>
      <p>Anyway, <b>as bug #15758 is not related to sparse([]) being
          not sparse</b>, and considered the numerous side effects, I
        will restore sparse([]) == double empty matrix. <b>If you find
          necessary to have sparse([]) == sparse empty matrix, please
          file a bug/whish on BZ.</b></p>
    </blockquote>
    <br>
    Yes, and neither you -- that voted for it -- nor me did it.<br>
    And finally we agree: keeping sparse([])==[] was your decision.<br>
    Changing this could be done later if it proves to be better.<br>
    For the time being, the situation is the following:<br>
    <br>
    <b>Scilab 6.0.1</b>:<br>
    <tt>--> sparse([])</tt><tt><br>
    </tt><tt> ans  =</tt><tt><br>
    </tt><tt>    []</tt><tt><br>
    </tt><tt><br>
    </tt><tt>--> sparse([],[])</tt><tt><br>
    </tt><tt> ans  =</tt><tt><br>
    </tt><tt>(  0,  0) zero sparse matrix</tt><tt><br>
    </tt><tt><br>
    </tt><tt>--> sparse([],[],[0,2])</tt><tt><br>
    </tt><tt> ans  =</tt><tt><br>
    </tt><tt>    []</tt><br>
    <br>
    <b>Scilab 6.0.2-</b> after <a class="moz-txt-link-freetext" href="https://codereview.scilab.org/20492">https://codereview.scilab.org/20492</a> :<br>
    <tt>--> sparse([])</tt><tt>      // unchanged<br>
    </tt><tt> ans  =</tt><tt><br>
    </tt><tt>    []</tt><tt><br>
    </tt><tt><br>
    </tt><tt>--> sparse([],[])</tt><tt>   // unchanged<br>
    </tt><tt> ans  =</tt><tt><br>
    </tt><tt>(  0,  0) zero sparse matrix</tt><tt><br>
    </tt><tt><br>
    </tt><tt>--> sparse([],[],[0,2])</tt><tt>  // <b>CHANGED</b><br>
    </tt><tt> ans  =</tt><tt><br>
    </tt><tt>(  0,  0) zero sparse matrix</tt><br>
    <br>
    while i don't think that this last change is intentional.<br>
    This is what Antoine is pointing to, in
    <a class="moz-txt-link-freetext" href="https://codereview.scilab.org/20612">https://codereview.scilab.org/20612</a>.<br>
    <br>
    Samuel<br>
    <br>
  </body>
</html>