Mercurial > hg > octave-lyh
diff src/DLD-FUNCTIONS/colamd.cc @ 6484:1ece41c144a6
[project @ 2007-04-04 03:22:16 by jwe]
author | jwe |
---|---|
date | Wed, 04 Apr 2007 03:22:17 +0000 |
parents | 080c08b192d8 |
children | 93c65f2a5668 |
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/colamd.cc +++ b/src/DLD-FUNCTIONS/colamd.cc @@ -693,18 +693,19 @@ } if (nargin == 2) - if (args(1).is_string ()) - { - std::string str = args(1).string_value (); - if (str.find("C") == 0 || str.find("c") == 0) - is_sym = false; - } - else - { - error ("etree: second argument must be a string"); - return retval; - } - + { + if (args(1).is_string ()) + { + std::string str = args(1).string_value (); + if (str.find ("C") == 0 || str.find ("c") == 0) + is_sym = false; + } + else + { + error ("etree: second argument must be a string"); + return retval; + } + } // column elimination tree post-ordering (reuse variables) OCTAVE_LOCAL_BUFFER (octave_idx_type, etree, n_col + 1);