当前位置: 首页>>代码示例>>C++>>正文


C++ matrix类代码示例

本文整理汇总了C++中matrix的典型用法代码示例。如果您正苦于以下问题:C++ matrix类的具体用法?C++ matrix怎么用?C++ matrix使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了matrix类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: SV_solve

 /**
  * C++ version of gsl_linalg_SV_solve().
  * @param U An orthogonal matrix
  * @param Q A matrix
  * @param S A vector
  * @param b A vector
  * @param x A vector
  * @return Error code on failure
  */
 inline int SV_solve( matrix const& U, matrix const& Q, vector const& S, vector const& b, vector& x ){
   return gsl_linalg_SV_solve( U.get(), Q.get(), S.get(), b.get(), x.get() ); } 
开发者ID:fujiisoup,项目名称:MyLibrary,代码行数:11,代码来源:linalg.hpp

示例2: LQ_decomp

 /**
  * C++ version of gsl_linalg_LQ_decomp().
  * @param A A matrix
  * @param tau A vector
  * @return Error code on failure
  */
 inline int LQ_decomp( matrix& A, vector& tau ){
   return gsl_linalg_LQ_decomp( A.get(), tau.get() ); } 
开发者ID:fujiisoup,项目名称:MyLibrary,代码行数:8,代码来源:linalg.hpp

示例3: LQ_lssolve_T

    /**
     * C++ version of gsl_linalg_LQ_lssolve_T().
     * @param LQ A matrix
     * @param tau A vector
     * @param b A vector
     * @param x A vector
     * @param residual A residual vector
     * @return Error code on failure
     */
    inline int LQ_lssolve_T( matrix const& LQ, vector const& tau, vector const& b,
			     vector& x, vector& residual ){
      return gsl_linalg_LQ_lssolve_T( LQ.get(), tau.get(), b.get(), x.get(), residual.get() ); } 
开发者ID:fujiisoup,项目名称:MyLibrary,代码行数:12,代码来源:linalg.hpp

示例4: QRPT_QRsolve

    /**
     * C++ version of gsl_linalg_QRPT_QRsolve().
     * @param Q A matrix
     * @param R A matrix
     * @param p A permutation
     * @param b A vector
     * @param x A vector
     * @return Error code on failure
     */
    inline int QRPT_QRsolve( matrix const& Q, matrix const& R, permutation const& p,
			     vector const& b, vector& x ){
      return gsl_linalg_QRPT_QRsolve( Q.get(), R.get(), p.get(), b.get(), x.get() ); } 
开发者ID:fujiisoup,项目名称:MyLibrary,代码行数:12,代码来源:linalg.hpp

示例5: householder_hm

 /**
  * C++ version of gsl_linalg_householder_hm().
  * @param tau A scalar
  * @param v A vector
  * @param A A matrix
  * @return Error code on failure
  */
 inline int householder_hm( double tau, vector const& v, matrix& A ){
   return gsl_linalg_householder_hm( tau, v.get(), A.get() ); } 
开发者ID:fujiisoup,项目名称:MyLibrary,代码行数:9,代码来源:linalg.hpp

示例6: R_svx

 /**
  * C++ version of gsl_linalg_R_svx().
  * @param R A matrix
  * @param x A vector
  * @return Error code on failure
  */
 inline int R_svx( matrix const& R, vector& x ){ return gsl_linalg_R_svx( R.get(), x.get() ); }
开发者ID:fujiisoup,项目名称:MyLibrary,代码行数:7,代码来源:linalg.hpp

示例7: QRPT_decomp2

    /**
     * C++ version of gsl_linalg_QRPT_decomp2().
     * @param A A matrix
     * @param q A matrix
     * @param r A matrix
     * @param tau A vector
     * @param p A permutation
     * @param signum The sign of the permutation
     * @param norm A vector used for column pivoting
     * @return Error code on failure
     */
    inline int QRPT_decomp2( matrix const& A, matrix& q, matrix& r, vector& tau,
			     permutation& p, int* signum, vector& norm ){
      return gsl_linalg_QRPT_decomp2( A.get(), q.get(), r.get(), tau.get(), p.get(), signum, norm.get() ); } 
开发者ID:fujiisoup,项目名称:MyLibrary,代码行数:14,代码来源:linalg.hpp

