1212
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
1212
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
5307
|
19 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
20 02110-1301, USA. |
1212
|
21 |
|
22 */ |
|
23 |
2006
|
24 #ifdef HAVE_CONFIG_H |
|
25 #include <config.h> |
|
26 #endif |
|
27 |
1212
|
28 // Instantiate MArrays of Complex values. |
|
29 |
1989
|
30 #include "oct-cmplx.h" |
6508
|
31 #include "f77-fcn.h" |
|
32 |
|
33 extern "C" |
|
34 { |
|
35 F77_RET_T |
|
36 F77_FUNC (xdznrm2, XDZNRM2) (const octave_idx_type&, const Complex*, |
|
37 const octave_idx_type&, double&); |
|
38 } |
1989
|
39 |
1212
|
40 #include "MArray.h" |
|
41 #include "MArray.cc" |
|
42 |
6508
|
43 template <> |
6693
|
44 OCTAVE_API double |
6508
|
45 MArray<Complex>::norm (double p) const |
|
46 { |
|
47 MARRAY_NORM_BODY (Complex, xdznrm2, XDZNRM2); |
|
48 } |
|
49 |
6108
|
50 template class OCTAVE_API MArray<Complex>; |
1212
|
51 |
1985
|
52 INSTANTIATE_MARRAY_FRIENDS (Complex) |
1989
|
53 |
|
54 #include "MArray2.h" |
|
55 #include "MArray2.cc" |
|
56 |
6108
|
57 template class OCTAVE_API MArray2<Complex>; |
1989
|
58 |
1985
|
59 INSTANTIATE_MARRAY2_FRIENDS (Complex) |
1989
|
60 |
4513
|
61 #include "MArrayN.h" |
|
62 #include "MArrayN.cc" |
|
63 |
6108
|
64 template class OCTAVE_API MArrayN<Complex>; |
4513
|
65 |
|
66 INSTANTIATE_MARRAYN_FRIENDS (Complex) |
|
67 |
1989
|
68 #include "MDiagArray2.h" |
|
69 #include "MDiagArray2.cc" |
|
70 |
6108
|
71 template class OCTAVE_API MDiagArray2<Complex>; |
1989
|
72 |
3582
|
73 INSTANTIATE_MDIAGARRAY2_FRIENDS (Complex) |
1212
|
74 |
|
75 /* |
|
76 ;;; Local Variables: *** |
|
77 ;;; mode: C++ *** |
|
78 ;;; End: *** |
|
79 */ |