# HG changeset patch # User jwe # Date 797134863 0 # Node ID 7b9d52071a0c4b83d15a36668dada289ddf56df6 # Parent ee2c6a67abe985851c094edfb75b4bbadf629563 [project @ 1995-04-06 02:21:03 by jwe] Initial revision diff -r ee2c6a67abe9 -r 7b9d52071a0c liboctave/MArray-C.cc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/liboctave/MArray-C.cc Thu Apr 06 02:21:03 1995 +0000 @@ -0,0 +1,139 @@ +// MArray-C.cc -*- C++ -*- +/* + +Copyright (C) 1993, 1994, 1995 John W. Eaton + +This file is part of Octave. + +Octave is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 2, or (at your option) any +later version. + +Octave is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Octave; see the file COPYING. If not, write to the Free +Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +// Instantiate MArrays of Complex values. + +#include "MArray.h" +#include "MArray.cc" + +#include + +template class MArray; +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); + +/* +;;; Local Variables: *** +;;; mode: C++ *** +;;; page-delimiter: "^/\\*" *** +;;; End: *** +*/ diff -r ee2c6a67abe9 -r 7b9d52071a0c liboctave/MArray-d.cc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/liboctave/MArray-d.cc Thu Apr 06 02:21:03 1995 +0000 @@ -0,0 +1,137 @@ +// MArray-d.cc -*- C++ -*- +/* + +Copyright (C) 1993, 1994, 1995 John W. Eaton + +This file is part of Octave. + +Octave is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 2, or (at your option) any +later version. + +Octave is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Octave; see the file COPYING. If not, write to the Free +Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +// Instantiate MArrays of double values. + +#include "MArray.h" +#include "MArray.cc" + +template class MArray; +template class MArray2; +template class MDiagArray; + +template MArray +operator + (const MArray& a, const double& s); + +template MArray +operator - (const MArray& a, const double& s); + +template MArray +operator * (const MArray& a, const double& s); + +template MArray +operator / (const MArray& a, const double& s); + +template MArray +operator + (const double& s, const MArray& a); + +template MArray +operator - (const double& s, const MArray& a); + +template MArray +operator * (const double& s, const MArray& a); + +template MArray +operator / (const double& 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 double& s); + +template MArray2 +operator - (const MArray2& a, const double& s); + +template MArray2 +operator * (const MArray2& a, const double& s); + +template MArray2 +operator / (const MArray2& a, const double& s); + +template MArray2 +operator + (const double& s, const MArray2& a); + +template MArray2 +operator - (const double& s, const MArray2& a); + +template MArray2 +operator * (const double& s, const MArray2& a); + +template MArray2 +operator / (const double& 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 double& s); + +template MDiagArray +operator / (const MDiagArray& a, const double& s); + +template MDiagArray +operator * (const double& 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); + +/* +;;; Local Variables: *** +;;; mode: C++ *** +;;; page-delimiter: "^/\\*" *** +;;; End: *** +*/