diff src/DLD-FUNCTIONS/rand.cc @ 5355:cf44c749ba52

[project @ 2005-05-18 11:43:37 by jwe]
author jwe
date Wed, 18 May 2005 11:43:38 +0000
parents 4c8a2e4e0717
children 109fdf7b3dcb
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/rand.cc	Wed May 18 02:48:35 2005 +0000
+++ b/src/DLD-FUNCTIONS/rand.cc	Wed May 18 11:43:38 2005 +0000
@@ -219,6 +219,8 @@
 
  gen_matrix:
 
+  dims.chop_trailing_singletons ();
+
   return octave_rand::nd_array (dims);
 }