B[:] makes it an inplace assignment, so that the array B references is actually 
reused. As you can see, @devec has little benefit for a single function, but if 
you have many functions chained together you will see the benefits.

B[:] = sin(pi - x) .* e.^x

Reply via email to