home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / octave-1.1.1p1-bin.lha / include / octave / CmplxCHOL.h < prev    next >
C/C++ Source or Header  |  1996-10-12  |  2KB  |  93 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_ComplexCHOL_h)
  25. #define octave_ComplexCHOL_h 1
  26.  
  27. class ostream;
  28.  
  29. #include "CMatrix.h"
  30.  
  31. extern "C++" {
  32.  
  33. class ComplexCHOL
  34. {
  35. friend class ComplexMatrix;
  36.  
  37. public:
  38.  
  39.   ComplexCHOL (void) {}
  40.   ComplexCHOL (const ComplexMatrix& a);
  41.   ComplexCHOL (const ComplexMatrix& a, int& info);
  42.   ComplexCHOL (const ComplexCHOL& a);
  43.   ComplexCHOL& operator = (const ComplexCHOL& a);
  44.   ComplexMatrix chol_matrix (void) const;
  45.  
  46.   friend ostream& operator << (ostream& os, const ComplexCHOL& a);
  47.  
  48. private:
  49.  
  50.   int init (const ComplexMatrix& a);
  51.  
  52.   ComplexMatrix chol_mat;
  53. };
  54.  
  55. inline ComplexCHOL::ComplexCHOL (const ComplexMatrix& a)
  56. {
  57.   init (a);
  58. }
  59.  
  60. inline ComplexCHOL::ComplexCHOL (const ComplexMatrix& a, int& info)
  61. {
  62.   info = init (a);
  63. }
  64.  
  65. inline ComplexCHOL::ComplexCHOL (const ComplexCHOL& a)
  66. {
  67.   chol_mat = a.chol_mat;
  68. }
  69.  
  70. inline ComplexCHOL&
  71. ComplexCHOL::operator = (const ComplexCHOL& a)
  72. {
  73.   chol_mat = a.chol_mat;
  74.  
  75.   return *this;
  76. }
  77.  
  78. inline ComplexMatrix ComplexCHOL::chol_matrix (void) const
  79. {
  80.   return chol_mat;
  81. }
  82.  
  83. } // extern "C++"
  84.  
  85. #endif
  86.  
  87. /*
  88. ;;; Local Variables: ***
  89. ;;; mode: C++ ***
  90. ;;; page-delimiter: "^/\\*" ***
  91. ;;; End: ***
  92. */
  93.