annotate liboctave/MArray-C.cc @ 6708:0ce71beb1cf3

[project @ 2007-06-13 06:40:48 by jwe]
author jwe
date Wed, 13 Jun 2007 06:40:49 +0000
parents 768d3ad80bbf
children 93c65f2a5668
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
2847
8b262e771614 [project @ 1997-03-27 16:18:26 by jwe]
jwe
parents: 2006
diff changeset
3 Copyright (C) 1996, 1997 John W. Eaton
1212
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
4
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
5 This file is part of Octave.
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
6
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
7 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
8 under the terms of the GNU General Public License as published by the
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
9 Free Software Foundation; either version 2, or (at your option) any
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
10 later version.
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
11
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
12 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
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
14 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
15 for more details.
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
16
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
7b9d52071a0c [project @ 1995-04-06 02:21:03 by jwe]
jwe
parents:
diff changeset
18 along with Octave; see the file COPYING. If not, write to the Free
5307
4c8a2e4e0717 [project @ 2005-04-26 19:24:27 by jwe]
jwe
parents: 4513
diff changeset
19 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
4c8a2e4e0717 [project @ 2005-04-26 19:24:27 by jwe]
jwe
parents: 4513
diff changeset
20 02110-1301, USA.
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 */