# HG changeset patch # User jwe # Date 825690803 0 # Node ID a9abae46d75f38d36c347813ef9790d2298ed800 # Parent 1c121da7b952fa571b83bd6f27be0ca8aef040a4 [project @ 1996-03-01 14:33:13 by jwe] diff -r 1c121da7b952 -r a9abae46d75f liboctave/MArray-C.cc --- a/liboctave/MArray-C.cc Thu Feb 29 14:59:38 1996 +0000 +++ b/liboctave/MArray-C.cc Fri Mar 01 14:33:23 1996 +0000 @@ -32,104 +32,9 @@ template class MArray2; template class MDiagArray; -template MArray -operator + (const MArray& a, const Complex& s); - -template MArray -operator - (const MArray& a, const Complex& s); - -template MArray -operator * (const MArray& a, const Complex& s); - -template MArray -operator / (const MArray& a, const Complex& s); - -template MArray -operator + (const Complex& s, const MArray& a); - -template MArray -operator - (const Complex& s, const MArray& a); - -template MArray -operator * (const Complex& s, const MArray& a); - -template MArray -operator / (const Complex& s, const MArray& a); - -template MArray -operator + (const MArray& a, const MArray& b); - -template MArray -operator - (const MArray& a, const MArray& b); - -template MArray -product (const MArray& a, const MArray& b); - -template MArray -quotient (const MArray& a, const MArray& b); - -template MArray -operator - (const MArray& a); - -template MArray2 -operator + (const MArray2& a, const Complex& s); - -template MArray2 -operator - (const MArray2& a, const Complex& s); - -template MArray2 -operator * (const MArray2& a, const Complex& s); - -template MArray2 -operator / (const MArray2& a, const Complex& s); - -template MArray2 -operator + (const Complex& s, const MArray2& a); - -template MArray2 -operator - (const Complex& s, const MArray2& a); - -template MArray2 -operator * (const Complex& s, const MArray2& a); - -template MArray2 -operator / (const Complex& s, const MArray2& a); - -template MArray2 -operator + (const MArray2& a, const MArray2& b); - -template MArray2 -operator - (const MArray2& a, const MArray2& b); - -template MArray2 -product (const MArray2& a, const MArray2& b); - -template MArray2 -quotient (const MArray2& a, const MArray2& b); - -template MArray2 -operator - (const MArray2& a); - -template MDiagArray -operator * (const MDiagArray& a, const Complex& s); - -template MDiagArray -operator / (const MDiagArray& a, const Complex& s); - -template MDiagArray -operator * (const Complex& s, const MDiagArray& a); - -template MDiagArray -operator + (const MDiagArray& a, const MDiagArray& b); - -template MDiagArray -operator - (const MDiagArray& a, const MDiagArray& b); - -template MDiagArray -product (const MDiagArray& a, const MDiagArray& b); - -template MDiagArray -operator - (const MDiagArray& a); +INSTANTIATE_MARRAY_FRIENDS (Complex) +INSTANTIATE_MARRAY2_FRIENDS (Complex) +INSTANTIATE_MDIAGARRAY_FRIENDS (Complex) /* ;;; Local Variables: *** diff -r 1c121da7b952 -r a9abae46d75f liboctave/MArray-ch.cc --- a/liboctave/MArray-ch.cc Thu Feb 29 14:59:38 1996 +0000 +++ b/liboctave/MArray-ch.cc Fri Mar 01 14:33:23 1996 +0000 @@ -31,109 +31,13 @@ template class MArray; template class MArray2; +INSTANTIATE_MARRAY_FRIENDS (char) +INSTANTIATE_MARRAY2_FRIENDS (char) + #ifndef NO_DIAG_ARRAY template class MDiagArray; -#endif -template MArray -operator + (const MArray& a, const char& s); - -template MArray -operator - (const MArray& a, const char& s); - -template MArray -operator * (const MArray& a, const char& s); - -template MArray -operator / (const MArray& a, const char& s); - -template MArray -operator + (const char& s, const MArray& a); - -template MArray -operator - (const char& s, const MArray& a); - -template MArray -operator * (const char& s, const MArray& a); - -template MArray -operator / (const char& s, const MArray& a); - -template MArray -operator + (const MArray& a, const MArray& b); - -template MArray -operator - (const MArray& a, const MArray& b); - -template MArray -product (const MArray& a, const MArray& b); - -template MArray -quotient (const MArray& a, const MArray& b); - -template MArray -operator - (const MArray& a); - -template MArray2 -operator + (const MArray2& a, const char& s); - -template MArray2 -operator - (const MArray2& a, const char& s); - -template MArray2 -operator * (const MArray2& a, const char& s); - -template MArray2 -operator / (const MArray2& a, const char& s); - -template MArray2 -operator + (const char& s, const MArray2& a); - -template MArray2 -operator - (const char& s, const MArray2& a); - -template MArray2 -operator * (const char& s, const MArray2& a); - -template MArray2 -operator / (const char& s, const MArray2& a); - -template MArray2 -operator + (const MArray2& a, const MArray2& b); - -template MArray2 -operator - (const MArray2& a, const MArray2& b); - -template MArray2 -product (const MArray2& a, const MArray2& b); - -template MArray2 -quotient (const MArray2& a, const MArray2& b); - -template MArray2 -operator - (const MArray2& a); - -#ifndef NO_DIAG_ARRAY -template MDiagArray -operator * (const MDiagArray& a, const char& s); - -template MDiagArray -operator / (const MDiagArray& a, const char& s); - -template MDiagArray -operator * (const char& s, const MDiagArray& a); - -template MDiagArray -operator + (const MDiagArray& a, const MDiagArray& b); - -template MDiagArray -operator - (const MDiagArray& a, const MDiagArray& b); - -template MDiagArray -product (const MDiagArray& a, const MDiagArray& b); - -template MDiagArray -operator - (const MDiagArray& a); +INSTANTIATE_MDIAGARRAY_FRIENDS (char) #endif /* diff -r 1c121da7b952 -r a9abae46d75f liboctave/MArray-i.cc --- a/liboctave/MArray-i.cc Thu Feb 29 14:59:38 1996 +0000 +++ b/liboctave/MArray-i.cc Fri Mar 01 14:33:23 1996 +0000 @@ -31,109 +31,13 @@ template class MArray; template class MArray2; +INSTANTIATE_MARRAY_FRIENDS (int) +INSTANTIATE_MARRAY2_FRIENDS (int) + #ifndef NO_DIAG_ARRAY template class MDiagArray; -#endif -template MArray -operator + (const MArray& a, const int& s); - -template MArray -operator - (const MArray& a, const int& s); - -template MArray -operator * (const MArray& a, const int& s); - -template MArray -operator / (const MArray& a, const int& s); - -template MArray -operator + (const int& s, const MArray& a); - -template MArray -operator - (const int& s, const MArray& a); - -template MArray -operator * (const int& s, const MArray& a); - -template MArray -operator / (const int& s, const MArray& a); - -template MArray -operator + (const MArray& a, const MArray& b); - -template MArray -operator - (const MArray& a, const MArray& b); - -template MArray -product (const MArray& a, const MArray& b); - -template MArray -quotient (const MArray& a, const MArray& b); - -template MArray -operator - (const MArray& a); - -template MArray2 -operator + (const MArray2& a, const int& s); - -template MArray2 -operator - (const MArray2& a, const int& s); - -template MArray2 -operator * (const MArray2& a, const int& s); - -template MArray2 -operator / (const MArray2& a, const int& s); - -template MArray2 -operator + (const int& s, const MArray2& a); - -template MArray2 -operator - (const int& s, const MArray2& a); - -template MArray2 -operator * (const int& s, const MArray2& a); - -template MArray2 -operator / (const int& s, const MArray2& a); - -template MArray2 -operator + (const MArray2& a, const MArray2& b); - -template MArray2 -operator - (const MArray2& a, const MArray2& b); - -template MArray2 -product (const MArray2& a, const MArray2& b); - -template MArray2 -quotient (const MArray2& a, const MArray2& b); - -template MArray2 -operator - (const MArray2& a); - -#ifndef NO_DIAG_ARRAY -template MDiagArray -operator * (const MDiagArray& a, const int& s); - -template MDiagArray -operator / (const MDiagArray& a, const int& s); - -template MDiagArray -operator * (const int& s, const MDiagArray& a); - -template MDiagArray -operator + (const MDiagArray& a, const MDiagArray& b); - -template MDiagArray -operator - (const MDiagArray& a, const MDiagArray& b); - -template MDiagArray -product (const MDiagArray& a, const MDiagArray& b); - -template MDiagArray -operator - (const MDiagArray& a); +INSTANTIATE_MDIAGARRAY_FRIENDS (int) #endif /* diff -r 1c121da7b952 -r a9abae46d75f liboctave/MArray-s.cc --- a/liboctave/MArray-s.cc Thu Feb 29 14:59:38 1996 +0000 +++ b/liboctave/MArray-s.cc Fri Mar 01 14:33:23 1996 +0000 @@ -31,109 +31,13 @@ template class MArray; template class MArray2; +INSTANTIATE_MARRAY_FRIENDS (short) +INSTANTIATE_MARRAY2_FRIENDS (short) + #ifndef NO_DIAG_ARRAY template class MDiagArray; -#endif -template MArray -operator + (const MArray& a, const short& s); - -template MArray -operator - (const MArray& a, const short& s); - -template MArray -operator * (const MArray& a, const short& s); - -template MArray -operator / (const MArray& a, const short& s); - -template MArray -operator + (const short& s, const MArray& a); - -template MArray -operator - (const short& s, const MArray& a); - -template MArray -operator * (const short& s, const MArray& a); - -template MArray -operator / (const short& s, const MArray& a); - -template MArray -operator + (const MArray& a, const MArray& b); - -template MArray -operator - (const MArray& a, const MArray& b); - -template MArray -product (const MArray& a, const MArray& b); - -template MArray -quotient (const MArray& a, const MArray& b); - -template MArray -operator - (const MArray& a); - -template MArray2 -operator + (const MArray2& a, const short& s); - -template MArray2 -operator - (const MArray2& a, const short& s); - -template MArray2 -operator * (const MArray2& a, const short& s); - -template MArray2 -operator / (const MArray2& a, const short& s); - -template MArray2 -operator + (const short& s, const MArray2& a); - -template MArray2 -operator - (const short& s, const MArray2& a); - -template MArray2 -operator * (const short& s, const MArray2& a); - -template MArray2 -operator / (const short& s, const MArray2& a); - -template MArray2 -operator + (const MArray2& a, const MArray2& b); - -template MArray2 -operator - (const MArray2& a, const MArray2& b); - -template MArray2 -product (const MArray2& a, const MArray2& b); - -template MArray2 -quotient (const MArray2& a, const MArray2& b); - -template MArray2 -operator - (const MArray2& a); - -#ifndef NO_DIAG_ARRAY -template MDiagArray -operator * (const MDiagArray& a, const short& s); - -template MDiagArray -operator / (const MDiagArray& a, const short& s); - -template MDiagArray -operator * (const short& s, const MDiagArray& a); - -template MDiagArray -operator + (const MDiagArray& a, const MDiagArray& b); - -template MDiagArray -operator - (const MDiagArray& a, const MDiagArray& b); - -template MDiagArray -product (const MDiagArray& a, const MDiagArray& b); - -template MDiagArray -operator - (const MDiagArray& a); +INSTANTIATE_MDIAGARRAY_FRIENDS (short) #endif /*