<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title></title>
</head>
<body style="font-family:Arial;font-size:14px">
<p>When I say ineficient, I mean that kind of behavior:<br>
<br>
--> tic;repmat(uint8(0),10000,10000);toc<br>
ans =<br>
<br>
1.622535<br>
<br>
compared to proposed implementation:<br>
<br>
--> tic;a=zeros(10000,10000,"uint8");toc<br>
ans =<br>
<br>
0.063472<br>
<br>
S.<br>
<br>
Quoting Stéphane Mottelet <<a href="mailto:stephane.mottelet@utc.fr">stephane.mottelet@utc.fr</a>>:</p>
<blockquote style="border-left:2px solid blue;margin-left:2px;padding-left:12px;" type="cite">
<p>Le 05/09/2019 à 08:55, Lamy Alain a écrit :</p>
<blockquote cite="mid:8F232902ADB4E14EB16789FB7006FC847293A83B@TW-MBX-P01.cnesnet.ad.cnes.fr" type="cite">
<div class="WordSection1">
<p class="MsoNormal"><span lang="FR" style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Hi,</span></p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<p class="MsoNormal"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>I’m not convinced the new syntax: ones(n, m, “boolean”) is a good idea or is necessary because it makes “integer” (“constant”) and “boolean” 2 identical types.</span></p>
</div>
</blockquote>
Sorry Alain can you explain it further ?<br>
<blockquote cite="mid:8F232902ADB4E14EB16789FB7006FC847293A83B@TW-MBX-P01.cnesnet.ad.cnes.fr" type="cite">
<div class="WordSection1">
<p class="MsoNormal"> </p>
<p> </p>
<p class="MsoNormal"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>There is a simple way to do the same :</span></p>
<p> </p>
<p class="MsoNormal"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>repmat(%t, n, m)</span></p>
</div>
</blockquote>
<p>Yeah, there are many other (ineficient) ways, but the average user would appreciate to have one and only one function (here "zeros") to initialize a matrix regardless is type.</p>
<blockquote cite="mid:8F232902ADB4E14EB16789FB7006FC847293A83B@TW-MBX-P01.cnesnet.ad.cnes.fr" type="cite">
<div class="WordSection1">
<p class="MsoNormal"> </p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
<p class="MsoNormal"><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Alain</span></p>
<p> </p>
<p class="MsoNormal"> </p>
<p> </p>
<p> </p>
</div>
<br>
<fieldset class="mimeAttachmentHeader">
<pre class="moz-quote-pre" wrap="">
_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users">https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users</a>
</pre></fieldset>
</blockquote>
<pre class="moz-signature" cols="72">
--
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
<a class="moz-txt-link-freetext" href="https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.utc.fr/~mottelet">http://www.utc.fr/~mottelet</a>
</pre></blockquote>
<p><br>
<br></p>
</body>
</html>