メインページ   クラス階層   構成   ファイル一覧   構成メンバ   ファイルメンバ  

dbleDET.h

解説を見る。
00001 /*
00002 
00003 Copyright (C) 1996, 1997 John W. Eaton
00004 
00005 This file is part of Octave.
00006 
00007 Octave is free software; you can redistribute it and/or modify it
00008 under the terms of the GNU General Public License as published by the
00009 Free Software Foundation; either version 2, or (at your option) any
00010 later version.
00011 
00012 Octave is distributed in the hope that it will be useful, but WITHOUT
00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00014 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00015 for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with Octave; see the file COPYING.  If not, write to the Free
00019 Software Foundation, 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00020 
00021 */
00022 
00023 #if !defined (octave_DET_h)
00024 #define octave_DET_h 1
00025 
00026 #if defined (__GNUG__) && defined (USE_PRAGMA_INTERFACE_IMPLEMENTATION)
00027 #pragma interface
00028 #endif
00029 
00030 #include <iostream>
00031 
00032 class
00033 DET
00034 {
00035 friend class Matrix;
00036 
00037 public:
00038 
00039   DET (void) { }
00040 
00041   DET (const DET& a)
00042     {
00043       det[0] = a.det[0];
00044       det[1] = a.det[1];
00045     }
00046 
00047   DET& operator = (const DET& a)
00048     {
00049       if (this != &a)
00050         {
00051           det[0] = a.det[0];
00052           det[1] = a.det[1];
00053         }
00054       return *this;
00055     }
00056 
00057   int value_will_overflow (void) const;
00058   int value_will_underflow (void) const;
00059 
00060   double coefficient (void) const;
00061 
00062   int exponent (void) const;
00063 
00064   double value (void) const;
00065 
00066   friend std::ostream&  operator << (std::ostream& os, const DET& a);
00067 
00068 private:
00069 
00070   DET (const double *d)
00071     {
00072       det[0] = d[0];
00073       det[1] = d[1];
00074     }
00075 
00076   double det [2];
00077 };
00078 
00079 #endif
00080 
00081 /*
00082 ;;; Local Variables: ***
00083 ;;; mode: C++ ***
00084 ;;; End: ***
00085 */

Wed Dec 29 11:51:11 2004に生成されました。 doxygen1.2.18
SEO [PR] 爆速!無料ブログ 無料ホームページ開設 無料ライブ放送