comparison src/ov-bool-mat.h @ 11586:12df7854fa7c

strip trailing whitespace from source files
author John W. Eaton <jwe@octave.org>
date Thu, 20 Jan 2011 17:24:59 -0500
parents fd0a3ac60b0e
children 72c96de7a403
comparison
equal deleted inserted replaced
11585:1473d0cf86d2 11586:12df7854fa7c
66 66
67 octave_bool_matrix (const boolMatrix& bm, const MatrixType& t) 67 octave_bool_matrix (const boolMatrix& bm, const MatrixType& t)
68 : octave_base_matrix<boolNDArray> (bm, t) { } 68 : octave_base_matrix<boolNDArray> (bm, t) { }
69 69
70 octave_bool_matrix (const boolNDArray& bm, const idx_vector& cache) 70 octave_bool_matrix (const boolNDArray& bm, const idx_vector& cache)
71 : octave_base_matrix<boolNDArray> (bm) 71 : octave_base_matrix<boolNDArray> (bm)
72 { 72 {
73 set_idx_cache (cache); 73 set_idx_cache (cache);
74 } 74 }
75 75
76 octave_bool_matrix (const octave_bool_matrix& bm) 76 octave_bool_matrix (const octave_bool_matrix& bm)
77 : octave_base_matrix<boolNDArray> (bm) { } 77 : octave_base_matrix<boolNDArray> (bm) { }
83 83
84 type_conv_info numeric_conversion_function (void) const; 84 type_conv_info numeric_conversion_function (void) const;
85 85
86 octave_base_value *try_narrowing_conversion (void); 86 octave_base_value *try_narrowing_conversion (void);
87 87
88 idx_vector index_vector (void) const 88 idx_vector index_vector (void) const
89 { return idx_cache ? *idx_cache : set_idx_cache (idx_vector (matrix)); } 89 { return idx_cache ? *idx_cache : set_idx_cache (idx_vector (matrix)); }
90 90
91 builtin_type_t builtin_type (void) const { return btyp_bool; } 91 builtin_type_t builtin_type (void) const { return btyp_bool; }
92 92
93 bool is_bool_matrix (void) const { return true; } 93 bool is_bool_matrix (void) const { return true; }
161 char_array_value (bool = false) const 161 char_array_value (bool = false) const
162 { 162 {
163 charNDArray retval (dims ()); 163 charNDArray retval (dims ());
164 164
165 octave_idx_type nel = numel (); 165 octave_idx_type nel = numel ();
166 166
167 for (octave_idx_type i = 0; i < nel; i++) 167 for (octave_idx_type i = 0; i < nel; i++)
168 retval(i) = static_cast<char>(matrix(i)); 168 retval(i) = static_cast<char>(matrix(i));
169 169
170 return retval; 170 return retval;
171 } 171 }
196 196
197 bool load_ascii (std::istream& is); 197 bool load_ascii (std::istream& is);
198 198
199 bool save_binary (std::ostream& os, bool& save_as_floats); 199 bool save_binary (std::ostream& os, bool& save_as_floats);
200 200
201 bool load_binary (std::istream& is, bool swap, 201 bool load_binary (std::istream& is, bool swap,
202 oct_mach_info::float_format fmt); 202 oct_mach_info::float_format fmt);
203 203
204 #if defined (HAVE_HDF5) 204 #if defined (HAVE_HDF5)
205 bool save_hdf5 (hid_t loc_id, const char *name, bool save_as_floats); 205 bool save_hdf5 (hid_t loc_id, const char *name, bool save_as_floats);
206 206