Post Reply 
PPL: element-wise operations on Vector
04-25-2016, 10:31 AM
Post: #1
PPL: element-wise operations on Vector
In the previous firmware I was able to write
Code:

x := [1, 2, 3, 4, 5];
y := x.^2 * 9.8765;
which set y to a Vector with the square of each individual element in x.
This "dot-operator" Syntax was identical what I use in Matlab or Octave - very compact and convenient.

In the April 2016 release this is now flagged as a syntax error and I have to resort to a loop or other relatively ugly means to perform the same type of calculations (e.g. using the Matrix initialization function).

Is it correct that this feature was removed? Probably not to recover 8MB of RAM ;-)

Martin
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
PPL: element-wise operations on Vector - Martin Hepperle - 04-25-2016 10:31 AM



User(s) browsing this thread: 1 Guest(s)