1573
|
1 // MArray-i.cc -*- C++ -*- |
|
2 /* |
|
3 |
|
4 Copyright (C) 1993, 1994, 1995 John W. Eaton |
|
5 |
|
6 This file is part of Octave. |
|
7 |
|
8 Octave is free software; you can redistribute it and/or modify it |
|
9 under the terms of the GNU General Public License as published by the |
|
10 Free Software Foundation; either version 2, or (at your option) any |
|
11 later version. |
|
12 |
|
13 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
16 for more details. |
|
17 |
|
18 You should have received a copy of the GNU General Public License |
|
19 along with Octave; see the file COPYING. If not, write to the Free |
|
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
21 |
|
22 */ |
|
23 |
|
24 // Instantiate MArrays of int values. |
|
25 |
|
26 #define NO_DIAG_ARRAY 1 |
|
27 |
|
28 #include "MArray.h" |
|
29 #include "MArray.cc" |
|
30 |
|
31 template class MArray<int>; |
|
32 template class MArray2<int>; |
|
33 |
|
34 #ifndef NO_DIAG_ARRAY |
|
35 template class MDiagArray<int>; |
|
36 #endif |
|
37 |
|
38 template MArray<int> |
|
39 operator + (const MArray<int>& a, const int& s); |
|
40 |
|
41 template MArray<int> |
|
42 operator - (const MArray<int>& a, const int& s); |
|
43 |
|
44 template MArray<int> |
|
45 operator * (const MArray<int>& a, const int& s); |
|
46 |
|
47 template MArray<int> |
|
48 operator / (const MArray<int>& a, const int& s); |
|
49 |
|
50 template MArray<int> |
|
51 operator + (const int& s, const MArray<int>& a); |
|
52 |
|
53 template MArray<int> |
|
54 operator - (const int& s, const MArray<int>& a); |
|
55 |
|
56 template MArray<int> |
|
57 operator * (const int& s, const MArray<int>& a); |
|
58 |
|
59 template MArray<int> |
|
60 operator / (const int& s, const MArray<int>& a); |
|
61 |
|
62 template MArray<int> |
|
63 operator + (const MArray<int>& a, const MArray<int>& b); |
|
64 |
|
65 template MArray<int> |
|
66 operator - (const MArray<int>& a, const MArray<int>& b); |
|
67 |
|
68 template MArray<int> |
|
69 product (const MArray<int>& a, const MArray<int>& b); |
|
70 |
|
71 template MArray<int> |
|
72 quotient (const MArray<int>& a, const MArray<int>& b); |
|
73 |
|
74 template MArray<int> |
|
75 operator - (const MArray<int>& a); |
|
76 |
|
77 template MArray2<int> |
|
78 operator + (const MArray2<int>& a, const int& s); |
|
79 |
|
80 template MArray2<int> |
|
81 operator - (const MArray2<int>& a, const int& s); |
|
82 |
|
83 template MArray2<int> |
|
84 operator * (const MArray2<int>& a, const int& s); |
|
85 |
|
86 template MArray2<int> |
|
87 operator / (const MArray2<int>& a, const int& s); |
|
88 |
|
89 template MArray2<int> |
|
90 operator + (const int& s, const MArray2<int>& a); |
|
91 |
|
92 template MArray2<int> |
|
93 operator - (const int& s, const MArray2<int>& a); |
|
94 |
|
95 template MArray2<int> |
|
96 operator * (const int& s, const MArray2<int>& a); |
|
97 |
|
98 template MArray2<int> |
|
99 operator / (const int& s, const MArray2<int>& a); |
|
100 |
|
101 template MArray2<int> |
|
102 operator + (const MArray2<int>& a, const MArray2<int>& b); |
|
103 |
|
104 template MArray2<int> |
|
105 operator - (const MArray2<int>& a, const MArray2<int>& b); |
|
106 |
|
107 template MArray2<int> |
|
108 product (const MArray2<int>& a, const MArray2<int>& b); |
|
109 |
|
110 template MArray2<int> |
|
111 quotient (const MArray2<int>& a, const MArray2<int>& b); |
|
112 |
|
113 template MArray2<int> |
|
114 operator - (const MArray2<int>& a); |
|
115 |
|
116 #ifndef NO_DIAG_ARRAY |
|
117 template MDiagArray<int> |
|
118 operator * (const MDiagArray<int>& a, const int& s); |
|
119 |
|
120 template MDiagArray<int> |
|
121 operator / (const MDiagArray<int>& a, const int& s); |
|
122 |
|
123 template MDiagArray<int> |
|
124 operator * (const int& s, const MDiagArray<int>& a); |
|
125 |
|
126 template MDiagArray<int> |
|
127 operator + (const MDiagArray<int>& a, const MDiagArray<int>& b); |
|
128 |
|
129 template MDiagArray<int> |
|
130 operator - (const MDiagArray<int>& a, const MDiagArray<int>& b); |
|
131 |
|
132 template MDiagArray<int> |
|
133 product (const MDiagArray<int>& a, const MDiagArray<int>& b); |
|
134 |
|
135 template MDiagArray<int> |
|
136 operator - (const MDiagArray<int>& a); |
|
137 #endif |
|
138 |
|
139 /* |
|
140 ;;; Local Variables: *** |
|
141 ;;; mode: C++ *** |
|
142 ;;; page-delimiter: "^/\\*" *** |
|
143 ;;; End: *** |
|
144 */ |