Mercurial > hg > octave-nkf
changeset 9783:119d97db51f0
avoid repeated table init in bsxfun
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Sun, 08 Nov 2009 21:14:23 +0100 |
parents | eead00a7df05 |
children | f786dca09f79 |
files | src/ChangeLog src/DLD-FUNCTIONS/bsxfun.cc |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2009-11-08 Jaroslav Hajek <highegg@gmail.com> + + * DLD-FUNCTIONS/bsxfun.cc: Add missing copyright. + (fill_table): Mark table as initialized. + 2009-11-06 Jaroslav Hajek <highegg@gmail.com> * pt-assign.cc (tree_multi_assignment::rvalue): Don't skip zero-length
--- a/src/DLD-FUNCTIONS/bsxfun.cc +++ b/src/DLD-FUNCTIONS/bsxfun.cc @@ -1,6 +1,7 @@ /* Copyright (C) 2007, 2008, 2009 David Bateman +Copyright (C) 2009 VZLU Prague This file is part of Octave. @@ -149,6 +150,8 @@ // For bools, we register and/or. REGISTER_OP_HANDLER (bsxfun_builtin_and, btyp_bool, boolNDArray, bsxfun_and); REGISTER_OP_HANDLER (bsxfun_builtin_or, btyp_bool, boolNDArray, bsxfun_or); + + filled = true; } static octave_value