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


Golang vector.GslVectorComplex類代碼示例

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


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

示例1: Izamax

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

示例2: Zcopy

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

示例3: Zdotc

func Zdotc(x *vector.GslVectorComplex, y *vector.GslVectorComplex) (int32, complex128) {
	var _outptr_2 C.gsl_complex
	_result := int32(C.gsl_blas_zdotc((*C.gsl_vector_complex)(unsafe.Pointer(x.Ptr())), (*C.gsl_vector_complex)(unsafe.Pointer(y.Ptr())), &_outptr_2))
	return _result, *(*complex128)(unsafe.Pointer(&_outptr_2))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:5,代碼來源:blas.go

示例4: Gen

func Gen(a *matrix.GslMatrix, b *matrix.GslMatrix, alpha *vector.GslVectorComplex, beta *vector.GslVector, w *GslEigenGenWorkspace) int32 {
	return int32(C.gsl_eigen_gen((*C.gsl_matrix)(unsafe.Pointer(a.Ptr())), (*C.gsl_matrix)(unsafe.Pointer(b.Ptr())), (*C.gsl_vector_complex)(unsafe.Pointer(alpha.Ptr())), (*C.gsl_vector)(unsafe.Pointer(beta.Ptr())), (*C.gsl_eigen_gen_workspace)(unsafe.Pointer(w.Ptr()))))
}
開發者ID:dtromb,項目名稱:gogsl,代碼行數:3,代碼來源:eigen.go

示例5: Ztrsv

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

示例6: Zher

func Zher(uplo Uplo, alpha float64, x *vector.GslVectorComplex, a *matrix.GslMatrixComplex) int32 {
	return int32(C.gsl_blas_zher(C.CBLAS_UPLO_t(uplo), C.double(alpha), (*C.gsl_vector_complex)(unsafe.Pointer(x.Ptr())), (*C.gsl_matrix_complex)(unsafe.Pointer(a.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:blas.go

示例7: HermtdUnpack

func HermtdUnpack(a *matrix.GslMatrixComplex, tau *vector.GslVectorComplex, u *matrix.GslMatrixComplex, diag *vector.GslVector, subdiag *vector.GslVector) int32 {
	return int32(C.gsl_linalg_hermtd_unpack((*C.gsl_matrix_complex)(unsafe.Pointer(a.Ptr())), (*C.gsl_vector_complex)(unsafe.Pointer(tau.Ptr())), (*C.gsl_matrix_complex)(unsafe.Pointer(u.Ptr())), (*C.gsl_vector)(unsafe.Pointer(diag.Ptr())), (*C.gsl_vector)(unsafe.Pointer(subdiag.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:linalg.go

示例8: Zdscal

func Zdscal(alpha float64, x *vector.GslVectorComplex) {
	C.gsl_blas_zdscal(C.double(alpha), (*C.gsl_vector_complex)(unsafe.Pointer(x.Ptr())))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:blas.go

示例9: ComplexCholeskySvx

func ComplexCholeskySvx(cholesky *matrix.GslMatrixComplex, x *vector.GslVectorComplex) int32 {
	return int32(C.gsl_linalg_complex_cholesky_svx((*C.gsl_matrix_complex)(unsafe.Pointer(cholesky.Ptr())), (*C.gsl_vector_complex)(unsafe.Pointer(x.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:linalg.go

示例10: HermtdDecomp

func HermtdDecomp(a *matrix.GslMatrixComplex, tau *vector.GslVectorComplex) int32 {
	return int32(C.gsl_linalg_hermtd_decomp((*C.gsl_matrix_complex)(unsafe.Pointer(a.Ptr())), (*C.gsl_vector_complex)(unsafe.Pointer(tau.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:linalg.go

示例11: GenvSort

func GenvSort(alpha *vector.GslVectorComplex, beta *vector.GslVector, evec *matrix.GslMatrixComplex, sortType Sort) int32 {
	return int32(C.gsl_eigen_genv_sort((*C.gsl_vector_complex)(unsafe.Pointer(alpha.Ptr())), (*C.gsl_vector)(unsafe.Pointer(beta.Ptr())), (*C.gsl_matrix_complex)(unsafe.Pointer(evec.Ptr())), C.gsl_eigen_sort_t(sortType)))
}
開發者ID:dtromb,項目名稱:gogsl,代碼行數:3,代碼來源:eigen.go

示例12: NonsymmvSort

func NonsymmvSort(eval *vector.GslVectorComplex, evec *matrix.GslMatrixComplex, sortType Sort) int32 {
	return int32(C.gsl_eigen_nonsymmv_sort((*C.gsl_vector_complex)(unsafe.Pointer(eval.Ptr())), (*C.gsl_matrix_complex)(unsafe.Pointer(evec.Ptr())), C.gsl_eigen_sort_t(sortType)))
}
開發者ID:dtromb,項目名稱:gogsl,代碼行數:3,代碼來源:eigen.go

示例13: GenvQZ

func GenvQZ(a *matrix.GslMatrix, b *matrix.GslMatrix, alpha *vector.GslVectorComplex, beta *vector.GslVector, evec *matrix.GslMatrixComplex, q *matrix.GslMatrix, z *matrix.GslMatrix, w *GslEigenGenvWorkspace) int32 {
	return int32(C.gsl_eigen_genv_QZ((*C.gsl_matrix)(unsafe.Pointer(a.Ptr())), (*C.gsl_matrix)(unsafe.Pointer(b.Ptr())), (*C.gsl_vector_complex)(unsafe.Pointer(alpha.Ptr())), (*C.gsl_vector)(unsafe.Pointer(beta.Ptr())), (*C.gsl_matrix_complex)(unsafe.Pointer(evec.Ptr())), (*C.gsl_matrix)(unsafe.Pointer(q.Ptr())), (*C.gsl_matrix)(unsafe.Pointer(z.Ptr())), (*C.gsl_eigen_genv_workspace)(unsafe.Pointer(w.Ptr()))))
}
開發者ID:dtromb,項目名稱:gogsl,代碼行數:3,代碼來源:eigen.go

示例14: Zaxpy

func Zaxpy(alpha complex128, x *vector.GslVectorComplex, y *vector.GslVectorComplex) int32 {
	_arg_0 := complex_.GoComplexToGsl(alpha)
	return int32(C.gsl_blas_zaxpy(*(*C.gsl_complex)(unsafe.Pointer(_arg_0)), (*C.gsl_vector_complex)(unsafe.Pointer(x.Ptr())), (*C.gsl_vector_complex)(unsafe.Pointer(y.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:4,代碼來源:blas.go

示例15: ComplexHouseholderTransform

func ComplexHouseholderTransform(v *vector.GslVectorComplex) complex128 {
	_result := C.gsl_linalg_complex_householder_transform((*C.gsl_vector_complex)(unsafe.Pointer(v.Ptr())))
	return complex_.GslComplexToGo(uintptr(unsafe.Pointer(&_result)))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:4,代碼來源:linalg.go


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