27 "template<class T> DynArr<T> operator*(const DynArr<T>& mt1, const "
40 for (
long n1 = 0; n1 < q1; ++n1) {
41 for (
long n2 = 0; n2 < q2; ++n2) {
43 for (
long n3 = 0; n3 < q3; ++n3) {
44 t += mt1.
acu(n1, n3) * mt2.
acu(n3, n2);
54 for (
long n1 = 0; n1 < q1; ++n1) {
56 for (
long n3 = 0; n3 < q3; ++n3) {
57 t += mt1.
acu(n1, n3) * mt2.
acu(n3);
69 mcerr <<
"template<class T>\n"
70 <<
"DynLinArr<T> operator*(const DynArr<T>& mt, "
71 <<
"const DynLinArr<T>& vc):\n";
72 mcerr <<
"qel_mt.get_qel() != 2, qel_mt.get_qel() =" << qel_mt.
get_qel()
78 mcerr <<
"template<class T>\n"
79 <<
"DynLinArr<T> operator*(const DynArr<T>& mt, "
80 <<
"const DynLinArr<T>& vc):\n";
81 mcerr <<
"q != qel_mt[1], q =" << q <<
"qel_mt[1]=" << qel_mt[1] <<
'\n';
86 for (
long n1 = 0; n1 < qel_mt[0]; n1++) {
87 for (
long n2 = 0; n2 < q; n2++) {
88 res[n1] += mt.
acu(n1, n2) * vc.
acu(n2);
94DynLinArr<DoubleAc>
operator*(
const DynArr<DoubleAc>& mt,
95 const DynLinArr<double>& vc);
96DynLinArr<DoubleAc>
operator*(
const DynArr<double>& mt,
97 const DynLinArr<DoubleAc>& vc);
105 mcerr <<
"template<class T>\n"
106 <<
"DynLinArr<T> operator*(const DynArr<T>& mt, "
107 <<
"const DynLinArr<T>& vc):\n";
108 mcerr <<
"q1 != q2, q1 =" << q1 <<
"q2=" << q2 <<
'\n';
113 for (
long n = 0; n < q1; n++) {
114 s += vc1.
acu(n) * vc2.
acu(n);
123DoubleAc
operator*(
const DynLinArr<DoubleAc>& vc1,
124 const DynLinArr<double>& vc2);
125DoubleAc
operator*(
const DynLinArr<double>& vc1,
126 const DynLinArr<DoubleAc>& vc2);
128template <
class T,
class X>
132 for (
long n = 0; n < q; n++) {
133 res.
acu(n) = ar.
acu(n) * t;
138template <
class T,
class X>
141 for (
long n = 0; n < q; n++) {
147template <
class T,
class X>
150 "template<class T, class X> DynLinArr<T> operator*(const X& t, "
151 "const DynLinArr<T>& ar)");
154 for (
long n = 0; n < q; n++) {
155 res.
acu(n) = t * ar.
acu(n);
160template <
class T,
class X>
162 mfunname(
"DynLinArr<T> operator/(const DynLinArr<T>& ar, const X& t)");
166 for (
long n = 0; n < q; n++) {
167 res.
acu(n) = ar.
acu(n) / t;
172template <
class T,
class X>
174 mfunname(
"DynLinArr<T>& operator/=(DynLinArr<T>& ar, const X& t)");
177 for (
long n = 0; n < q; n++) {
183template <
class T,
class X>
186 "template<class T, class X> DynArr<T> operator*(const DynArr<T>& "
190 for (
long n = 0; n < qel_lin; n++) {
196template <
class T,
class X>
199 "template<class T, class X> DynArr<T> operator*(const X& t, const "
203 for (
long n = 0; n < qel_lin; n++) {
209template <
class T,
class X>
212 "template<class T, class X> DynArr<T>& operator*=(DynArr<T>& mt, "
215 for (
long n = 0; n < qel_lin; n++) {
221template <
class T,
class X>
224 "template<class T, class X> DynArr<T> operator/(const DynArr<T>& "
229 for (
long n = 0; n < qel_lin; n++) {
235template <
class T,
class X>
238 "template<class T, class X> DynArr<T>& operator/(DynArr<T>& mt, "
242 for (
long n = 0; n < qel_lin; n++) {
253 mcerr <<
"template<class T>\n"
254 <<
"DynLinArr<T> operator+(const DynLinArr<T>& vc1, "
255 <<
"const DynLinArr<T>& vc2):\n";
256 mcerr <<
"q1 != q2, q1 =" << q1 <<
"q2=" << q2 <<
'\n';
260 for (
long n = 0; n < q1; n++) {
271 mcerr <<
"template<class T>\n"
272 <<
"DynLinArr<T>& operator+=(DynLinArr<T>& vc1, "
273 <<
"const DynLinArr<T>& vc2):\n";
274 mcerr <<
"q1 != q2, q1 =" << q1 <<
"q2=" << q2 <<
'\n';
277 for (
long n = 0; n < q1; n++) {
288 mcerr <<
"template<class T>\n"
289 <<
"DynLinArr<T> operator-(const DynLinArr<T>& vc1, "
290 <<
"const DynLinArr<T>& vc2):\n";
291 mcerr <<
"q1 != q2, q1 =" << q1 <<
"q2=" << q2 <<
'\n';
295 for (
long n = 0; n < q1; n++) {
306 mcerr <<
"template<class T>\n"
307 <<
"DynLinArr<T>& operator-=(DynLinArr<T>& vc1, "
308 <<
"const DynLinArr<T>& vc2):\n";
309 mcerr <<
"q1 != q2, q1 =" << q1 <<
"q2=" << q2 <<
'\n';
312 for (
long n = 0; n < q1; n++) {
318DynLinArr<DoubleAc>
operator+(
const DynLinArr<DoubleAc>& vc1,
319 const DynLinArr<double>& vc2);
320DynLinArr<DoubleAc>
operator+(
const DynLinArr<double>& vc1,
321 const DynLinArr<DoubleAc>& vc2);
322DynLinArr<DoubleAc>
operator-(
const DynLinArr<DoubleAc>& vc1,
323 const DynLinArr<double>& vc2);
324DynLinArr<DoubleAc>
operator-(
const DynLinArr<double>& vc1,
325 const DynLinArr<DoubleAc>& vc2);
332 for (
long n = 0; n < q; n++) {
344 for (
long n = 0; n < q; n++) {
353template <
class T,
class X>
356 for (
long n = 0; n < q; n++) {
362template <
class T,
class X>
365 for (
long n = 0; n < q; n++) {
374 "template<class T> DynArr<T> operator+(const DynArr<T>& mt1, const "
384 for (
long n = 0; n < qel_lin; n++) {
393 "template<class T> DynArr<T>& operator+(DynArr<T>& mt1, const "
402 for (
long n = 0; n < qel_lin; n++) {
411 "template<class T> DynArr<T> operator-(const DynArr<T>& mt1, const "
421 for (
long n = 0; n < qel_lin; n++) {
430 "template<class T> DynArr<T>& operator-(DynArr<T>& mt1, const "
439 for (
long n = 0; n < qel_lin; n++) {
447 mfunnamep(
"template<class T> DynArr<T> operator-(const DynArr<T>& mt)");
450 for (
long n = 0; n < qel_lin; n++) {
461 for (
long n = 0; n < qel_lin; n++) {
466template <
class T,
class X>
469 "template<class T, class X> DynArr<T>& operator+=(DynArr<T>& mt, "
472 for (
long n = 0; n < qel_lin; n++) {
478template <
class T,
class X>
481 "template<class T, class X> DynArr<T>& operator-=(DynArr<T>& mt, "
484 for (
long n = 0; n < qel_lin; n++) {
490DynArr<DoubleAc>
operator+(
const DynArr<DoubleAc>& mt1,
491 const DynArr<double>& mt2);
492DynArr<DoubleAc>
operator+(
const DynArr<double>& mt1,
493 const DynArr<DoubleAc>& mt2);
494DynArr<DoubleAc>
operator-(
const DynArr<DoubleAc>& mt1,
495 const DynArr<double>& mt2);
496DynArr<DoubleAc>
operator-(
const DynArr<double>& mt1,
497 const DynArr<DoubleAc>& mt2);
#define check_econd11(a, signb, stream)
#define mfunnamep(string)
#define check_econd12(a, sign, b, stream)
long get_qel_lin(void) const
const DynLinArr< long > & get_qel(void) const
long get_qdim(void) const
DynLinArr< T > & operator/=(DynLinArr< T > &ar, const X &t)
DoubleAc operator+(const DoubleAc &f1, const DoubleAc &f2)
DoubleAc operator-(const DoubleAc &f)
DoubleAc operator/(const DoubleAc &f1, const DoubleAc &f2)
DynLinArr< T > & operator-=(DynLinArr< T > &vc1, const DynLinArr< T > &vc2)
void change_sign(DoubleAc &f)
DoubleAc operator*(const DoubleAc &f1, const DoubleAc &f2)
DynLinArr< T > & operator*=(DynLinArr< T > &ar, const X &t)
DynLinArr< T > & operator+=(DynLinArr< T > &vc1, const DynLinArr< T > &vc2)