Mercurial > hg > octave-lyh
comparison liboctave/CColVector.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 |
---|---|
130 // i/o | 130 // i/o |
131 | 131 |
132 friend OCTAVE_API std::ostream& operator << (std::ostream& os, const ComplexColumnVector& a); | 132 friend OCTAVE_API std::ostream& operator << (std::ostream& os, const ComplexColumnVector& a); |
133 friend OCTAVE_API std::istream& operator >> (std::istream& is, ComplexColumnVector& a); | 133 friend OCTAVE_API std::istream& operator >> (std::istream& is, ComplexColumnVector& a); |
134 | 134 |
135 void resize (octave_idx_type n, const Complex& rfv = Array<Complex>::resize_fill_value ()) | 135 void resize (octave_idx_type n, |
136 { Array<Complex>::resize (n, 1, rfv); } | 136 const Complex& rfv = Array<Complex>::resize_fill_value ()) |
137 { | |
138 Array<Complex>::resize (dim_vector (n, 1), rfv); | |
139 } | |
137 | 140 |
138 void clear (octave_idx_type n) | 141 void clear (octave_idx_type n) |
139 { Array<Complex>::clear (n, 1); } | 142 { Array<Complex>::clear (n, 1); } |
140 | 143 |
141 }; | 144 }; |