當前位置: 首頁>>代碼示例>>Golang>>正文


Golang vector.GslVectorComplexFloat類代碼示例

本文整理匯總了Golang中github.com/dtromb/gogsl/vector.GslVectorComplexFloat的典型用法代碼示例。如果您正苦於以下問題:Golang GslVectorComplexFloat類的具體用法?Golang GslVectorComplexFloat怎麽用?Golang GslVectorComplexFloat使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了GslVectorComplexFloat類的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。

示例1: Scasum

func Scasum(x *vector.GslVectorComplexFloat) float32 {
	return float32(C.gsl_blas_scasum((*C.gsl_vector_complex_float)(unsafe.Pointer(x.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:blas.go

示例2: Cher2

func Cher2(uplo Uplo, alpha complex64, x *vector.GslVectorComplexFloat, y *vector.GslVectorComplexFloat, a *matrix.GslMatrixComplexFloat) int32 {
	_arg_1 := complex_.GoComplexFloatToGsl(alpha)
	return int32(C.gsl_blas_cher2(C.CBLAS_UPLO_t(uplo), *(*C.gsl_complex_float)(unsafe.Pointer(_arg_1)), (*C.gsl_vector_complex_float)(unsafe.Pointer(x.Ptr())), (*C.gsl_vector_complex_float)(unsafe.Pointer(y.Ptr())), (*C.gsl_matrix_complex_float)(unsafe.Pointer(a.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:4,代碼來源:blas.go

示例3: Cdotc

func Cdotc(x *vector.GslVectorComplexFloat, y *vector.GslVectorComplexFloat) (int32, complex64) {
	var _outptr_2 C.gsl_complex_float
	_result := int32(C.gsl_blas_cdotc((*C.gsl_vector_complex_float)(unsafe.Pointer(x.Ptr())), (*C.gsl_vector_complex_float)(unsafe.Pointer(y.Ptr())), &_outptr_2))
	return _result, *(*complex64)(unsafe.Pointer(&_outptr_2))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:5,代碼來源:blas.go

示例4: Cgerc

func Cgerc(alpha complex64, x *vector.GslVectorComplexFloat, y *vector.GslVectorComplexFloat, a *matrix.GslMatrixComplexFloat) int32 {
	_arg_0 := complex_.GoComplexFloatToGsl(alpha)
	return int32(C.gsl_blas_cgerc(*(*C.gsl_complex_float)(unsafe.Pointer(_arg_0)), (*C.gsl_vector_complex_float)(unsafe.Pointer(x.Ptr())), (*C.gsl_vector_complex_float)(unsafe.Pointer(y.Ptr())), (*C.gsl_matrix_complex_float)(unsafe.Pointer(a.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:4,代碼來源:blas.go

示例5: Cher

func Cher(uplo Uplo, alpha float32, x *vector.GslVectorComplexFloat, a *matrix.GslMatrixComplexFloat) int32 {
	return int32(C.gsl_blas_cher(C.CBLAS_UPLO_t(uplo), C.float(alpha), (*C.gsl_vector_complex_float)(unsafe.Pointer(x.Ptr())), (*C.gsl_matrix_complex_float)(unsafe.Pointer(a.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:blas.go

示例6: Cgemv

func Cgemv(transA Transpose, alpha complex64, a *matrix.GslMatrixComplexFloat, x *vector.GslVectorComplexFloat, beta complex64, y *vector.GslVectorComplexFloat) int32 {
	_arg_1 := complex_.GoComplexFloatToGsl(alpha)
	_arg_4 := complex_.GoComplexFloatToGsl(beta)
	return int32(C.gsl_blas_cgemv(C.CBLAS_TRANSPOSE_t(transA), *(*C.gsl_complex_float)(unsafe.Pointer(_arg_1)), (*C.gsl_matrix_complex_float)(unsafe.Pointer(a.Ptr())), (*C.gsl_vector_complex_float)(unsafe.Pointer(x.Ptr())), *(*C.gsl_complex_float)(unsafe.Pointer(_arg_4)), (*C.gsl_vector_complex_float)(unsafe.Pointer(y.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:5,代碼來源:blas.go

示例7: Ctrsv

func Ctrsv(uplo Uplo, transA Transpose, diag Diag, a *matrix.GslMatrixComplexFloat, x *vector.GslVectorComplexFloat) int32 {
	return int32(C.gsl_blas_ctrsv(C.CBLAS_UPLO_t(uplo), C.CBLAS_TRANSPOSE_t(transA), C.CBLAS_DIAG_t(diag), (*C.gsl_matrix_complex_float)(unsafe.Pointer(a.Ptr())), (*C.gsl_vector_complex_float)(unsafe.Pointer(x.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:blas.go

示例8: Csscal

func Csscal(alpha float32, x *vector.GslVectorComplexFloat) {
	C.gsl_blas_csscal(C.float(alpha), (*C.gsl_vector_complex_float)(unsafe.Pointer(x.Ptr())))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:blas.go

示例9: Cscal

func Cscal(alpha complex64, x *vector.GslVectorComplexFloat) {
	_arg_0 := complex_.GoComplexFloatToGsl(alpha)
	C.gsl_blas_cscal(*(*C.gsl_complex_float)(unsafe.Pointer(_arg_0)), (*C.gsl_vector_complex_float)(unsafe.Pointer(x.Ptr())))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:4,代碼來源:blas.go

示例10: Caxpy

func Caxpy(alpha complex64, x *vector.GslVectorComplexFloat, y *vector.GslVectorComplexFloat) int32 {
	_arg_0 := complex_.GoComplexFloatToGsl(alpha)
	return int32(C.gsl_blas_caxpy(*(*C.gsl_complex_float)(unsafe.Pointer(_arg_0)), (*C.gsl_vector_complex_float)(unsafe.Pointer(x.Ptr())), (*C.gsl_vector_complex_float)(unsafe.Pointer(y.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:4,代碼來源:blas.go

示例11: Ccopy

func Ccopy(x *vector.GslVectorComplexFloat, y *vector.GslVectorComplexFloat) int32 {
	return int32(C.gsl_blas_ccopy((*C.gsl_vector_complex_float)(unsafe.Pointer(x.Ptr())), (*C.gsl_vector_complex_float)(unsafe.Pointer(y.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:blas.go

示例12: Icamax

func Icamax(x *vector.GslVectorComplexFloat) Index {
	return Index(C.gsl_blas_icamax((*C.gsl_vector_complex_float)(unsafe.Pointer(x.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:blas.go


注:本文中的github.com/dtromb/gogsl/vector.GslVectorComplexFloat類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。