# HG changeset patch # User jwe # Date 769205675 0 # Node ID 6f08c8b8f62f71d39ab5199df4bec9a24134b779 # Parent 0ce34c2fc3d541acb6944d5bd258261a225c4d45 [project @ 1994-05-17 20:14:06 by jwe] diff --git a/liboctave/idx-vector.h b/liboctave/idx-vector.h --- 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 diff --git a/src/tc-assign.cc b/src/tc-assign.cc --- 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)