changeset 8914:354179c24c79

fix hdf5 saving of diag & perm matrices
author Jaroslav Hajek <highegg@gmail.com>
date Thu, 05 Mar 2009 21:50:59 +0100
parents 35cd375d4bb3
children 485eabc0cfec
files src/ChangeLog src/ls-hdf5.cc
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Mar 05 13:50:25 2009 -0500
+++ b/src/ChangeLog	Thu Mar 05 21:50:59 2009 +0100
@@ -1,3 +1,7 @@
+2009-03-05  Jaroslav Hajek  <highegg@gmail.com>
+	
+	* ls-hdf5.cc (add_hdf5_data): Handle diag & perm matrices.
+
 2009-03-05  John W. Eaton  <jwe@octave.org>
 
 	* pt-cell.cc, pt-cell.h (tree_cell::dup): Now const.
--- a/src/ls-hdf5.cc	Thu Mar 05 13:50:25 2009 -0500
+++ b/src/ls-hdf5.cc	Thu Mar 05 21:50:59 2009 +0100
@@ -749,7 +749,7 @@
   // 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 ())
-    val = val.do_index_op (octave_value_list (2, octave_value::magic_colon_t));
+    val = val.full_value ();
 
   std::string t = val.type_name();