Mercurial > hg > octave-nkf
comparison liboctave/CSparse.cc @ 10550:c48b7048e720
style fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 23 Apr 2010 14:43:41 -0400 |
parents | 4d1fc073fbb7 |
children | c2041adcf234 |
comparison
equal
deleted
inserted
replaced
10549:95c3e38098bf | 10550:c48b7048e720 |
---|---|
7405 { | 7405 { |
7406 octave_idx_type nc = a.cols (); | 7406 octave_idx_type nc = a.cols (); |
7407 | 7407 |
7408 // add one to the printed indices to go from | 7408 // add one to the printed indices to go from |
7409 // zero-based to one-based arrays | 7409 // zero-based to one-based arrays |
7410 for (octave_idx_type j = 0; j < nc; j++) { | 7410 for (octave_idx_type j = 0; j < nc; j++) |
7411 octave_quit (); | 7411 { |
7412 for (octave_idx_type i = a.cidx(j); i < a.cidx(j+1); i++) { | 7412 octave_quit (); |
7413 os << a.ridx(i) + 1 << " " << j + 1 << " "; | 7413 for (octave_idx_type i = a.cidx(j); i < a.cidx(j+1); i++) |
7414 octave_write_complex (os, a.data(i)); | 7414 { |
7415 os << "\n"; | 7415 os << a.ridx(i) + 1 << " " << j + 1 << " "; |
7416 } | 7416 octave_write_complex (os, a.data(i)); |
7417 } | 7417 os << "\n"; |
7418 } | |
7419 } | |
7418 | 7420 |
7419 return os; | 7421 return os; |
7420 } | 7422 } |
7421 | 7423 |
7422 std::istream& | 7424 std::istream& |