diff src/data.cc @ 12905:f7a8d1dafda3

Let rand accept negative dimensions (bug #33301) * rand.cc (do_rand): Make it so that ranges, matrices, and individual arguments treat negative dimensions as zero. * data.cc (eye): Document that negative dimensions are treated as zero (rand's docstring references eye)
author Jordi Gutiérrez Hermoso <jordigh@gmail.com>
date Tue, 02 Aug 2011 10:50:11 -0500
parents a539714f3291
children 0dc4d9f1366c
line wrap: on
line diff
--- a/src/data.cc	Mon Aug 01 01:18:51 2011 +0300
+++ b/src/data.cc	Tue Aug 02 10:50:11 2011 -0500
@@ -4187,8 +4187,8 @@
 @end example\n\
 \n\
 Calling @code{eye} with no arguments is equivalent to calling it\n\
-with an argument of 1.  This odd definition is for compatibility\n\
-with @sc{matlab}.\n\
+with an argument of 1.  Any negative dimensions are treated as zero. \n\
+These odd definitions are for compatibility with @sc{matlab}.\n\
 @seealso{speye}\n\
 @end deftypefn")
 {