Mercurial > hg > octave-nkf
comparison liboctave/CMatrix.cc @ 9469:c6edba80dfae
sanity checks for loading sparse matrices
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 29 Jul 2009 12:15:27 -0400 |
parents | be6867ba8104 |
children | 0ce82753dd72 |
comparison
equal
deleted
inserted
replaced
9468:5af462716bff | 9469:c6edba80dfae |
---|---|
3644 { | 3644 { |
3645 Complex tmp; | 3645 Complex tmp; |
3646 for (octave_idx_type i = 0; i < nr; i++) | 3646 for (octave_idx_type i = 0; i < nr; i++) |
3647 for (octave_idx_type j = 0; j < nc; j++) | 3647 for (octave_idx_type j = 0; j < nc; j++) |
3648 { | 3648 { |
3649 tmp = octave_read_complex (is); | 3649 tmp = octave_read_value<Complex> (is); |
3650 if (is) | 3650 if (is) |
3651 a.elem (i, j) = tmp; | 3651 a.elem (i, j) = tmp; |
3652 else | 3652 else |
3653 goto done; | 3653 goto done; |
3654 } | 3654 } |