comparison liboctave/array/DiagArray2.h @ 29646:3e8bc8bee8e9

liboctave/array: Add visibility flags to functions declared in headers (bug #60567). * liboctave/array/boolMatrix.h, liboctave/array/boolNDArray.h, liboctave/array/boolSparse.h, liboctave/array/CColVector.h, liboctave/array/CDiagMatrix.h, liboctave/array/chMatrix.h, liboctave/array/chNDArray.h, liboctave/array/CMatrix.h, liboctave/array/CNDArray.h, liboctave/array/CRowVector.h, liboctave/array/CSparse.h, liboctave/array/dColVector.h, liboctave/array/dDiagMatrix.h, liboctave/array/DiagArray2.h, liboctave/array/dim-vector.h, liboctave/array/dMatrix.h, liboctave/array/dNDArray.h, liboctave/array/dRowVector.h, liboctave/array/fCColVector.h, liboctave/array/fCDiagMatrix.h, liboctave/array/fCMatrix.h, liboctave/array/fCNDArray.h, liboctave/array/fColVector.h, liboctave/array/fCRowVector.h, liboctave/array/fDiagMatrix.h, liboctave/array/fMatrix.h, liboctave/array/fNDArray.h, liboctave/array/fRowVector.h, liboctave/array/idx-vector.h, liboctave/array/intNDArray.h, liboctave/array/MArray.h, liboctave/array/MDiagArray2.h, liboctave/array/PermMatrix.h: Add visibility flags to functions that are declared (but not defined) in headers.
author Markus Mützel <markus.muetzel@gmx.de>
date Mon, 10 May 2021 23:27:38 +0200
parents aef11bb4e6d1
children 32f4357ac8d9
comparison
equal deleted inserted replaced
29645:eb49c0c02a54 29646:3e8bc8bee8e9
102 102
103 bool isempty (void) const { return numel () == 0; } 103 bool isempty (void) const { return numel () == 0; }
104 104
105 int ndims (void) const { return 2; } 105 int ndims (void) const { return 2; }
106 106
107 Array<T> extract_diag (octave_idx_type k = 0) const; 107 OCTAVE_API Array<T> extract_diag (octave_idx_type k = 0) const;
108 108
109 DiagArray2<T> build_diag_matrix () const 109 DiagArray2<T> build_diag_matrix () const
110 { 110 {
111 return DiagArray2<T> (array_value ()); 111 return DiagArray2<T> (array_value ());
112 } 112 }
117 T elem (octave_idx_type r, octave_idx_type c) const 117 T elem (octave_idx_type r, octave_idx_type c) const
118 { 118 {
119 return (r == c) ? Array<T>::elem (r) : T (0); 119 return (r == c) ? Array<T>::elem (r) : T (0);
120 } 120 }
121 121
122 T& elem (octave_idx_type r, octave_idx_type c); 122 OCTAVE_API T& elem (octave_idx_type r, octave_idx_type c);
123 123
124 T dgelem (octave_idx_type i) const 124 T dgelem (octave_idx_type i) const
125 { return Array<T>::elem (i); } 125 { return Array<T>::elem (i); }
126 126
127 T& dgelem (octave_idx_type i) 127 T& dgelem (octave_idx_type i)
153 { return Array<T>::xelem (i); } 153 { return Array<T>::xelem (i); }
154 154
155 T dgxelem (octave_idx_type i) const 155 T dgxelem (octave_idx_type i) const
156 { return Array<T>::xelem (i); } 156 { return Array<T>::xelem (i); }
157 157
158 void resize (octave_idx_type n, octave_idx_type m, const T& rfv); 158 OCTAVE_API void resize (octave_idx_type n, octave_idx_type m, const T& rfv);
159 void resize (octave_idx_type n, octave_idx_type m) 159 void resize (octave_idx_type n, octave_idx_type m)
160 { 160 {
161 resize (n, m, Array<T>::resize_fill_value ()); 161 resize (n, m, Array<T>::resize_fill_value ());
162 } 162 }
163 163
164 DiagArray2<T> transpose (void) const; 164 OCTAVE_API DiagArray2<T> transpose (void) const;
165 DiagArray2<T> hermitian (T (*fcn) (const T&) = nullptr) const; 165 OCTAVE_API DiagArray2<T> hermitian (T (*fcn) (const T&) = nullptr) const;
166 166
167 Array<T> array_value (void) const; 167 OCTAVE_API Array<T> array_value (void) const;
168 168
169 const T * data (void) const { return Array<T>::data (); } 169 const T * data (void) const { return Array<T>::data (); }
170 170
171 const T * fortran_vec (void) const { return Array<T>::fortran_vec (); } 171 const T * fortran_vec (void) const { return Array<T>::fortran_vec (); }
172 172