Beispiel #1
0
func Izamax(x *vector.GslVectorComplex) Index {
	return Index(C.gsl_blas_izamax((*C.gsl_vector_complex)(unsafe.Pointer(x.Ptr()))))
}
Beispiel #2
0
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()))))
}
Beispiel #3
0
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))
}
Beispiel #4
0
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()))))
}
Beispiel #5
0
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()))))
}
Beispiel #6
0
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()))))
}
Beispiel #7
0
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()))))
}
Beispiel #8
0
func Zdscal(alpha float64, x *vector.GslVectorComplex) {
	C.gsl_blas_zdscal(C.double(alpha), (*C.gsl_vector_complex)(unsafe.Pointer(x.Ptr())))
}
Beispiel #9
0
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()))))
}
Beispiel #10
0
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()))))
}
Beispiel #11
0
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)))
}
Beispiel #12
0
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)))
}
Beispiel #13
0
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()))))
}
Beispiel #14
0
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()))))
}
Beispiel #15
0
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)))
}
Beispiel #16
0
func Zscal(alpha complex128, x *vector.GslVectorComplex) {
	_arg_0 := complex_.GoComplexToGsl(alpha)
	C.gsl_blas_zscal(*(*C.gsl_complex)(unsafe.Pointer(_arg_0)), (*C.gsl_vector_complex)(unsafe.Pointer(x.Ptr())))
}
Beispiel #17
0
func ComplexHouseholderMh(tau complex128, v *vector.GslVectorComplex, a *matrix.GslMatrixComplex) int32 {
	_arg_0 := complex_.GoComplexToGsl(tau)
	return int32(C.gsl_linalg_complex_householder_mh(*(*C.gsl_complex)(unsafe.Pointer(_arg_0)), (*C.gsl_vector_complex)(unsafe.Pointer(v.Ptr())), (*C.gsl_matrix_complex)(unsafe.Pointer(a.Ptr()))))
}
Beispiel #18
0
func Zgemv(transA Transpose, alpha complex128, a *matrix.GslMatrixComplex, x *vector.GslVectorComplex, beta complex128, y *vector.GslVectorComplex) int32 {
	_arg_1 := complex_.GoComplexToGsl(alpha)
	_arg_4 := complex_.GoComplexToGsl(beta)
	return int32(C.gsl_blas_zgemv(C.CBLAS_TRANSPOSE_t(transA), *(*C.gsl_complex)(unsafe.Pointer(_arg_1)), (*C.gsl_matrix_complex)(unsafe.Pointer(a.Ptr())), (*C.gsl_vector_complex)(unsafe.Pointer(x.Ptr())), *(*C.gsl_complex)(unsafe.Pointer(_arg_4)), (*C.gsl_vector_complex)(unsafe.Pointer(y.Ptr()))))
}
Beispiel #19
0
func ComplexHouseholderHv(tau complex128, v *vector.GslVectorComplex, w *vector.GslVectorComplex) int32 {
	_arg_0 := complex_.GoComplexToGsl(tau)
	return int32(C.gsl_linalg_complex_householder_hv(*(*C.gsl_complex)(unsafe.Pointer(_arg_0)), (*C.gsl_vector_complex)(unsafe.Pointer(v.Ptr())), (*C.gsl_vector_complex)(unsafe.Pointer(w.Ptr()))))
}
Beispiel #20
0
func Zgerc(alpha complex128, x *vector.GslVectorComplex, y *vector.GslVectorComplex, a *matrix.GslMatrixComplex) int32 {
	_arg_0 := complex_.GoComplexToGsl(alpha)
	return int32(C.gsl_blas_zgerc(*(*C.gsl_complex)(unsafe.Pointer(_arg_0)), (*C.gsl_vector_complex)(unsafe.Pointer(x.Ptr())), (*C.gsl_vector_complex)(unsafe.Pointer(y.Ptr())), (*C.gsl_matrix_complex)(unsafe.Pointer(a.Ptr()))))
}
Beispiel #21
0
func ComplexLUSvx(lU *matrix.GslMatrixComplex, p *permutation.GslPermutation, x *vector.GslVectorComplex) int32 {
	return int32(C.gsl_linalg_complex_LU_svx((*C.gsl_matrix_complex)(unsafe.Pointer(lU.Ptr())), (*C.gsl_permutation)(unsafe.Pointer(p.Ptr())), (*C.gsl_vector_complex)(unsafe.Pointer(x.Ptr()))))
}
Beispiel #22
0
func Zher2(uplo Uplo, alpha complex128, x *vector.GslVectorComplex, y *vector.GslVectorComplex, a *matrix.GslMatrixComplex) int32 {
	_arg_1 := complex_.GoComplexToGsl(alpha)
	return int32(C.gsl_blas_zher2(C.CBLAS_UPLO_t(uplo), *(*C.gsl_complex)(unsafe.Pointer(_arg_1)), (*C.gsl_vector_complex)(unsafe.Pointer(x.Ptr())), (*C.gsl_vector_complex)(unsafe.Pointer(y.Ptr())), (*C.gsl_matrix_complex)(unsafe.Pointer(a.Ptr()))))
}
Beispiel #23
0
func ComplexLURefine(a *matrix.GslMatrixComplex, lU *matrix.GslMatrixComplex, p *permutation.GslPermutation, b *vector.GslVectorComplex, x *vector.GslVectorComplex, residual *vector.GslVectorComplex) int32 {
	return int32(C.gsl_linalg_complex_LU_refine((*C.gsl_matrix_complex)(unsafe.Pointer(a.Ptr())), (*C.gsl_matrix_complex)(unsafe.Pointer(lU.Ptr())), (*C.gsl_permutation)(unsafe.Pointer(p.Ptr())), (*C.gsl_vector_complex)(unsafe.Pointer(b.Ptr())), (*C.gsl_vector_complex)(unsafe.Pointer(x.Ptr())), (*C.gsl_vector_complex)(unsafe.Pointer(residual.Ptr()))))
}
Beispiel #24
0
func Dzasum(x *vector.GslVectorComplex) float64 {
	return float64(C.gsl_blas_dzasum((*C.gsl_vector_complex)(unsafe.Pointer(x.Ptr()))))
}
Beispiel #25
0
func NonsymmvZ(a *matrix.GslMatrix, eval *vector.GslVectorComplex, evec *matrix.GslMatrixComplex, z *matrix.GslMatrix, w *GslEigenNonsymmvWorkspace) int32 {
	return int32(C.gsl_eigen_nonsymmv_Z((*C.gsl_matrix)(unsafe.Pointer(a.Ptr())), (*C.gsl_vector_complex)(unsafe.Pointer(eval.Ptr())), (*C.gsl_matrix_complex)(unsafe.Pointer(evec.Ptr())), (*C.gsl_matrix)(unsafe.Pointer(z.Ptr())), (*C.gsl_eigen_nonsymmv_workspace)(unsafe.Pointer(w.Ptr()))))
}