Mercurial > hg > octave-nkf
diff liboctave/fDiagMatrix.cc @ 10314:07ebe522dac2
untabify liboctave C++ sources
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 11 Feb 2010 12:23:32 -0500 |
parents | 4c0cdbe0acca |
children | a0728e81ed25 |
line wrap: on
line diff
--- a/liboctave/fDiagMatrix.cc +++ b/liboctave/fDiagMatrix.cc @@ -155,7 +155,7 @@ octave_idx_type a_len = a.length (); if (a_len > 0) retval = FloatDiagMatrix (mx_inline_real_dup (a.data (), a_len), a.rows (), - a.cols ()); + a.cols ()); return retval; } @@ -166,7 +166,7 @@ octave_idx_type a_len = a.length (); if (a_len > 0) retval = FloatDiagMatrix (mx_inline_imag_dup (a.data (), a_len), a.rows (), - a.cols ()); + a.cols ()); return retval; } @@ -293,12 +293,12 @@ for (octave_idx_type i = 0; i < len; i++) { if (elem (i, i) == 0.0) - { - info = -1; - return *this; - } + { + info = -1; + return *this; + } else - retval.elem (i, i) = 1.0 / elem (i, i); + retval.elem (i, i) = 1.0 / elem (i, i); } return retval; @@ -389,12 +389,12 @@ for (octave_idx_type i = 0; i < a.rows (); i++) { for (octave_idx_type j = 0; j < a.cols (); j++) - { - if (i == j) - os << " " /* setw (field_width) */ << a.elem (i, i); - else - os << " " /* setw (field_width) */ << 0.0; - } + { + if (i == j) + os << " " /* setw (field_width) */ << a.elem (i, i); + else + os << " " /* setw (field_width) */ << 0.0; + } os << "\n"; } return os;