Mercurial > hg > octave-lyh
comparison liboctave/dColVector.h @ 10364:96ed7c629bbd
remove dangerous pointer-acquiring Array ctors
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Fri, 26 Feb 2010 12:05:48 +0100 |
parents | a0728e81ed25 |
children | 4d1fc073fbb7 |
comparison
equal
deleted
inserted
replaced
10363:a0728e81ed25 | 10364:96ed7c629bbd |
---|---|
101 { Array<double>::resize (n, 1, rfv); } | 101 { Array<double>::resize (n, 1, rfv); } |
102 | 102 |
103 void clear (octave_idx_type n) | 103 void clear (octave_idx_type n) |
104 { Array<double>::clear (n, 1); } | 104 { Array<double>::clear (n, 1); } |
105 | 105 |
106 private: | |
107 | |
108 ColumnVector (double *d, octave_idx_type l) : MArray<double> (d, l, 1) { } | |
109 }; | 106 }; |
110 | 107 |
111 // Publish externally used friend functions. | 108 // Publish externally used friend functions. |
112 | 109 |
113 extern OCTAVE_API ColumnVector real (const ComplexColumnVector& a); | 110 extern OCTAVE_API ColumnVector real (const ComplexColumnVector& a); |