Le 05/09/2019 à 12:44, Antoine Monmayrant a écrit :
Le 05/09/2019 à 11:28, Lamy Alain a écrit :
What I didn’t like at first is to use “ones” for a boolean type.
That was also my first reaction.
When comparing the learning curve and overall ease of use of scilab
with other options (matlab,
Le 05/09/2019 à 11:28, Lamy Alain a écrit :
What I didn’t like at first is to use “ones” for a boolean type.
That was also my first reaction.
When comparing the learning curve and overall ease of use of scilab with
other options (matlab, julia, python), I always come to the conclusion
that
What I didn’t like at first is to use “ones” for a boolean type.
(although I know the 2 types are almost interchangeable in Scilab).
The existing function bool2s changes %t into 1.
So thinking about it a little more, OK for the proposed extensions of “ones”
and “zeros”.
Alain
___
+1 interested in this patch
De : users De la part de Stéphane Mottelet
Envoyé : jeudi 5 septembre 2019 08:46
À : users@lists.scilab.org
Objet : Re: [Scilab-users] Generating a boolean vector or matrix
Le 04/09/2019 à 20:19, Federico Miyara a écrit :
Stéphane,
Questions:
1) Why does it work?
When I say ineficient, I mean that kind of behavior:
--> tic;repmat(uint8(0),1,1);toc
ans =
1.622535
compared to proposed implementation:
--> tic;a=zeros(1,1,"uint8");toc
ans =
0.063472
S.
Quoting Stéphane Mottelet :
Le 05/09/2019 à 08:55, Lamy Alain a écrit :
On 05/09/2019 04:13, Stéphane Mottelet wrote:
Le 05/09/2019 à 08:55, Lamy Alain a écrit :
Hi,
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.
Sorry Alain can you explain it f
Christophe,
Thanks!
Two more questions (for anybody reading and willing to reply):
1) Is there an exclusive or function? I couldn't find it, a search leads
to the XOR mode of combining graphic pixels. It would be most useful
since it is one of the operations in the Galois field GF(2). Curren
Le 05/09/2019 à 08:55, Lamy Alain a écrit :
Hi,
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.
Sorry Alain can you explain it further ?
There is a simple way to do the same :
Hi,
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.
There is a simple way to do the same :
repmat(%t, n, m)
Alain
___
users mailing list
u