示例8: LU_lndet

 /**
  * C++ version of gsl_linalg_LU_lndet().
  * @param LU An LU decomposition matrix
  * @return The logarithm of the absolute value of
  * the determinant of the matrix with LU decomposition @c LU
  */
 inline double LU_lndet( matrix& LU ){ return gsl_linalg_LU_lndet( LU.get() ); } 
开发者ID:fujiisoup,项目名称:MyLibrary,代码行数:7,代码来源:linalg.hpp

示例9: LU_sgndet

 /**
  * C++ version of gsl_linalg_LU_sgndet().
  * @param lu An LU decomposition marix
  * @param signum The sign of the permutation
  * @return The sign of the determinant of the matrix with LU decomposition @c LU
  */
 inline int LU_sgndet( matrix& lu, int signum ){ return gsl_linalg_LU_sgndet( lu.get(), signum ); } 
开发者ID:fujiisoup,项目名称:MyLibrary,代码行数:7,代码来源:linalg.hpp

示例10: LU_invert

 /**
  * C++ version of gsl_linalg_LU_invert().
  * @param LU An LU decomposition matrix
  * @param p A permutation
  * @param inverse The inverse matrix
  * @return Error code on failure
  */
 inline int LU_invert( matrix const& LU, permutation const& p, matrix& inverse ){
   return gsl_linalg_LU_invert( LU.get(), p.get(), inverse.get() ); } 
开发者ID:fujiisoup,项目名称:MyLibrary,代码行数:9,代码来源:linalg.hpp

示例11: LU_det

 /**
  * C++ version of gsl_linalg_LU_det().
  * @param LU An LU decomposition matrix
  * @param signum The sign of the permutation
  * @return The determinant of the matrix with LU decomposition @c LU
  */
 inline double LU_det( matrix& LU, int signum ){ return gsl_linalg_LU_det( LU.get(), signum ); } 
开发者ID:fujiisoup,项目名称:MyLibrary,代码行数:7,代码来源:linalg.hpp

示例12: LU_refine

    /**
     * C++ version of gsl_linalg_LU_refine().
     * @param A A matrix
     * @param LU An LU decomposition matrix
     * @param p A permutation
     * @param b A vector
     * @param x A vector
     * @param residual A residual vector
     * @return Error code on failure
     */
    inline int LU_refine( matrix const& A, matrix const& LU, permutation const& p, vector const& b,
		   vector& x, vector& residual ){
      return gsl_linalg_LU_refine( A.get(), LU.get(), p.get(), b.get(), x.get(), residual.get() ); } 
开发者ID:fujiisoup,项目名称:MyLibrary,代码行数:13,代码来源:linalg.hpp

示例13: LU_svx

 /**
  * C++ version of gsl_linalg_LU_svx().
  * @param LU An LU decomposition matrix
  * @param p A permutation
  * @param x A vector
  * @return Error code on failure
  */
 inline int LU_svx( matrix const& LU, permutation const& p, vector& x ){
   return gsl_linalg_LU_svx( LU.get(), p.get(), x.get() ); } 
开发者ID:fujiisoup,项目名称:MyLibrary,代码行数:9,代码来源:linalg.hpp

示例14: LU_decomp

 /**
  * C++ version of gsl_linalg_LU_decomp().
  * @param A A matrix
  * @param p A permutation
  * @param signum The sign of the permutation
  * @return Error code on failure
  */
 inline int LU_decomp( matrix& A, permutation& p, int* signum ){
   return gsl_linalg_LU_decomp( A.get(), p.get(), signum ); } 
开发者ID:fujiisoup,项目名称:MyLibrary,代码行数:9,代码来源:linalg.hpp

示例15: QR_unpack

 /**
  * C++ version of gsl_linalg_QR_unpack().
  * @param QR A QR decomposition matrix
  * @param tau A vector
  * @param Q A matrix
  * @param R A matrix
  * @return Error code on failure
  */
 inline int QR_unpack( matrix const& QR, vector const& tau, matrix& Q, matrix& R ){
   return gsl_linalg_QR_unpack( QR.get(), tau.get(), Q.get(), R.get() ); } 
开发者ID:fujiisoup,项目名称:MyLibrary,代码行数:10,代码来源:linalg.hpp


注:本文中的matrix类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。