Dear Greg,

Thank you for your email.

> In MATLAB, the elementwise operations are probably
> used fairly infrequently. But numpy arrays are often
> used to vectorise what are otherwise scalar operations,
> in which case elementwise operations are used almost
> exclusively.

Your assessment of pointwise operators in MATLAB is incorrect. The
pointwise operators in MATLAB are used heavily to vectorise the scalar
operations, exactly the same as what you describe in numpy. Recently,
the MATLAB JIT has become good enough that looping is fast, however,
the pointwise operators remain "the MATLAB way" of programming.

-- 
Sébastien Loisel
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to