Mercurial > forge
comparison main/fixed/src/fixedCRowVector.h @ 9481:d84d2fea3c90 octave-forge
Re-enable compilation of fixed package
author | jordigh |
---|---|
date | Wed, 22 Feb 2012 22:07:33 +0000 |
parents | f8d77845533f |
children | 7b7cd174847c |
comparison
equal
deleted
inserted
replaced
9480:954f2f00d782 | 9481:d84d2fea3c90 |
---|---|
51 { | 51 { |
52 public: | 52 public: |
53 | 53 |
54 FixedComplexRowVector (void) : MArray<FixedPointComplex> () { } | 54 FixedComplexRowVector (void) : MArray<FixedPointComplex> () { } |
55 | 55 |
56 explicit FixedComplexRowVector (int n) : MArray<FixedPointComplex> (n) { } | 56 explicit FixedComplexRowVector (int n) : MArray<FixedPointComplex> (dim_vector (1, n)) { } |
57 | 57 |
58 FixedComplexRowVector (int n, FixedPointComplex val) : | 58 FixedComplexRowVector (int n, FixedPointComplex val) : |
59 MArray<FixedPointComplex> (n, val) { } | 59 MArray<FixedPointComplex> (dim_vector (1, n), val) { } |
60 | 60 |
61 FixedComplexRowVector (const MArray<int> &is, const MArray<int> & ds); | 61 FixedComplexRowVector (const MArray<int> &is, const MArray<int> & ds); |
62 | 62 |
63 FixedComplexRowVector (const RowVector &is, const RowVector &ds); | 63 FixedComplexRowVector (const RowVector &is, const RowVector &ds); |
64 | 64 |
238 // i/o | 238 // i/o |
239 | 239 |
240 friend std::ostream& operator << (std::ostream& os, const FixedComplexRowVector& a); | 240 friend std::ostream& operator << (std::ostream& os, const FixedComplexRowVector& a); |
241 friend std::istream& operator >> (std::istream& is, FixedComplexRowVector& a); | 241 friend std::istream& operator >> (std::istream& is, FixedComplexRowVector& a); |
242 | 242 |
243 private: | 243 void resize (octave_idx_type n, |
244 | 244 const FixedPointComplex& rfv = Array<FixedPointComplex>::resize_fill_value ()) |
245 FixedComplexRowVector (FixedPointComplex *d, int l) : MArray<FixedPointComplex> (d, l) { } | 245 { |
246 Array<FixedPointComplex>::resize (dim_vector (1, n), rfv); | |
247 } | |
246 }; | 248 }; |
247 | 249 |
248 FixedPointComplex operator * (const FixedComplexRowVector& a, | 250 FixedPointComplex operator * (const FixedComplexRowVector& a, |
249 const FixedComplexColumnVector& b); | 251 const FixedComplexColumnVector& b); |
250 | 252 |