Mercurial > hg > octave-terminal
changeset 10636:c170eb1c067f
remove deprecated Array method
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Mon, 17 May 2010 11:52:59 +0200 |
parents | d1978e7364ad |
children | 9cd5aa83fa62 |
files | liboctave/Array.cc liboctave/Array.h liboctave/ChangeLog |
diffstat | 3 files changed, 5 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/Array.cc +++ b/liboctave/Array.cc @@ -351,14 +351,6 @@ template <class T> Array<T> -Array<T>::linearize (void) const -{ - octave_idx_type n = numel (); - return Array<T> (*this, dim_vector (n, 1), 0, n); -} - -template <class T> -Array<T> Array<T>::linear_slice (octave_idx_type lo, octave_idx_type up) const { #ifdef BOUNDS_CHECKING
--- a/liboctave/Array.h +++ b/liboctave/Array.h @@ -423,9 +423,6 @@ // Extract page: A(:,:,k+1). Array<T> page (octave_idx_type k) const; - // Give this array as a column vector: A(:). - Array<T> linearize (void) const; - // Extract a slice from this array as a column vector: A(:)(lo+1:up). // Must be 0 <= lo && up <= numel. May be up < lo. Array<T> linear_slice (octave_idx_type lo, octave_idx_type up) const;
--- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,8 @@ +2010-05-14 Jaroslav Hajek <highegg@gmail.com> + + * Array.cc (Array<T>::linearize): Remove. + * Array.h (Array<T>::linearize): Remove decl. + 2010-05-13 Jaroslav Hajek <highegg@gmail.com> * dMatrix.cc (Matrix::lssolve): Remove warnings about rank.