Mercurial > octave-nkf
comparison liboctave/dNDArray.h @ 10312:cbc402e64d83
untabify liboctave header files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 11 Feb 2010 12:14:48 -0500 |
parents | 4c0cdbe0acca |
children | 83fa590b8a09 |
comparison
equal
deleted
inserted
replaced
10311:a217e1d74353 | 10312:cbc402e64d83 |
---|---|
50 NDArray (const NDArray& a) : MArrayN<double> (a) { } | 50 NDArray (const NDArray& a) : MArrayN<double> (a) { } |
51 | 51 |
52 NDArray (const Matrix& a) : MArrayN<double> (a) { } | 52 NDArray (const Matrix& a) : MArrayN<double> (a) { } |
53 | 53 |
54 NDArray (const Array<octave_idx_type>& a, bool zero_based = false, | 54 NDArray (const Array<octave_idx_type>& a, bool zero_based = false, |
55 bool negative_to_nan = false); | 55 bool negative_to_nan = false); |
56 | 56 |
57 template <class U> | 57 template <class U> |
58 NDArray (const MArrayN<U>& a) : MArrayN<double> (a) { } | 58 NDArray (const MArrayN<U>& a) : MArrayN<double> (a) { } |
59 | 59 |
60 template <class U> | 60 template <class U> |
137 Matrix matrix_value (void) const; | 137 Matrix matrix_value (void) const; |
138 | 138 |
139 NDArray squeeze (void) const { return MArrayN<double>::squeeze (); } | 139 NDArray squeeze (void) const { return MArrayN<double>::squeeze (); } |
140 | 140 |
141 static void increment_index (Array<octave_idx_type>& ra_idx, | 141 static void increment_index (Array<octave_idx_type>& ra_idx, |
142 const dim_vector& dimensions, | 142 const dim_vector& dimensions, |
143 int start_dimension = 0); | 143 int start_dimension = 0); |
144 | 144 |
145 static octave_idx_type compute_index (Array<octave_idx_type>& ra_idx, | 145 static octave_idx_type compute_index (Array<octave_idx_type>& ra_idx, |
146 const dim_vector& dimensions); | 146 const dim_vector& dimensions); |
147 | 147 |
148 // i/o | 148 // i/o |
149 | 149 |
150 friend OCTAVE_API std::ostream& operator << (std::ostream& os, const NDArray& a); | 150 friend OCTAVE_API std::ostream& operator << (std::ostream& os, const NDArray& a); |
151 friend OCTAVE_API std::istream& operator >> (std::istream& is, NDArray& a); | 151 friend OCTAVE_API std::istream& operator >> (std::istream& is, NDArray& a); |