diff src/interp-core/pt-jit.cc @ 15135:bd6bb87e2bea

Support sin, cos, and exp with matrix arguments in JIT * src/interp-core/jit-typeinfo.cc (jit_operation::generate): Remove unused parameter name. (jit_typeinfo::jit_typeinfo): Create any_call function. (jit_typeinfo::register_generic): Implement. * src/interp-core/jit-typeinfo.h (jit_typeinfo): New field, any_call. * src/interp-core/pt-jit.cc: New test.
author Max Brister <max@2bass.com>
date Thu, 09 Aug 2012 15:45:59 -0500
parents d29f2583cf7b
children 6ea86e1d0f5f
line wrap: on
line diff
--- a/src/interp-core/pt-jit.cc
+++ b/src/interp-core/pt-jit.cc
@@ -1940,4 +1940,12 @@
 %! m2(2, :) = 1:1001;
 %! assert (m, m2);
 
+%!test
+%! m = [1 2 3];
+%! for i=1:1001
+%!   m = sin (m);
+%!   break;
+%! endfor
+%! assert (m == sin ([1  2 3]));
+
 */