<div dir="ltr">Hello,<div><br></div><div>Brijesh here. Abhinav and I work together on Scilab2c. </div><div><br></div><div>1)Will a completely rewritten scilab2c in 5.5.2 solve the issues we are facing?</div><div><br></div><div>2) Can you please explain in a little more detail as to how the suggested approach works in Scilab 6 and why not in 5.5.2. </div><div><br></div><div>3)Would switching from 5.5.2 to 6 help us?</div><div><br></div><div>Sysdiag, orth, pca and svd to name a few functions that are problematic. </div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span style="font-size:12.8px">With Regards,</span><div style="font-size:12.8px">Brijesh Gupta C R</div></div></div></div>
<br><div class="gmail_quote">On Wed, Sep 6, 2017 at 7:13 PM, Clément David <span dir="ltr"><<a href="mailto:Clement.David@esi-group.com" target="_blank">Clement.David@esi-group.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Abhinav,<br>
<br>
Nice to have someone interested in scilab2c. Currently there is no active maintainer, feel free to<br>
contribute to it.<br>
<br>
> 1) To write a new function, we always have to decide the output sizes according to scalar inputs<br>
> or size of input matrix. But, if our output size depends on an element which is a part of matrix,<br>
> what can we do to assign the output size accordingly.<br>
<br>
The current code generation need a C-like arguments representation for the Scilab function to<br>
generate the good corresponding C function call. If you wish to have a more dynamic behavior to<br>
define the outputs argument you should probably need to serialize/deserialize them in some way to a<br>
raw vector.<br>
<br>
> 2) There are few functions whose output size has no relation to input matrix sizes, or they don't<br>
> follow any regular pattern. For example, they depend on rank of input matrix or something else.<br>
> For such functions, is there any work around to estimate the size first and assign accordingly in<br>
> the Tool Initialisation part.<br>
<br>
No currently in the Scilab2C code and with my limited understanding, there is no way to compute the<br>
number of / size of the arguments. This approach however is fully valid and is partially implemented<br>
in the Scilab 6 analysis pass. A completely rewritten Scilab2C could then use the propagated size /<br>
types constraints to handle theses dynamic functions. Could you give me a function you wish to add ?<br>
<br>
Thanks,<br>
<br>
--<br>
Clément<br>
______________________________<wbr>_________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/<wbr>mailman/listinfo/users</a><br>
</blockquote></div><br></div>