comparison src/ov-cell.cc @ 7503:8c32f95c2639

convert mapper functions to new format
author David Bateman <dbateman@free.fr>
date Wed, 20 Feb 2008 04:22:50 -0500
parents c8d362c69013
children c195bd0a5c64
comparison
equal deleted inserted replaced
7502:2ce6b4258e96 7503:8c32f95c2639
827 octave_idx_type nel = dv.numel (); 827 octave_idx_type nel = dv.numel ();
828 828
829 for (octave_idx_type i = 0; i < nel; i++) 829 for (octave_idx_type i = 0; i < nel; i++)
830 { 830 {
831 std::ostringstream buf; 831 std::ostringstream buf;
832 int digits = static_cast<int> (floor (log10 (static_cast<double> (nel)) + 1.0)); 832 int digits = static_cast<int> (::floor (::log10 (static_cast<double> (nel)) + 1.0));
833 buf << "_" << std::setw (digits) << std::setfill ('0') << i; 833 buf << "_" << std::setw (digits) << std::setfill ('0') << i;
834 std::string s = buf.str (); 834 std::string s = buf.str ();
835 835
836 if (! add_hdf5_data (data_hid, tmp.elem (i), s.c_str (), "", false, 836 if (! add_hdf5_data (data_hid, tmp.elem (i), s.c_str (), "", false,
837 save_as_floats)) 837 save_as_floats))