changeset 416:6f08c8b8f62f

[project @ 1994-05-17 20:14:06 by jwe]
author jwe
date Tue, 17 May 1994 20:14:35 +0000
parents 0ce34c2fc3d5
children 7479f36341f9
files liboctave/idx-vector.h src/tc-assign.cc
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/idx-vector.h
+++ b/liboctave/idx-vector.h
@@ -62,6 +62,7 @@
   int ones_count (void) const;
 
   void sort (void);
+  void sort_uniq (void);
 
 // i/o
 
--- a/src/tc-assign.cc
+++ b/src/tc-assign.cc
@@ -1853,7 +1853,7 @@
 void
 tree_constant_rep::delete_rows (idx_vector& iv)
 {
-  iv.sort ();
+  iv.sort_uniq ();
   int num_to_delete = iv.length ();
 
   if (type_tag == matrix_constant)
@@ -2023,7 +2023,7 @@
 void
 tree_constant_rep::delete_columns (idx_vector& jv)
 {
-  jv.sort ();
+  jv.sort_uniq ();
   int num_to_delete = jv.length ();
 
   if (type_tag == matrix_constant)