Mercurial > octave-nkf
comparison liboctave/dSparse.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 |
---|---|
7563 { | 7563 { |
7564 octave_idx_type nc = a.cols (); | 7564 octave_idx_type nc = a.cols (); |
7565 | 7565 |
7566 // add one to the printed indices to go from | 7566 // add one to the printed indices to go from |
7567 // zero-based to one-based arrays | 7567 // zero-based to one-based arrays |
7568 for (octave_idx_type j = 0; j < nc; j++) { | 7568 for (octave_idx_type j = 0; j < nc; j++) |
7569 octave_quit (); | 7569 { |
7570 for (octave_idx_type i = a.cidx(j); i < a.cidx(j+1); i++) { | 7570 octave_quit (); |
7571 os << a.ridx(i) + 1 << " " << j + 1 << " "; | 7571 for (octave_idx_type i = a.cidx(j); i < a.cidx(j+1); i++) |
7572 octave_write_double (os, a.data(i)); | 7572 { |
7573 os << "\n"; | 7573 os << a.ridx(i) + 1 << " " << j + 1 << " "; |
7574 } | 7574 octave_write_double (os, a.data(i)); |
7575 } | 7575 os << "\n"; |
7576 } | |
7577 } | |
7576 | 7578 |
7577 return os; | 7579 return os; |
7578 } | 7580 } |
7579 | 7581 |
7580 std::istream& | 7582 std::istream& |