diff src/ls-mat4.cc @ 11586:12df7854fa7c

strip trailing whitespace from source files
author John W. Eaton <jwe@octave.org>
date Thu, 20 Jan 2011 17:24:59 -0500 (2011-01-20)
parents fd0a3ac60b0e
children 72c96de7a403
line wrap: on
line diff
--- a/src/ls-mat4.cc
+++ b/src/ls-mat4.cc
@@ -109,7 +109,7 @@
 }
 
 int
-read_mat_file_header (std::istream& is, bool& swap, int32_t& mopt, 
+read_mat_file_header (std::istream& is, bool& swap, int32_t& mopt,
                       int32_t& nr, int32_t& nc,
                       int32_t& imag, int32_t& len,
                       int quiet)
@@ -358,7 +358,7 @@
               data.xelem(i) = Complex (dtmp[i], ctmp[i]);
             read_mat_binary_data (is, ctmp, prec, 1, swap, flt_fmt);
 
-            SparseComplexMatrix smc = SparseComplexMatrix (data, r, c, 
+            SparseComplexMatrix smc = SparseComplexMatrix (data, r, c,
                                                            nr_new, nc_new);
 
             tc = order ? smc.transpose () : smc;
@@ -435,12 +435,12 @@
   return retval;
 }
 
-// Save the data from TC along with the corresponding NAME on stream OS 
+// Save the data from TC along with the corresponding NAME on stream OS
 // in the MatLab version 4 binary format.
 
 bool
 save_mat_binary_data (std::ostream& os, const octave_value& tc,
-                      const std::string& name) 
+                      const std::string& name)
 {
   int32_t mopt = 0;
 
@@ -452,7 +452,7 @@
   mopt += 1000 * float_format_to_mopt_digit (flt_fmt);
 
   os.write (reinterpret_cast<char *> (&mopt), 4);
-  
+
   octave_idx_type len;
   int32_t nr = tc.rows ();
 
@@ -498,14 +498,14 @@
 
       octave_idx_type nrow = chm.rows ();
       octave_idx_type ncol = chm.cols ();
-        
+
       OCTAVE_LOCAL_BUFFER (double, buf, ncol*nrow);
-        
+
       for (octave_idx_type i = 0; i < nrow; i++)
         {
           std::string tstr = chm.row_as_string (i);
           const char *s = tstr.data ();
-          
+
           for (octave_idx_type j = 0; j < ncol; j++)
             buf[j*nrow+i] = static_cast<double> (*s++ & 0x00FF);
         }