diff liboctave/fNDArray.cc @ 9743:26abff55f6fe

optimize bsxfun for common built-in operations
author Jaroslav Hajek <highegg@gmail.com>
date Tue, 20 Oct 2009 10:47:22 +0200
parents b4fdfee405b5
children ef4c4186cb47
line wrap: on
line diff
--- a/liboctave/fNDArray.cc	Mon Oct 19 19:17:49 2009 -0700
+++ b/liboctave/fNDArray.cc	Tue Oct 20 10:47:22 2009 +0200
@@ -43,6 +43,8 @@
 #include "oct-fftw.h"
 #include "oct-locbuf.h"
 
+#include "bsxfun-defs.cc"
+
 FloatNDArray::FloatNDArray (const charNDArray& a)
   : MArrayN<float> (a.dims ())
 {
@@ -1090,6 +1092,9 @@
 NDND_CMP_OPS (FloatNDArray, FloatNDArray)
 NDND_BOOL_OPS (FloatNDArray, FloatNDArray)
 
+BSXFUN_STDOP_DEFS_MXLOOP (FloatNDArray)
+BSXFUN_STDREL_DEFS_MXLOOP (FloatNDArray)
+
 /*
 ;;; Local Variables: ***
 ;;; mode: C++ ***