[Scilab-users] vector operation replacing for loop

Samuel Gougeon sgougeon at free.fr
Thu Nov 8 21:04:58 CET 2018


Le 08/11/2018 à 20:24, Heinz Nabielek a écrit :
> Great. Thanks. Should have thought of it myself...
>
> Still: is there a vector way?

Didn't you read Guylaine's answer?
She proposes a tricky algorithm. Unfortunately, it cannot be used for 
very long Z input, due to memory considerations.
I am afraid that there is no other better "vectorized" solution.

This is why a builtin function like filter() -- that aims to do what you 
want -- is required.

BR




More information about the users mailing list