help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

do exp(-0.5*z.*z) in .oct file?


From: Michael Creel
Subject: do exp(-0.5*z.*z) in .oct file?
Date: Thu, 24 Jul 2008 15:01:54 +0200

Hello all,
I'm trying to write the C++ code for an .oct that will perform the
equivalent of  exp(-0.5*z.*z), where z is a vector or matrix. I think
that Matrix.map will let me do the exp() to all elements, but I can't
figure out how to do the element-by-element squaring.
Thanks, Michael


reply via email to

[Prev in Thread] Current Thread [Next in Thread]