Mercurial > hg > octave-nkf
diff liboctave/Sparse.cc @ 6817:2e7f62e52c13
[project @ 2007-08-19 19:36:40 by dbateman]
author | dbateman |
---|---|
date | Sun, 19 Aug 2007 19:36:40 +0000 |
parents | 8c89a644df8a |
children | c7484dcadd4d |
line wrap: on
line diff
--- a/liboctave/Sparse.cc +++ b/liboctave/Sparse.cc @@ -787,14 +787,14 @@ // The only valid permutations of a sparse array are [1, 2] and [2, 1]. bool fail = false; - bool transpose = false; + bool trans = false; if (perm_vec.length () == 2) { if (perm_vec(0) == 0 && perm_vec(1) == 1) /* do nothing */; else if (perm_vec(0) == 1 && perm_vec(1) == 0) - transpose = true; + trans = true; else fail = true; } @@ -805,7 +805,7 @@ (*current_liboctave_error_handler) ("permutation vector contains an invalid element"); - return transpose ? this->transpose () : *this; + return trans ? this->transpose () : *this; } template <class T>