Mercurial > hg > octave-nkf
diff src/ls-hdf5.cc @ 10325:8b3cfc1288e2
implement lazy index conversions
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 16 Feb 2010 15:28:53 +0100 |
parents | 57a59eae83cc |
children | 2271261f088a |
line wrap: on
line diff
--- a/src/ls-hdf5.cc +++ b/src/ls-hdf5.cc @@ -67,6 +67,7 @@ #include "variables.h" #include "version.h" #include "dMatrix.h" +#include "ov-lazy-idx.h" #include "ls-utils.h" #include "ls-hdf5.h" @@ -753,7 +754,8 @@ // FIXME: diagonal & permutation matrices currently don't know how to save // themselves, so we convert them first to normal matrices using A = A(:,:). // This is a temporary hack. - if (val.is_diag_matrix () || val.is_perm_matrix ()) + if (val.is_diag_matrix () || val.is_perm_matrix () + || val.type_id () == octave_lazy_index::static_type_id ()) val = val.full_value (); std::string t = val.type_name();