comparison liboctave/boolNDArray.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 b6b65e71049b
comparison
equal deleted inserted replaced
9742:9f8ff01abc65 9743:26abff55f6fe
31 #include "CNDArray.h" 31 #include "CNDArray.h"
32 #include "mx-base.h" 32 #include "mx-base.h"
33 #include "lo-ieee.h" 33 #include "lo-ieee.h"
34 #include "mx-op-defs.h" 34 #include "mx-op-defs.h"
35 #include "MArray-defs.h" 35 #include "MArray-defs.h"
36
37 #include "bsxfun-defs.cc"
36 38
37 // unary operations 39 // unary operations
38 40
39 boolNDArray 41 boolNDArray
40 boolNDArray::operator ! (void) const 42 boolNDArray::operator ! (void) const
182 do_mm_inplace_op<boolNDArray, boolNDArray> (a, b, mx_inline_or2, "operator |="); 184 do_mm_inplace_op<boolNDArray, boolNDArray> (a, b, mx_inline_or2, "operator |=");
183 185
184 return a; 186 return a;
185 } 187 }
186 188
189 BSXFUN_OP_DEF_MXLOOP (and, boolNDArray, mx_inline_and)
190 BSXFUN_OP_DEF_MXLOOP (or, boolNDArray, mx_inline_or)
191
187 /* 192 /*
188 ;;; Local Variables: *** 193 ;;; Local Variables: ***
189 ;;; mode: C++ *** 194 ;;; mode: C++ ***
190 ;;; End: *** 195 ;;; End: ***
191 */ 196 */