Mercurial > hg > octave-terminal
changeset 8415:fa12c67683d3
Reszie third arg of __voronoi__ before retuning it
author | David Bateman <dbateman@free.fr> |
---|---|
date | Mon, 22 Dec 2008 22:16:27 +0100 |
parents | 36c8a3696ae7 |
children | 0a56e5c21c29 |
files | src/ChangeLog src/DLD-FUNCTIONS/__voronoi__.cc |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-12-22 David Bateman <dbateman@free.fr> + + * DLD-FUNCTIONS/__voronoi__.cc (F__voronoi__): Resize AtInf array + before returning it. + 2008-12-12 David Bateman <dbateman@free.fr> * DLD-FUNCTIONS/chol.cc (Fcholinv): Add test.
--- a/src/DLD-FUNCTIONS/__voronoi__.cc +++ b/src/DLD-FUNCTIONS/__voronoi__.cc @@ -165,7 +165,7 @@ boolMatrix AtInf (np, 1); for (i = 0; i < np; i++) AtInf(i) = false; - octave_value_list F; + octave_value_list F (np, octave_value ()); k = 0; i = 0; @@ -220,6 +220,7 @@ retval(0) = v; retval(1) = C; + AtInf.resize (r, 1); retval(2) = AtInf; // free long memory