Main Page | Class List | File List | Class Members | File Members | Related Pages

_dcovector.hpp

Go to the documentation of this file.
00001 //=============================================================================
00002 //! Smart-Temporary double-precision column vector class (DO NOT USE)
00003 class _dcovector
00004 {
00005 public:
00006   //// objects ////
00007   mutable long L; //!< global vector size
00008   mutable long Ll; //!< local vector size
00009   mutable long Desc[9]; //!< vector description
00010   mutable double* Array; //!< 1D array to store vector data
00011   
00012   //// constructor ////
00013   inline _dcovector();
00014   inline _dcovector(const _dcovector&);
00015   inline _dcovector(const dcovector&);
00016   inline _dcovector(const long&);
00017   inline ~_dcovector(); //destructor
00018   
00019   //// io ////
00020   inline CPPSL_double operator()(const long&) const;
00021   inline friend std::ostream& operator<<(std::ostream&, const dcovector&);
00022   
00023   //// calc ////
00024   //inline friend drovector t(const dcovector&);
00025   //inline friend double nrm2(const dcovector&);
00026   
00027   //// misc ////
00028   inline void destroy() const;
00029   
00030   //// unary ////
00031   inline friend const _dcovector& operator+(const _dcovector&);
00032   inline friend _dcovector operator-(const _dcovector&);
00033 
00034   //// + ////
00035   inline friend _dcovector operator+(const  dcovector&, const  dcovector&);
00036   inline friend _dcovector operator+(const  dcovector&, const _dcovector&);
00037   inline friend _dcovector operator+(const _dcovector&, const  dcovector&);
00038   inline friend _dcovector operator+(const _dcovector&, const _dcovector&);
00039   
00040   //// - ////
00041   inline friend _dcovector operator-(const  dcovector&, const  dcovector&);
00042   inline friend _dcovector operator-(const  dcovector&, const _dcovector&);
00043   inline friend _dcovector operator-(const _dcovector&, const  dcovector&);
00044   inline friend _dcovector operator-(const _dcovector&, const _dcovector&);
00045 
00046   //// * ////
00047   inline friend _dcovector operator*(const  dgematrix&, const  dcovector&);
00048   inline friend _dcovector operator*(const  dgematrix&, const _dcovector&);
00049   inline friend _dcovector operator*(const _dgematrix&, const  dcovector&);
00050   inline friend _dcovector operator*(const _dgematrix&, const _dcovector&);
00051   
00052   //inline friend _dcovector operator*(const  dgbmatrix&, const  dcovector&);
00053   //inline friend _dcovector operator*(const  dgbmatrix&, const _dcovector&);
00054   //inline friend _dcovector operator*(const _dgbmatrix&, const  dcovector&);
00055   //inline friend _dcovector operator*(const _dgbmatrix&, const _dcovector&);
00056   
00057   inline friend _dcovector operator*(const  dcovector&, const     double&);
00058   inline friend _dcovector operator*(const _dcovector&, const     double&);
00059   inline friend _dcovector operator*(const     double&, const  dcovector&);
00060   inline friend _dcovector operator*(const     double&, const _dcovector&);
00061   
00062   inline friend _dgematrix operator*(const _dcovector&, const  drovector&);
00063   inline friend _dgematrix operator*(const _dcovector&, const _drovector&);
00064   inline friend     double operator*(const  drovector&, const _dcovector&);
00065   inline friend     double operator*(const _drovector&, const _dcovector&);
00066   
00067   //// / ////
00068   inline friend _dcovector operator/(const  dcovector&, const     double&);
00069   inline friend _dcovector operator/(const _dcovector&, const     double&);
00070   
00071   //// % ////
00072   inline friend     double operator%(const  dcovector&, const _dcovector&);
00073   inline friend     double operator%(const _dcovector&, const  dcovector&);
00074   inline friend     double operator%(const _dcovector&, const _dcovector&);
00075   
00076   //// friend classes ////
00077   friend class  dgematrix;
00078   friend class _dgematrix;
00079   //friend class  dgbmatrix;
00080   //friend class _dgbmatrix;
00081   friend class  dcovector;
00082   friend class  drovector;
00083   friend class _drovector;
00084 };

Generated on Sat Jan 31 19:25:43 2004 for CPPScaLapack by doxygen 1.3.5