home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / octave-1.1.1p1-base.tgz / octave-1.1.1p1-base.tar / fsf / octave / src / xpow.h < prev    next >
C/C++ Source or Header  |  1996-09-27  |  3KB  |  75 lines

  1. // xpow.h                                               -*- C++ -*-
  2. /*
  3.  
  4. Copyright (C) 1992, 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, 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  
  22. */
  23.  
  24. #if !defined (octave_xpow_h)
  25. #define octave_xpow_h 1
  26.  
  27. template <class T> class complex;
  28. typedef complex<double> Complex;
  29.  
  30. class Matrix;
  31. class ComplexMatrix;
  32. class tree_constant;
  33.  
  34. extern tree_constant xpow (double a, double b);
  35. extern tree_constant xpow (double a, const Matrix& b);
  36. extern tree_constant xpow (double a, const Complex& b);
  37. extern tree_constant xpow (double a, const ComplexMatrix& b);
  38.  
  39. extern tree_constant xpow (const Matrix& a, double b);
  40. extern tree_constant xpow (const Matrix& a, const Complex& b);
  41.  
  42. extern tree_constant xpow (const Complex& a, double b);
  43. extern tree_constant xpow (const Complex& a, const Matrix& b);
  44. extern tree_constant xpow (const Complex& a, const Complex& b);
  45. extern tree_constant xpow (const Complex& a, const ComplexMatrix& b);
  46.  
  47. extern tree_constant xpow (const ComplexMatrix& a, double b);
  48. extern tree_constant xpow (const ComplexMatrix& a, const Complex& b);
  49.  
  50. extern tree_constant elem_xpow (double a, const Matrix& b);
  51. extern tree_constant elem_xpow (double a, const ComplexMatrix& b);
  52.  
  53. extern tree_constant elem_xpow (const Matrix& a, double b);
  54. extern tree_constant elem_xpow (const Matrix& a, const Matrix& b);
  55. extern tree_constant elem_xpow (const Matrix& a, const Complex& b);
  56. extern tree_constant elem_xpow (const Matrix& a, const ComplexMatrix& b);
  57.  
  58. extern tree_constant elem_xpow (const Complex& a, const Matrix& b);
  59. extern tree_constant elem_xpow (const Complex& a, const ComplexMatrix& b);
  60.  
  61. extern tree_constant elem_xpow (const ComplexMatrix& a, double b);
  62. extern tree_constant elem_xpow (const ComplexMatrix& a, const Matrix& b);
  63. extern tree_constant elem_xpow (const ComplexMatrix& a, const Complex& b);
  64. extern tree_constant elem_xpow (const ComplexMatrix& a,
  65.                 const ComplexMatrix& b);
  66.  
  67. #endif
  68.  
  69. /*
  70. ;;; Local Variables: ***
  71. ;;; mode: C++ ***
  72. ;;; page-delimiter: "^/\\*" ***
  73. ;;; End: ***
  74. */
  75.