[Scilab-users] {EXT} need a more efficient and faster code: suggestions welcome
Heinz
heinznabielek at me.com
Wed Jan 31 09:49:35 CET 2018
Thanks Christophe- I should have thought of it myself...
I have difficulties handling the SciLab timer: how do you do this exactly?
Heinz
PS: Had you noticed that the resulting probability had been predicted by Prof Paul Hertz in Heidelberg, Mathematische Annalen, Vol 67 (1909), 387ff as early as 20 December 1908? My 'real' materials problem is much more complex, but this part shown here would determine the time consuming part.
-----Original Message-----
From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Dang Ngoc Chan, Christophe
Sent: 31 January 2018 09:36
To: Users mailing list for Scilab <users at lists.scilab.org>
Subject: Re: [Scilab-users] {EXT} need a more efficient and faster code: suggestions welcome
Hello,
The following suggestions will probably not have a drastic influence (I don't see how it could be more vectorised) but his a little thing I see:
> De : users [mailto:users-bounces at lists.scilab.org] De la part de Heinz
> Nabielek Envoyé : mercredi 31 janvier 2018 00:13
>
> MinDist=[MinDist sqrt(min(sum(DIFF.^2,2)))];
Maybe you could concatenate the squares of the distance and then compute the square root of the whole vector in the end:
sqMinDist=[sqMinDist min(sum(DIFF.^2,2))];
…
end
…
MinDist = sqrt(sqMinDist)
Hope this helps,
Regards
--
Christophe Dang Ngoc Chan
Mechanical calculation engineer
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
_______________________________________________
users mailing list
users at lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
More information about the users
mailing list