comparison src/ov-base-mat.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
parents 57632dea2446
children 72c96de7a403
comparison
equal deleted inserted replaced
11585:1473d0cf86d2 11586:12df7854fa7c
265 // Clear cache. 265 // Clear cache.
266 clear_cached_info (); 266 clear_cached_info ();
267 } 267 }
268 268
269 template <class MT> 269 template <class MT>
270 MatrixType 270 MatrixType
271 octave_base_matrix<MT>::matrix_type (const MatrixType& _typ) const 271 octave_base_matrix<MT>::matrix_type (const MatrixType& _typ) const
272 { 272 {
273 delete typ; 273 delete typ;
274 typ = new MatrixType (_typ); 274 typ = new MatrixType (_typ);
275 return *typ; 275 return *typ;
276 } 276 }
277 277
278 template <class MT> 278 template <class MT>
389 389
390 template <class MT> 390 template <class MT>
391 octave_value 391 octave_value
392 octave_base_matrix<MT>::resize (const dim_vector& dv, bool fill) const 392 octave_base_matrix<MT>::resize (const dim_vector& dv, bool fill) const
393 { 393 {
394 MT retval (matrix); 394 MT retval (matrix);
395 if (fill) 395 if (fill)
396 retval.resize (dv, 0); 396 retval.resize (dv, 0);
397 else 397 else
398 retval.resize (dv); 398 retval.resize (dv);
399 return retval; 399 return retval;
400 } 400 }
401 401
402 template <class MT> 402 template <class MT>
403 bool 403 bool
459 return octave_value (); 459 return octave_value ();
460 } 460 }
461 461
462 template <class MT> 462 template <class MT>
463 bool 463 bool
464 octave_base_matrix<MT>::fast_elem_insert (octave_idx_type n, 464 octave_base_matrix<MT>::fast_elem_insert (octave_idx_type n,
465 const octave_value& x) 465 const octave_value& x)
466 { 466 {
467 if (n < matrix.numel ()) 467 if (n < matrix.numel ())
468 { 468 {
469 // Don't use builtin_type () here to avoid an extra VM call. 469 // Don't use builtin_type () here to avoid an extra VM call.