diff liboctave/bsxfun.h @ 13005:4061106b1c4b

Enable automatic bsxfun for power operators * bsxfun.h: Put #include guards * int8NDArray.cc: Define bsxfun power operator for integral types. * int16NDArray.cc: Ditto. * int32NDArray.cc: Ditto. * int64NDArray.cc: fDitto. * uint8ADArray.cc: Ditto. * uint16NDArray.cc: Ditto. * uint32NDArray.cc: Ditto. * uint64NDArray.cc: Ditto. * mx-inlines.cc: Let the compiler decide to use Octave's own integral pow. * op-int.h: Call bsxfun for integral operators. * xpow.cc: Call bsxfun for float operators.
author Jordi Gutiérrez Hermoso <jordigh@gmail.com>
date Wed, 24 Aug 2011 23:12:28 -0500
parents d9d65c3017c3
children 61be447052c3
line wrap: on
line diff
--- a/liboctave/bsxfun.h
+++ b/liboctave/bsxfun.h
@@ -19,6 +19,8 @@
 <http://www.gnu.org/licenses/>.
 
 */
+#if !defined (bsxfun_h)
+#define bsxfun_h 1
 
 #include <algorithm>
 
@@ -38,3 +40,5 @@
     }
   return true;
 }
+
+#endif