deprecating support for HDF5 files in load/save

John W. Eaton jwe at octave.org
Thu Mar 5 10:00:00 CST 2009


On  5-Mar-2009, Jaroslav Hajek wrote:

| On Thu, Mar 5, 2009 at 9:35 AM, John W. Eaton <jwe at octave.org> wrote:
| > I'd like for us to consider deprecating support for HDF5 files in the
| > load and save functions, at least as it is currently implemented.
| > Some reasons for this are
| >
| >  * Saving in the HDF5 format does not currently work for diagonal or
| >    permutation matrices.
| >
| 
| They're converted to full matrices when saved.

Is that working?  Here's what I see:

  octave:1> x = diag ([1,2,3]);
  octave:2> save -hdf5 foo.mat x
  error: octave_base_value::save_binary(): wrong type argument `diagonal matrix'
  error: save: error while writing `x' to hdf5 file
  warning: save: no such variable `x'

jwe



More information about the Octave-maintainers mailing list