comparison liboctave/sparse-sort.cc @ 7470:ada435261879

eliminate unnecessary explicit template instantiations
author John W. Eaton <jwe@octave.org>
date Tue, 12 Feb 2008 15:44:42 -0500
parents 845ca0affec0
children 06b9903a029b
comparison
equal deleted inserted replaced
7469:360b4f7684fd 7470:ada435261879
47 else if (tmp > 0) 47 else if (tmp > 0)
48 return false; 48 return false;
49 return (i->r < j->r); 49 return (i->r < j->r);
50 } 50 }
51 51
52 // Instantiate the sparse sorting class
53 template class octave_sort<octave_sparse_sort_idxl *>;
54
55 // Need to know the original order of the sorted indexes in 52 // Need to know the original order of the sorted indexes in
56 // sparse assignments, and this class does that 53 // sparse assignments, and this class does that
57 bool 54 bool
58 octave_idx_vector_comp (octave_idx_vector_sort* i, 55 octave_idx_vector_comp (octave_idx_vector_sort* i,
59 octave_idx_vector_sort* j) 56 octave_idx_vector_sort* j)
60 { 57 {
61 return (i->i < j->i); 58 return (i->i < j->i);
62 } 59 }
63 60
64 // Instantiate the sparse index sorting class
65 template class octave_sort<octave_idx_vector_sort *>;
66
67 // Instantiate the sorting class of octave_idx_type, need in MUL macro
68 template class octave_sort<octave_idx_type>;
69
70 /* 61 /*
71 ;;; Local Variables: *** 62 ;;; Local Variables: ***
72 ;;; mode: C++ *** 63 ;;; mode: C++ ***
73 ;;; End: *** 64 ;;; End: ***
74 */ 65 */