diff src/mappers.cc @ 4025:cfb762dc9259

[project @ 2002-08-09 06:32:15 by jwe]
author jwe
date Fri, 09 Aug 2002 06:32:16 +0000
parents 13905c3a24af
children 2550915214e1
line wrap: on
line diff
--- a/src/mappers.cc
+++ b/src/mappers.cc
@@ -429,8 +429,8 @@
 \n\
 @example\n\
 @group\n\
-isinf ([13, Inf, NaN])\n\
-     @result{} [ 0, 1, 0 ]\n\
+isinf ([13, Inf, NA, NaN])\n\
+     @result{} [ 0, 1, 0, 0 ]\n\
 @end group\n\
 @end example\n\
 @end deftypefn");
@@ -447,6 +447,35 @@
 Return 1 for characters that are lower case letters.\n\
 @end deftypefn");
 
+  DEFUN_MAPPER (isna, 0, octave_is_NA, octave_is_NA, 0, 0, 0, 0.0, 0.0, 0,
+    "-*- texinfo -*-\n\
+@deftypefn {Mapping Function} {} isna (@var{x})\n\
+Return 1 for elements of @var{x} that are NA (missing) values and zero\n\
+otherwise. For example,\n\
+\n\
+@example\n\
+@group\n\
+is_NA ([13, Inf, NA, NaN])\n\
+     @result{} [ 0, 0, 1, 0 ]\n\
+@end group\n\
+@end example\n\
+@end deftypefn");
+
+  DEFUN_MAPPER (is_nan_or_na, 0, octave_is_NaN_or_NA,
+		octave_is_NaN_or_NA, 0, 0, 0, 0.0, 0.0, 0,
+    "-*- texinfo -*-\n\
+@deftypefn {Mapping Function} {} is_nan_or_na (@var{x})\n\
+Return 1 for elements of @var{x} that are NaN or NA (missing) values\n\
+and zero otherwise. For example,\n\
+\n\
+@example\n\
+@group\n\
+is_NAN_or_NA ([13, Inf, NA, NaN])\n\
+     @result{} [ 0, 0, 1, 1 ]\n\
+@end group\n\
+@end example\n\
+@end deftypefn");
+
   DEFUN_MAPPER (isnan, 0, xisnan, xisnan, 0, 0, 0, 0.0, 0.0, 0,
     "-*- texinfo -*-\n\
 @deftypefn {Mapping Function} {} isnan (@var{x})\n\
@@ -455,8 +484,8 @@
 \n\
 @example\n\
 @group\n\
-isnan ([13, Inf, NaN])\n\
-     @result{} [ 0, 0, 1 ]\n\
+isnan ([13, Inf, NA, NaN])\n\
+     @result{} [ 0, 0, 0, 1 ]\n\
 @end group\n\
 @end example\n\
 @end deftypefn");