Exemple #1
0
func ComplexLUInvert(lU *matrix.GslMatrixComplex, p *permutation.GslPermutation, inverse *matrix.GslMatrixComplex) int32 {
	return int32(C.gsl_linalg_complex_LU_invert((*C.gsl_matrix_complex)(unsafe.Pointer(lU.Ptr())), (*C.gsl_permutation)(unsafe.Pointer(p.Ptr())), (*C.gsl_matrix_complex)(unsafe.Pointer(inverse.Ptr()))))
}
Exemple #2
0
func Zherk(uplo Uplo, trans Transpose, alpha float64, a *matrix.GslMatrixComplex, beta float64, c *matrix.GslMatrixComplex) int32 {
	return int32(C.gsl_blas_zherk(C.CBLAS_UPLO_t(uplo), C.CBLAS_TRANSPOSE_t(trans), C.double(alpha), (*C.gsl_matrix_complex)(unsafe.Pointer(a.Ptr())), C.double(beta), (*C.gsl_matrix_complex)(unsafe.Pointer(c.Ptr()))))
}
Exemple #3
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()))))
}
Exemple #4
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()))))
}
Exemple #5
0
func Zhemm(side Side, uplo Uplo, alpha complex128, a *matrix.GslMatrixComplex, b *matrix.GslMatrixComplex, beta complex128, c *matrix.GslMatrixComplex) int32 {
	_arg_2 := complex_.GoComplexToGsl(alpha)
	_arg_5 := complex_.GoComplexToGsl(beta)
	return int32(C.gsl_blas_zhemm(C.CBLAS_SIDE_t(side), C.CBLAS_UPLO_t(uplo), *(*C.gsl_complex)(unsafe.Pointer(_arg_2)), (*C.gsl_matrix_complex)(unsafe.Pointer(a.Ptr())), (*C.gsl_matrix_complex)(unsafe.Pointer(b.Ptr())), *(*C.gsl_complex)(unsafe.Pointer(_arg_5)), (*C.gsl_matrix_complex)(unsafe.Pointer(c.Ptr()))))
}
Exemple #6
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()))))
}
Exemple #7
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()))))
}
Exemple #8
0
func ComplexLUDecomp(a *matrix.GslMatrixComplex, p *permutation.GslPermutation) (int32, int32) {
	var _outptr_2 C.int
	_result := int32(C.gsl_linalg_complex_LU_decomp((*C.gsl_matrix_complex)(unsafe.Pointer(a.Ptr())), (*C.gsl_permutation)(unsafe.Pointer(p.Ptr())), &_outptr_2))
	return _result, *(*int32)(unsafe.Pointer(&_outptr_2))
}
Exemple #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()))))
}
Exemple #10
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)))
}
Exemple #11
0
func ComplexCholeskyDecomp(a *matrix.GslMatrixComplex) int32 {
	return int32(C.gsl_linalg_complex_cholesky_decomp((*C.gsl_matrix_complex)(unsafe.Pointer(a.Ptr()))))
}
Exemple #12
0
func GenhermvSort(eval *vector.GslVector, evec *matrix.GslMatrixComplex, sortType Sort) int32 {
	return int32(C.gsl_eigen_genhermv_sort((*C.gsl_vector)(unsafe.Pointer(eval.Ptr())), (*C.gsl_matrix_complex)(unsafe.Pointer(evec.Ptr())), C.gsl_eigen_sort_t(sortType)))
}
Exemple #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()))))
}
Exemple #14
0
func Genhermv(a *matrix.GslMatrixComplex, b *matrix.GslMatrixComplex, eval *vector.GslVector, evec *matrix.GslMatrixComplex, w *GslEigenGenhermvWorkspace) int32 {
	return int32(C.gsl_eigen_genhermv((*C.gsl_matrix_complex)(unsafe.Pointer(a.Ptr())), (*C.gsl_matrix_complex)(unsafe.Pointer(b.Ptr())), (*C.gsl_vector)(unsafe.Pointer(eval.Ptr())), (*C.gsl_matrix_complex)(unsafe.Pointer(evec.Ptr())), (*C.gsl_eigen_genhermv_workspace)(unsafe.Pointer(w.Ptr()))))
}
Exemple #15
0
func ComplexLULndet(lU *matrix.GslMatrixComplex) float64 {
	return float64(C.gsl_linalg_complex_LU_lndet((*C.gsl_matrix_complex)(unsafe.Pointer(lU.Ptr()))))
}
Exemple #16
0
func ComplexCholeskyInvert(cholesky *matrix.GslMatrixComplex) int32 {
	return int32(C.gsl_linalg_complex_cholesky_invert((*C.gsl_matrix_complex)(unsafe.Pointer(cholesky.Ptr()))))
}
Exemple #17
0
func ComplexLUSgndet(lU *matrix.GslMatrixComplex, signum int32) complex128 {
	_result := C.gsl_linalg_complex_LU_sgndet((*C.gsl_matrix_complex)(unsafe.Pointer(lU.Ptr())), C.int(signum))
	return complex_.GslComplexToGo(uintptr(unsafe.Pointer(&_result)))
}
Exemple #18
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()))))
}
Exemple #19
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()))))
}
Exemple #20
0
func HermtdUnpackT(a *matrix.GslMatrixComplex, diag *vector.GslVector, subdiag *vector.GslVector) int32 {
	return int32(C.gsl_linalg_hermtd_unpack_T((*C.gsl_matrix_complex)(unsafe.Pointer(a.Ptr())), (*C.gsl_vector)(unsafe.Pointer(diag.Ptr())), (*C.gsl_vector)(unsafe.Pointer(subdiag.Ptr()))))
}
Exemple #21
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()))))
}
Exemple #22
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()))))
}
Exemple #23
0
func Zgemm(transA Transpose, transB Transpose, alpha complex128, a *matrix.GslMatrixComplex, b *matrix.GslMatrixComplex, beta complex128, c *matrix.GslMatrixComplex) int32 {
	_arg_2 := complex_.GoComplexToGsl(alpha)
	_arg_5 := complex_.GoComplexToGsl(beta)
	return int32(C.gsl_blas_zgemm(C.CBLAS_TRANSPOSE_t(transA), C.CBLAS_TRANSPOSE_t(transB), *(*C.gsl_complex)(unsafe.Pointer(_arg_2)), (*C.gsl_matrix_complex)(unsafe.Pointer(a.Ptr())), (*C.gsl_matrix_complex)(unsafe.Pointer(b.Ptr())), *(*C.gsl_complex)(unsafe.Pointer(_arg_5)), (*C.gsl_matrix_complex)(unsafe.Pointer(c.Ptr()))))
}
Exemple #24
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()))))
}
Exemple #25
0
func Ztrsm(side Side, uplo Uplo, transA Transpose, diag Diag, alpha complex128, a *matrix.GslMatrixComplex, b *matrix.GslMatrixComplex) int32 {
	_arg_4 := complex_.GoComplexToGsl(alpha)
	return int32(C.gsl_blas_ztrsm(C.CBLAS_SIDE_t(side), C.CBLAS_UPLO_t(uplo), C.CBLAS_TRANSPOSE_t(transA), C.CBLAS_DIAG_t(diag), *(*C.gsl_complex)(unsafe.Pointer(_arg_4)), (*C.gsl_matrix_complex)(unsafe.Pointer(a.Ptr())), (*C.gsl_matrix_complex)(unsafe.Pointer(b.Ptr()))))
}
Exemple #26
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()))))
}
Exemple #27
0
func Zher2k(uplo Uplo, trans Transpose, alpha complex128, a *matrix.GslMatrixComplex, b *matrix.GslMatrixComplex, beta float64, c *matrix.GslMatrixComplex) int32 {
	_arg_2 := complex_.GoComplexToGsl(alpha)
	return int32(C.gsl_blas_zher2k(C.CBLAS_UPLO_t(uplo), C.CBLAS_TRANSPOSE_t(trans), *(*C.gsl_complex)(unsafe.Pointer(_arg_2)), (*C.gsl_matrix_complex)(unsafe.Pointer(a.Ptr())), (*C.gsl_matrix_complex)(unsafe.Pointer(b.Ptr())), C.double(beta), (*C.gsl_matrix_complex)(unsafe.Pointer(c.Ptr()))))
}
Exemple #28
0
func Herm(a *matrix.GslMatrixComplex, eval *vector.GslVector, w *GslEigenHermWorkspace) int32 {
	return int32(C.gsl_eigen_herm((*C.gsl_matrix_complex)(unsafe.Pointer(a.Ptr())), (*C.gsl_vector)(unsafe.Pointer(eval.Ptr())), (*C.gsl_eigen_herm_workspace)(unsafe.Pointer(w.Ptr()))))
}