Mercurial > hg > octave-lyh
changeset 6018:bda649f500bd
[project @ 2006-10-02 17:23:18 by jwe]
author | jwe |
---|---|
date | Mon, 02 Oct 2006 17:23:19 +0000 |
parents | b124a912d28b |
children | f717f9e37d8f |
files | liboctave/ChangeLog liboctave/CmplxDET.cc liboctave/dbleDET.cc src/ChangeLog src/mex.cc src/pr-output.cc |
diffstat | 6 files changed, 28 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,8 @@ +2006-10-02 John W. Eaton <jwe@octave.org> + + * dbleDET.cc (DET::initialize2): Ensure arg to log10 is double. + * CmplxDET.cc (ComplexDET::initialize2): Likewise. + 2006-09-22 David Bateman <dbateman@free.fr> * MatrixType.h (MatrixType::MatrixType(const SparseComplexMatrix&)):
--- a/liboctave/CmplxDET.cc +++ b/liboctave/CmplxDET.cc @@ -66,7 +66,7 @@ { if (c10 != 0.0) { - double etmp = e10 / log10 (2); + double etmp = e10 / log10 (2.0); e2 = static_cast<int> (xround (etmp)); etmp -= e2; c2 = c10 * xexp2 (etmp);
--- a/liboctave/dbleDET.cc +++ b/liboctave/dbleDET.cc @@ -64,7 +64,7 @@ { if (c10 != 0.0) { - double etmp = e10 / log10 (2); + double etmp = e10 / log10 (2.0); e2 = static_cast<int> (xround (etmp)); etmp -= e2; c2 = c10 * xexp2 (etmp);
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,9 +1,18 @@ -2006-09-29 John W. Eaton <jwe@octave.org> +2006-10-02 John W. Eaton <jwe@octave.org> * version.h (OCTAVE_VERSION): Now 2.9.9. (OCTAVE_API_VERSION): Now api-v22. (OCTAVE_RELEASE_DATE): Now 2006-09-29. + * pr-output.cc (pr_plus_format): Use "inline" instead of "static + inline" for template functions to avoid problems when not + compiling with g++. + + * mex.cc (call_mex): Delete elements of argout. + From Kai Labusch <labusch@inb.uni-luebeck.de>. + +2006-09-29 John W. Eaton <jwe@octave.org> + * DLD-FUNCTIONS/spfind.cc (sparse_find_non_zero_elem_idx): Leading dimension is NR, not NC.
--- a/src/mex.cc +++ b/src/mex.cc @@ -2874,6 +2874,12 @@ retval(i) = mxArray::as_octave_value (argout[i]); } + // Is it always safe to do this? Are users required to use one of + // the mxCreateXYZ functions to create the values that are put in + // the output array? + for (int i = 0; i < nout; i++) + delete argout[i]; + // Clean up mex resources. unwind_protect::run_frame ("call_mex");
--- a/src/pr-output.cc +++ b/src/pr-output.cc @@ -1379,7 +1379,7 @@ } template <class T> -static inline void +/* static */ inline void pr_plus_format (std::ostream& os, const T& val) { if (val > T (0)) @@ -1628,7 +1628,7 @@ } template <> -static inline void +/* static */ inline void pr_plus_format<> (std::ostream& os, const Complex& c) { double rp = c.real (); @@ -2141,7 +2141,7 @@ #undef PRINT_CONV template <class T> -static inline void +/* static */ inline void pr_int (std::ostream& os, const T& d, int fw = 0) { size_t sz = d.byte_size(); @@ -2206,13 +2206,13 @@ } template <class T> -static inline T +/* static */ inline T abs (T x) { return x; } -#define INSTANTIATE_ABS(T) template static inline T abs (T x) +#define INSTANTIATE_ABS(T) template /* static */ inline T abs (T x) INSTANTIATE_ABS (unsigned int); INSTANTIATE_ABS (unsigned short);