Mercurial > hg > octave-lyh
comparison liboctave/CColVector.h @ 532:2ca256b77602
[project @ 1994-07-20 19:56:55 by jwe]
author | jwe |
---|---|
date | Wed, 20 Jul 1994 19:56:55 +0000 |
parents | 38cb88095913 |
children | 714fd17fca28 |
comparison
equal
deleted
inserted
replaced
531:1be78be437c7 | 532:2ca256b77602 |
---|---|
34 | 34 |
35 extern "C++" { | 35 extern "C++" { |
36 | 36 |
37 class ComplexColumnVector : public Array<Complex> | 37 class ComplexColumnVector : public Array<Complex> |
38 { | 38 { |
39 friend class ColumnVector; | |
39 friend class ComplexRowVector; | 40 friend class ComplexRowVector; |
41 friend class ComplexMatrix; | |
40 | 42 |
41 public: | 43 public: |
42 | 44 |
43 ComplexColumnVector (void) : Array<Complex> () { } | 45 ComplexColumnVector (void) : Array<Complex> () { } |
44 ComplexColumnVector (int n) : Array<Complex> (n) { } | 46 ComplexColumnVector (int n) : Array<Complex> (n) { } |
142 Complex max (void) const; | 144 Complex max (void) const; |
143 | 145 |
144 // i/o | 146 // i/o |
145 | 147 |
146 friend ostream& operator << (ostream& os, const ComplexColumnVector& a); | 148 friend ostream& operator << (ostream& os, const ComplexColumnVector& a); |
147 friend ostream& operator >> (ostream& is, ComplexColumnVector& a); | 149 friend istream& operator >> (istream& is, ComplexColumnVector& a); |
148 | 150 |
149 #define KLUDGE_VECTORS | 151 #define KLUDGE_VECTORS |
150 #define TYPE Complex | 152 #define TYPE Complex |
151 #define KL_VEC_TYPE ComplexColumnVector | 153 #define KL_VEC_TYPE ComplexColumnVector |
152 #include "mx-kludge.h" | 154 #include "mx-kludge.h" |
153 #undef KLUDGE_VECTORS | 155 #undef KLUDGE_VECTORS |
154 #undef TYPE | 156 #undef TYPE |
155 #undef KL_VEC_TYPE | 157 #undef KL_VEC_TYPE |
156 | 158 |
157 private: | 159 // private: |
158 | 160 // XXX FIXME XXX -- why does it not work to make this private, with |
161 // ColumnVector declared as a friend of ComplexColumnVector? It seems | |
162 // to work for the similar case with Matrix/ComplexMatrix. Hmm... | |
159 ComplexColumnVector (Complex *d, int l) : Array<Complex> (d, l) { } | 163 ComplexColumnVector (Complex *d, int l) : Array<Complex> (d, l) { } |
160 }; | 164 }; |
161 | 165 |
162 } // extern "C++" | 166 } // extern "C++" |
163 | 167 |