diff liboctave/fNDArray.cc @ 9513:9f870f73ab7d

implement built-in diff
author Jaroslav Hajek <highegg@gmail.com>
date Tue, 11 Aug 2009 09:08:12 +0200
parents c6edba80dfae
children 0ce82753dd72
line wrap: on
line diff
--- a/liboctave/fNDArray.cc	Mon Aug 10 15:18:41 2009 -0400
+++ b/liboctave/fNDArray.cc	Tue Aug 11 09:08:12 2009 +0200
@@ -742,6 +742,12 @@
 }
 
 FloatNDArray
+FloatNDArray::diff (octave_idx_type order, int dim) const
+{
+  return do_mx_diff_op<FloatNDArray> (*this, dim, order, mx_inline_diff);
+}
+
+FloatNDArray
 FloatNDArray::concat (const FloatNDArray& rb, const Array<octave_idx_type>& ra_idx)
 {
   if (rb.numel () > 0)