comparison liboctave/Array.cc @ 10636:c170eb1c067f

remove deprecated Array method
author Jaroslav Hajek <highegg@gmail.com>
date Mon, 17 May 2010 11:52:59 +0200
parents f5f6bde82e19
children 8645b7087859
comparison
equal deleted inserted replaced
10635:d1978e7364ad 10636:c170eb1c067f
345 if (k < 0 || k > dimensions.numel (2)) 345 if (k < 0 || k > dimensions.numel (2))
346 gripe_index_out_of_range (3, 3, k+1, dimensions.numel (2)); 346 gripe_index_out_of_range (3, 3, k+1, dimensions.numel (2));
347 #endif 347 #endif
348 348
349 return Array<T> (*this, dim_vector (r, c), k*p, k*p + p); 349 return Array<T> (*this, dim_vector (r, c), k*p, k*p + p);
350 }
351
352 template <class T>
353 Array<T>
354 Array<T>::linearize (void) const
355 {
356 octave_idx_type n = numel ();
357 return Array<T> (*this, dim_vector (n, 1), 0, n);
358 } 350 }
359 351
360 template <class T> 352 template <class T>
361 Array<T> 353 Array<T>
362 Array<T>::linear_slice (octave_idx_type lo, octave_idx_type up) const 354 Array<T>::linear_slice (octave_idx_type lo, octave_idx_type up) const