<html>
    <head>
      <base href="http://bugzilla.scilab.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:stephane.mottelet@utc.fr" title="Stéphane MOTTELET <stephane.mottelet@utc.fr>"> <span class="fn">Stéphane MOTTELET</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - error using hypermatrix"
   href="http://bugzilla.scilab.org/show_bug.cgi?id=11405">bug 11405</a>
                <br><br>
                ---------- Bug Summary ----------- <br>error using hypermatrix <br><br>

          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>stephane.mottelet@utc.fr
           </td>
         </tr></table>
      <p>
        <div>

            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - error using hypermatrix"
   href="http://bugzilla.scilab.org/show_bug.cgi?id=11405#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - error using hypermatrix"
   href="http://bugzilla.scilab.org/show_bug.cgi?id=11405">bug 11405</a>
              from <span class="vcard"><a class="email" href="mailto:stephane.mottelet@utc.fr" title="Stéphane MOTTELET <stephane.mottelet@utc.fr>"> <span class="fn">Stéphane MOTTELET</span></a>
</span></b>
        <pre>This bug is related to <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Matrix indexing is not coherent with MATLAB convention"
   href="show_bug.cgi?id=14487">bug #14487</a>, which should be fixed in a near future. In that case, the non-regression test which has been written for this bug
(#11405) should be rewritten, as it only checks that an hypermatrix can be used as a subscript. The problem is that until <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Matrix indexing is not coherent with MATLAB convention"
   href="show_bug.cgi?id=14487">bug #14487</a> is fixed, when x
is not a scalar nor a vector and A is an hypermatrix, x(A) is always returned as a column vector regardless of the dimensions of A, e.g. 

--> x
 x  = 

   1.   2.
   3.   4.


--> A=ones(2,2,2)
 A  = 

(:,:,1)

   1.   1.
   1.   1.
(:,:,2)

   1.   1.
   1.   1.


--> x(A)
 ans  =

   1.
   1.
   1.
   1.
   1.
   1.
   1.
   1.

In the bug report, It was pointed out two problems: 1-it was impossible to use an hypermatrix subscript, 2-the expected behavior was the one of
Matlab, i.e. in that case the output should be an hypermatrix. Hence, if <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Matrix indexing is not coherent with MATLAB convention"
   href="show_bug.cgi?id=14487">bug #14487</a> is fixed, then the non-regression test of <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - error using hypermatrix"
   href="show_bug.cgi?id=11405">bug #11405</a> will be
modified in order to verify that hypermatrix subscripts are accepted and that the size of the output is also correct.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>