Mercurial > hg > octave-lyh
comparison liboctave/fRowVector.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 | 72c96de7a403 |
comparison
equal
deleted
inserted
replaced
11573:6f8ffe2c6f76 | 11574:a83bad07f7e3 |
---|---|
91 // i/o | 91 // i/o |
92 | 92 |
93 friend OCTAVE_API std::ostream& operator << (std::ostream& os, const FloatRowVector& a); | 93 friend OCTAVE_API std::ostream& operator << (std::ostream& os, const FloatRowVector& a); |
94 friend OCTAVE_API std::istream& operator >> (std::istream& is, FloatRowVector& a); | 94 friend OCTAVE_API std::istream& operator >> (std::istream& is, FloatRowVector& a); |
95 | 95 |
96 void resize (octave_idx_type n, const float& rfv = Array<float>::resize_fill_value ()) | 96 void resize (octave_idx_type n, |
97 { Array<float>::resize (1, n, rfv); } | 97 const float& rfv = Array<float>::resize_fill_value ()) |
98 { | |
99 Array<float>::resize (dim_vector (1, n), rfv); | |
100 } | |
98 | 101 |
99 void clear (octave_idx_type n) | 102 void clear (octave_idx_type n) |
100 { Array<float>::clear (1, n); } | 103 { Array<float>::clear (1, n); } |
101 | 104 |
102 }; | 105 }; |