home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / octave-1.1.1p1-bin.lha / include / octave / dbleAEPBAL.h < prev    next >
C/C++ Source or Header  |  1996-10-12  |  2KB  |  98 lines

  1. //                                  -*- 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_AEPBALANCE_h)
  25. #define octave_AEPBALANCE_h 1
  26.  
  27. class ostream;
  28.  
  29. #include "dMatrix.h"
  30.  
  31. extern "C++" {
  32.  
  33. class AEPBALANCE
  34. {
  35. friend class Matrix;
  36.  
  37. public:
  38.  
  39.   AEPBALANCE (void) {}
  40.  
  41.   AEPBALANCE (const Matrix& a, const char *balance_job);
  42.  
  43.   AEPBALANCE (const AEPBALANCE& a);
  44.  
  45.   AEPBALANCE& operator = (const AEPBALANCE& a);
  46.   Matrix balanced_matrix (void) const;
  47.   Matrix balancing_matrix (void) const;
  48.   friend ostream& operator << (ostream& os, const AEPBALANCE& a);
  49.  
  50. private:
  51.  
  52.   int init (const Matrix& a, const char * balance_job);
  53.  
  54.   Matrix balanced_mat;
  55.   Matrix balancing_mat;
  56. };
  57.  
  58. inline AEPBALANCE::AEPBALANCE (const Matrix& a,const char * balance_job) 
  59. {
  60.   init (a, balance_job); 
  61. }
  62.  
  63. inline AEPBALANCE::AEPBALANCE (const AEPBALANCE& a)
  64. {
  65.   balanced_mat = a.balanced_mat;
  66.   balancing_mat = a.balancing_mat;
  67. }
  68.  
  69. inline AEPBALANCE&
  70. AEPBALANCE::operator = (const AEPBALANCE& a)
  71. {
  72.   balanced_mat = a.balanced_mat;
  73.   balancing_mat = a.balancing_mat;
  74.  
  75.   return *this;
  76. }
  77.  
  78. inline Matrix AEPBALANCE::balanced_matrix (void) const
  79. {
  80.   return balanced_mat;
  81. }
  82.  
  83. inline Matrix AEPBALANCE::balancing_matrix (void) const
  84. {
  85.   return balancing_mat;
  86. }
  87.  
  88. } // extern "C++"
  89.  
  90. #endif
  91.  
  92. /*
  93. ;;; Local Variables: ***
  94. ;;; mode: C++ ***
  95. ;;; page-delimiter: "^/\\*" ***
  96. ;;; End: ***
  97. */
  98.