Mercurial > octave-nkf
diff src/ov-perm.cc @ 10315:57a59eae83cc
untabify src C++ source files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 11 Feb 2010 12:41:46 -0500 |
parents | f80c566bc751 |
children | 12884915a8e4 |
line wrap: on
line diff
--- a/src/ov-perm.cc Thu Feb 11 12:23:32 2010 -0500 +++ b/src/ov-perm.cc Thu Feb 11 12:41:46 2010 -0500 @@ -51,8 +51,8 @@ case '{': case '.': { - std::string nm = type_name (); - error ("%s cannot be indexed with %c", nm.c_str (), type[0]); + std::string nm = type_name (); + error ("%s cannot be indexed with %c", nm.c_str (), type[0]); } break; @@ -136,7 +136,7 @@ if (numel () > 0) { gripe_implicit_conversion ("Octave:array-as-scalar", - type_name (), "real scalar"); + type_name (), "real scalar"); retval = matrix (0, 0); } @@ -154,7 +154,7 @@ if (numel () > 0) { gripe_implicit_conversion ("Octave:array-as-scalar", - type_name (), "real scalar"); + type_name (), "real scalar"); retval = matrix (0, 0); } @@ -174,7 +174,7 @@ if (rows () > 0 && columns () > 0) { gripe_implicit_conversion ("Octave:array-as-scalar", - type_name (), "complex scalar"); + type_name (), "complex scalar"); retval = matrix (0, 0); } @@ -194,7 +194,7 @@ if (rows () > 0 && columns () > 0) { gripe_implicit_conversion ("Octave:array-as-scalar", - type_name (), "complex scalar"); + type_name (), "complex scalar"); retval = matrix (0, 0); } @@ -281,10 +281,10 @@ ColumnVector tmp (n); is >> tmp; if (!is) - { - error ("load: failed to load permutation matrix constant"); - success = false; - } + { + error ("load: failed to load permutation matrix constant"); + success = false; + } else { Array<octave_idx_type> pvec (n); @@ -336,21 +336,21 @@ { int nel = m.numel (); for (int i = 0; i < nel; i++) - switch (sizeof (octave_idx_type)) - { - case 8: - swap_bytes<8> (&m(i)); - break; - case 4: - swap_bytes<4> (&m(i)); - break; - case 2: - swap_bytes<2> (&m(i)); - break; - case 1: - default: - break; - } + switch (sizeof (octave_idx_type)) + { + case 8: + swap_bytes<8> (&m(i)); + break; + case 4: + swap_bytes<4> (&m(i)); + break; + case 2: + swap_bytes<2> (&m(i)); + break; + case 1: + default: + break; + } } matrix = PermMatrix (m, colp); @@ -396,7 +396,7 @@ void octave_perm_matrix::print_info (std::ostream& os, - const std::string& prefix) const + const std::string& prefix) const { matrix.print_info (os, prefix); }