Octave-Forge - Extra packages for GNU Octave | |
Home · Packages · Developers · Documentation · FAQ · Bugs · Mailing Lists · Links · Code |
00001 /* 00002 00003 Copyright (C) 1994, 1995, 1996, 1997, 2000, 2002, 2004, 2005, 2006, 00004 2007, 2008 John W. Eaton 00005 00006 This file is part of Octave. 00007 00008 Octave is free software; you can redistribute it and/or modify it 00009 under the terms of the GNU General Public License as published by the 00010 Free Software Foundation; either version 3 of the License, or (at your 00011 option) any later version. 00012 00013 Octave is distributed in the hope that it will be useful, but WITHOUT 00014 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00015 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00016 for more details. 00017 00018 You should have received a copy of the GNU General Public License 00019 along with Octave; see the file COPYING. If not, see 00020 <http://www.gnu.org/licenses/>. 00021 00022 */ 00023 00024 #if !defined (octave_FloatComplexQRP_h) 00025 #define octave_FloatComplexQRP_h 1 00026 00027 #include <iosfwd> 00028 00029 #include "fCmplxQR.h" 00030 #include "PermMatrix.h" 00031 #include "fColVector.h" 00032 00033 class 00034 OCTAVE_API 00035 FloatComplexQRP : public FloatComplexQR 00036 { 00037 public: 00038 00039 FloatComplexQRP (void) : FloatComplexQR (), p () { } 00040 00041 FloatComplexQRP (const FloatComplexMatrix&, qr_type_t = qr_type_std); 00042 00043 FloatComplexQRP (const FloatComplexQRP& a) : FloatComplexQR (a), p (a.p) { } 00044 00045 FloatComplexQRP& operator = (const FloatComplexQRP& a) 00046 { 00047 if (this != &a) 00048 { 00049 FloatComplexQR::operator = (a); 00050 p = a.p; 00051 } 00052 return *this; 00053 } 00054 00055 ~FloatComplexQRP (void) { } 00056 00057 void init (const FloatComplexMatrix&, qr_type_t = qr_type_std); 00058 00059 PermMatrix P (void) const { return p; } 00060 00061 FloatColumnVector Pvec (void) const; 00062 00063 friend std::ostream& operator << (std::ostream&, const FloatComplexQRP&); 00064 00065 private: 00066 00067 PermMatrix p; 00068 }; 00069 00070 #endif 00071 00072 /* 00073 ;;; Local Variables: *** 00074 ;;; mode: C++ *** 00075 ;;; End: *** 00076 */