diff liboctave/oct-rand.h @ 4543:79df15d4470c

[project @ 2003-10-18 03:53:52 by jwe]
author jwe
date Sat, 18 Oct 2003 03:53:53 +0000
parents b738d1a02adb
children 23b37da9fd5b
line wrap: on
line diff
--- a/liboctave/oct-rand.h
+++ b/liboctave/oct-rand.h
@@ -26,6 +26,7 @@
 #include <string>
 
 #include "dMatrix.h"
+#include "dNDArray.h"
 
 struct
 octave_rand
@@ -54,6 +55,10 @@
   // major order.
   static Matrix matrix (int r, int c);
 
+  // Return an N-dimensional array of numbers from the sequence,
+  // filled in column major order.
+  static NDArray nd_array (const dim_vector& dims);
+
   // Return an array of numbers from the sequence.
   static Array<double> vector (int n);
 };