本文整理汇总了C++中vector_float::get方法的典型用法代码示例。如果您正苦于以下问题:C++ vector_float::get方法的具体用法?C++ vector_float::get怎么用?C++ vector_float::get使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vector_float
的用法示例。
在下文中一共展示了vector_float::get方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: sger
/**
* C++ version of gsl_blas_sger().
* @param alpha A constant
* @param X A vector
* @param Y A vector
* @param A A matrix
* @return Error code on failure
*/
int sger( float alpha, vector_float const& X, vector_float const& Y, matrix_float& A ){
return gsl_blas_sger( alpha, X.get(), Y.get(), A.get() ); }
示例2:
/**
* C++ version of gsl_blas_ssyr2().
* @param Uplo Upper or lower triangular
* @param alpha A constant
* @param X A vector
* @param Y A vector
* @param A A matrix
* @return Error code on failure
*/
int ssyr2( CBLAS_UPLO_t Uplo, float alpha, vector_float const& X, vector_float const& Y,
matrix_float& A ){ return gsl_blas_ssyr2( Uplo, alpha, X.get(), Y.get(), A.get() ); }
示例3: strsv
/**
* C++ version of gsl_blas_strsv().
* @param Uplo Upper or lower triangular
* @param TransA Transpose type
* @param Diag Diagonal type
* @param A A matrix
* @param X A vector
* @return Error code on failure
*/
int strsv( CBLAS_UPLO_t Uplo, CBLAS_TRANSPOSE_t TransA,
CBLAS_DIAG_t Diag, matrix_float const& A, vector_float& X ){
return gsl_blas_strsv( Uplo, TransA, Diag, A.get(), X.get() ); }
示例4: ssymv
/**
* C++ version of gsl_blas_ssymv().
* @param Uplo Upper or lower triangular
* @param alpha A constant
* @param A A matrix
* @param X A vector
* @param beta Another constant
* @param Y A vector
* @return Error code on failure
*/
int ssymv( CBLAS_UPLO_t Uplo, float alpha, matrix_float const& A,
vector_float const& X, float beta, vector_float& Y ){
return gsl_blas_ssymv( Uplo, alpha, A.get(), X.get(), beta, Y.get() ); }
示例5: sscal
/**
* C++ version of gsl_blas_sscal().
* @param alpha A constant
* @param X A vector
*/
void sscal( float alpha, vector_float& X ){ gsl_blas_sscal( alpha, X.get() ); }
示例6: sgemv
/**
* C++ version of gsl_blas_sgemv().
* @param TransA Transpose type
* @param alpha A constant
* @param A A matrix
* @param X A vector
* @param beta Another constant
* @param Y A vector
* @return Error code on failure
*/
int sgemv( CBLAS_TRANSPOSE_t TransA, float alpha, matrix_float const& A,
vector_float const& X, float beta, vector_float& Y ){
return gsl_blas_sgemv( TransA, alpha, A.get(), X.get(), beta, Y.get() ); }
示例7: srot
/**
* C++ version of gsl_blas_srot().
* @param X A vector
* @param Y A vector
* @param c A constant
* @param s A constant
* @return Error code on failure
*/
int srot( vector_float& X, vector_float& Y, float c, float s ){
return gsl_blas_srot( X.get(), Y.get(), c, s );
}
示例8: scopy
/**
* C++ version of gsl_blas_scopy().
* @param X A vector
* @param Y A vector
* @return Error code on failure
*/
int scopy( vector_float const& X, vector_float& Y ){ return gsl_blas_scopy( X.get(), Y.get() ); }
示例9: saxpy
/**
* C++ version of gsl_blas_saxpy().
* @param alpha A vector
* @param X A vector
* @param Y A vector
* @return Error code on failure
*/
int saxpy( float alpha, vector_float const& X, vector_float& Y ){
return gsl_blas_saxpy( alpha, X.get(), Y.get() ); }
示例10: sswap
/**
* C++ version of gsl_blas_sswap().
* @param X A vector
* @param Y A vector
* @return Error code on failure
*/
int sswap( vector_float& X, vector_float& Y ){ return gsl_blas_sswap( X.get(), Y.get() ); }
示例11: isamax
/**
* C++ version of gsl_blas_isamax().
* @param X A vector
* @return Index of the largest-magnitude element
*/
CBLAS_INDEX_t isamax( vector_float const& X ){ return gsl_blas_isamax( X.get() ); }
示例12: sasum
/**
* C++ version of gsl_blas_sasum().
* @param X A vector
* @return The absolute sum of the elements
*/
float sasum( vector_float const& X ){ return gsl_blas_sasum( X.get() ); }
示例13: dsdot
/**
* C++ version of gsl_blas_dsdot().
* @param X First vector
* @param Y Second vector
* @param result Vector product
* @return Error code on failure
*/
int dsdot( vector_float const& X, vector_float const& Y, double* result ){
return gsl_blas_dsdot( X.get(), Y.get(), result ); }
示例14: srotm
/**
* C++ version of gsl_blas_srotm().
* @param X A vector
* @param Y A vector
* @param P An array
* @return Error code on failure
*/
int srotm( vector_float& X, vector_float& Y, float const P[] ){
return gsl_blas_srotm( X.get(), Y.get(), P ); }
示例15: sdot
/**
* C++ version of gsl_blas_sdot().
* @param X First vector
* @param Y Second vector
* @param result Vector product
* @return Error code on failure
*/
int sdot( vector_float const& X, vector_float const& Y, float* result ){
return gsl_blas_sdot( X.get(), Y.get(), result ); }