Changeset 1424 in Sophya for trunk/SophyaExt/LinAlg/intflapack.h
- Timestamp:
- Feb 23, 2001, 6:47:44 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaExt/LinAlg/intflapack.h
r1342 r1424 17 17 virtual int SVD(TArray<T>& a, TArray<T> & s, TArray<T> & u, TArray<T> & vt); 18 18 19 //! Set the workspace size factor for LAPACK routines 19 20 inline void SetWorkSpaceSizeFactor(int f = 2) 20 21 { wspace_size_factor = (f > 1) ? f : 1; } 22 23 //! Returns the workspace size factor 21 24 inline int GetWorkSpaceSizeFactor() 22 25 { return wspace_size_factor; } … … 29 32 }; 30 33 34 /*! \ingroup LinAlg 35 \fn LapackLinSolve(TArray<T>&, TArray<T> &) 36 \brief Solves the linear system A*X = B using LapackServer. 37 */ 31 38 template <class T> 32 39 inline int LapackLinSolve(TArray<T>& a, TArray<T> & b) 33 40 { LapackServer<T> lps; return( lps.LinSolve(a, b) ); } 34 41 42 /*! \ingroup LinAlg 43 \fn LapackSVD(TArray<T>&, TArray<T> &) 44 \brief SVD decomposition using LapackServer. 45 */ 35 46 template <class T> 36 47 inline int LapackSVD(TArray<T>& a, TArray<T> & s) 37 48 { LapackServer<T> lps; return( lps.SVD(a, s) ); } 38 49 50 51 /*! \ingroup LinAlg 52 \fn LapackSVD(TArray<T>&, TArray<T> &, TArray<T> &, TArray<T> &) 53 \brief SVD decomposition using LapackServer. 54 */ 39 55 template <class T> 40 56 inline int LapackSVD(TArray<T>& a, TArray<T> & s, TArray<T> & u, TArray<T> & vt) … … 44 60 } // Fin du namespace 45 61 46 void rztest_lapack(TArray<r_4>& a, TArray<r_4>& b);47 48 62 #endif
Note:
See TracChangeset
for help on using the changeset viewer.