Mercurial > hg > octave-nkf
diff src/pr-output.cc @ 6008:0f5bc819fdb8
[project @ 2006-09-27 15:34:28 by jwe]
author | jwe |
---|---|
date | Wed, 27 Sep 2006 15:34:28 +0000 |
parents | 76cfea89e4e7 |
children | a104f362b5d4 |
line wrap: on
line diff
--- a/src/pr-output.cc +++ b/src/pr-output.cc @@ -2206,6 +2206,20 @@ } template <class T> +static inline T +abs (T x) +{ + return x; +} + +#define INSTANTIATE_ABS(T) template static inline T abs (T x) + +INSTANTIATE_ABS (unsigned int); +INSTANTIATE_ABS (unsigned short); +INSTANTIATE_ABS (unsigned long); +INSTANTIATE_ABS (unsigned long long); + +template <class T> void octave_print_internal (std::ostream& os, const intNDArray<T>& nda, bool pr_as_read_syntax, int extra_indent)