annotate liboctave/MArray-C.cc @ 7017:a1dbe9d80eee

[project @ 2007-10-12 21:27:11 by jwe]
author jwe
date Fri, 12 Oct 2007 21:27:37 +0000
parents 93c65f2a5668
children 82be108cc558
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1212
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
1 /*
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
2
7017
a1dbe9d80eee [project @ 2007-10-12 21:27:11 by jwe]
jwe
parents: 7016
diff changeset
3 Copyright (C) 1995, 1996, 1997, 2000, 2003, 2005, 2006, 2007
a1dbe9d80eee [project @ 2007-10-12 21:27:11 by jwe]
jwe
parents: 7016
diff changeset
4 John W. Eaton
1212
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
5
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
6 This file is part of Octave.
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
7
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
8 Octave is free software; you can redistribute it and/or modify it
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
9 under the terms of the GNU General Public License as published by the
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6708
diff changeset
10 Free Software Foundation; either version 3 of the License, or (at your
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6708
diff changeset
11 option) any later version.
1212
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
12
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
13 Octave is distributed in the hope that it will be useful, but WITHOUT
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
16 for more details.
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
17
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
18 You should have received a copy of the GNU General Public License
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6708
diff changeset
19 along with Octave; see the file COPYING. If not, see
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6708
diff changeset
20 <http://www.gnu.org/licenses/>.
1212
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
21
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
22 */
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
23
2006
95e952f72d66 [project @ 1996-03-04 00:33:32 by jwe]
jwe
parents: 1993
diff changeset
24 #ifdef HAVE_CONFIG_H
95e952f72d66 [project @ 1996-03-04 00:33:32 by jwe]
jwe
parents: 1993
diff changeset
25 #include <config.h>
95e952f72d66 [project @ 1996-03-04 00:33:32 by jwe]
jwe
parents: 1993
diff changeset
26 #endif
95e952f72d66 [project @ 1996-03-04 00:33:32 by jwe]
jwe
parents: 1993
diff changeset
27
1212
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
28 // Instantiate MArrays of Complex values.
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
29
1989
a4b0826e240c [project @ 1996-03-02 00:33:22 by jwe]
jwe
parents: 1985
diff changeset
30 #include "oct-cmplx.h"
6508
184ab67c3bc1 [project @ 2007-04-07 00:43:09 by jwe]
jwe
parents: 6108
diff changeset
31 #include "f77-fcn.h"
184ab67c3bc1 [project @ 2007-04-07 00:43:09 by jwe]
jwe
parents: 6108
diff changeset
32
184ab67c3bc1 [project @ 2007-04-07 00:43:09 by jwe]
jwe
parents: 6108
diff changeset
33 extern "C"
184ab67c3bc1 [project @ 2007-04-07 00:43:09 by jwe]
jwe
parents: 6108
diff changeset
34 {
184ab67c3bc1 [project @ 2007-04-07 00:43:09 by jwe]
jwe
parents: 6108
diff changeset
35 F77_RET_T
184ab67c3bc1 [project @ 2007-04-07 00:43:09 by jwe]
jwe
parents: 6108
diff changeset
36 F77_FUNC (xdznrm2, XDZNRM2) (const octave_idx_type&, const Complex*,
184ab67c3bc1 [project @ 2007-04-07 00:43:09 by jwe]
jwe
parents: 6108
diff changeset
37 const octave_idx_type&, double&);
184ab67c3bc1 [project @ 2007-04-07 00:43:09 by jwe]
jwe
parents: 6108
diff changeset
38 }
1989
a4b0826e240c [project @ 1996-03-02 00:33:22 by jwe]
jwe
parents: 1985
diff changeset
39
1212
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
40 #include "MArray.h"
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
41 #include "MArray.cc"
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
42
6508
184ab67c3bc1 [project @ 2007-04-07 00:43:09 by jwe]
jwe
parents: 6108
diff changeset
43 template <>
6693
768d3ad80bbf [project @ 2007-06-06 05:18:54 by jwe]
jwe
parents: 6508
diff changeset
44 OCTAVE_API double
6508
184ab67c3bc1 [project @ 2007-04-07 00:43:09 by jwe]
jwe
parents: 6108
diff changeset
45 MArray<Complex>::norm (double p) const
184ab67c3bc1 [project @ 2007-04-07 00:43:09 by jwe]
jwe
parents: 6108
diff changeset
46 {
184ab67c3bc1 [project @ 2007-04-07 00:43:09 by jwe]
jwe
parents: 6108
diff changeset
47 MARRAY_NORM_BODY (Complex, xdznrm2, XDZNRM2);
184ab67c3bc1 [project @ 2007-04-07 00:43:09 by jwe]
jwe
parents: 6108
diff changeset
48 }
184ab67c3bc1 [project @ 2007-04-07 00:43:09 by jwe]
jwe
parents: 6108
diff changeset
49
6108
143b556ce725 [project @ 2006-10-27 01:45:54 by jwe]
jwe
parents: 5307
diff changeset
50 template class OCTAVE_API MArray<Complex>;
1212
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
51
6708
0ce71beb1cf3 [project @ 2007-06-13 06:40:48 by jwe]
jwe
parents: 6693
diff changeset
52 INSTANTIATE_MARRAY_FRIENDS (Complex, OCTAVE_API)
1989
a4b0826e240c [project @ 1996-03-02 00:33:22 by jwe]
jwe
parents: 1985
diff changeset
53
a4b0826e240c [project @ 1996-03-02 00:33:22 by jwe]
jwe
parents: 1985
diff changeset
54 #include "MArray2.h"
a4b0826e240c [project @ 1996-03-02 00:33:22 by jwe]
jwe
parents: 1985
diff changeset
55 #include "MArray2.cc"
a4b0826e240c [project @ 1996-03-02 00:33:22 by jwe]
jwe
parents: 1985
diff changeset
56
6108
143b556ce725 [project @ 2006-10-27 01:45:54 by jwe]
jwe
parents: 5307
diff changeset
57 template class OCTAVE_API MArray2<Complex>;
1989
a4b0826e240c [project @ 1996-03-02 00:33:22 by jwe]
jwe
parents: 1985
diff changeset
58
6708
0ce71beb1cf3 [project @ 2007-06-13 06:40:48 by jwe]
jwe
parents: 6693
diff changeset
59 INSTANTIATE_MARRAY2_FRIENDS (Complex, OCTAVE_API)
1989
a4b0826e240c [project @ 1996-03-02 00:33:22 by jwe]
jwe
parents: 1985
diff changeset
60
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3582
diff changeset
61 #include "MArrayN.h"
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3582
diff changeset
62 #include "MArrayN.cc"
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3582
diff changeset
63
6108
143b556ce725 [project @ 2006-10-27 01:45:54 by jwe]
jwe
parents: 5307
diff changeset
64 template class OCTAVE_API MArrayN<Complex>;
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3582
diff changeset
65
6708
0ce71beb1cf3 [project @ 2007-06-13 06:40:48 by jwe]
jwe
parents: 6693
diff changeset
66 INSTANTIATE_MARRAYN_FRIENDS (Complex, OCTAVE_API)
4513
508238e65af7 [project @ 2003-09-19 21:40:57 by jwe]
jwe
parents: 3582
diff changeset
67
1989
a4b0826e240c [project @ 1996-03-02 00:33:22 by jwe]
jwe
parents: 1985
diff changeset
68 #include "MDiagArray2.h"
a4b0826e240c [project @ 1996-03-02 00:33:22 by jwe]
jwe
parents: 1985
diff changeset
69 #include "MDiagArray2.cc"
a4b0826e240c [project @ 1996-03-02 00:33:22 by jwe]
jwe
parents: 1985
diff changeset
70
6108
143b556ce725 [project @ 2006-10-27 01:45:54 by jwe]
jwe
parents: 5307
diff changeset
71 template class OCTAVE_API MDiagArray2<Complex>;
1989
a4b0826e240c [project @ 1996-03-02 00:33:22 by jwe]
jwe
parents: 1985
diff changeset
72
6708
0ce71beb1cf3 [project @ 2007-06-13 06:40:48 by jwe]
jwe
parents: 6693
diff changeset
73 INSTANTIATE_MDIAGARRAY2_FRIENDS (Complex, OCTAVE_API)
1212
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
74
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
75 /*
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
76 ;;; Local Variables: ***
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
77 ;;; mode: C++ ***
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
78 ;;; End: ***
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
79 */