home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 21 / IOPROG_21.ISO / SOFT / LIBMAT.ZIP / CHOLDEC.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-16  |  1.6 KB  |  56 lines

  1. /**************************************************/
  2. /*    choldec.hpp header for cholDec class        */
  3. /**************************************************/
  4.  
  5.  
  6. /**************************************************/
  7. /*            MatClass Source File                */
  8. /*       Copyright of C. R. Birchenhall           */
  9. /*       University of Manchester, UK.            */
  10. /*   MatClass is freeware. This file should be    */
  11. /* made freely available to users of any software */
  12. /* whose creation is wholly or partly dependent   */
  13. /*                on this file.                   */
  14. /**************************************************/
  15.  
  16.  
  17. #ifndef MATDEC_H
  18. #include "matdec.hpp"
  19. #endif
  20.  
  21. #ifndef MATCHOL_H
  22. #include "matchol.hpp"
  23. #endif
  24.  
  25. #ifndef MATDECCH_H
  26.  
  27. #define MATDECCH_H
  28.  
  29. class cholDec : public matDec
  30. {
  31.    public :
  32.  
  33.       cholDec( void ) ;
  34.       cholDec( const matrix& x ) ;
  35.       cholDec( const cholDec& cd ) ;
  36.       virtual ~cholDec( void ) ;
  37.       cholDec& operator = ( const cholDec& cd ) ;
  38.  
  39.       void chol( matrix& x ) ;
  40.       void release( matrix& x ) ;
  41.       virtual void decompose( void ) ;
  42.       virtual void solve( matrix& b ) ;
  43.       virtual void transSolve( matrix& b ) ;
  44.       virtual void det( REAL& d1, REAL& d2 ) ;
  45.       virtual outFile& info( outFile& f ) M_CONST ;
  46.       virtual outFile& print( char* decName, outFile& f ) M_CONST ;
  47.  
  48.       friend outFile& operator << ( outFile& f, cholDec& cd )
  49.          { return cd.put(f) ; }
  50.       friend inFile& operator >> ( inFile& f, cholDec& cd )
  51.          { return cd.get(f) ; }
  52.  
  53. } ; // class cholDec
  54.  
  55. #endif
  56.