Mercurial > hg > octave-lyh
comparison liboctave/dColVector.h @ 11574:a83bad07f7e3
attempt better backward compatibility for Array resize functions
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 00:12:05 -0500 |
parents | 57632dea2446 |
children | 12df7854fa7c |
comparison
equal
deleted
inserted
replaced
11573:6f8ffe2c6f76 | 11574:a83bad07f7e3 |
---|---|
97 // i/o | 97 // i/o |
98 | 98 |
99 friend OCTAVE_API std::ostream& operator << (std::ostream& os, const ColumnVector& a); | 99 friend OCTAVE_API std::ostream& operator << (std::ostream& os, const ColumnVector& a); |
100 friend OCTAVE_API std::istream& operator >> (std::istream& is, ColumnVector& a); | 100 friend OCTAVE_API std::istream& operator >> (std::istream& is, ColumnVector& a); |
101 | 101 |
102 void resize (octave_idx_type n, const double& rfv = Array<double>::resize_fill_value ()) | 102 void resize (octave_idx_type n, |
103 { Array<double>::resize (n, 1, rfv); } | 103 const double& rfv = Array<double>::resize_fill_value ()) |
104 { | |
105 Array<double>::resize (dim_vector (n, 1), rfv); | |
106 } | |
104 | 107 |
105 void clear (octave_idx_type n) | 108 void clear (octave_idx_type n) |
106 { Array<double>::clear (n, 1); } | 109 { Array<double>::clear (n, 1); } |
107 | 110 |
108 }; | 111 }; |