예제 #1
0
파일: linalg.go 프로젝트: postfix/gsl-1
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()))))
}
예제 #2
0
파일: blas.go 프로젝트: postfix/gsl-1
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()))))
}
예제 #3
0
파일: eigen.go 프로젝트: dtromb/gogsl
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()))))
}
예제 #4
0
파일: blas.go 프로젝트: postfix/gsl-1
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()))))
}
예제 #5
0
파일: blas.go 프로젝트: postfix/gsl-1
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()))))
}
예제 #6
0
파일: blas.go 프로젝트: postfix/gsl-1
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()))))
}
예제 #7
0
파일: blas.go 프로젝트: postfix/gsl-1
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()))))
}
예제 #8
0
파일: linalg.go 프로젝트: postfix/gsl-1
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))
}
예제 #9
0
파일: linalg.go 프로젝트: postfix/gsl-1
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()))))
}
예제 #10
0
파일: eigen.go 프로젝트: dtromb/gogsl
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)))
}
예제 #11
0
파일: linalg.go 프로젝트: postfix/gsl-1
func ComplexCholeskyDecomp(a *matrix.GslMatrixComplex) int32 {
	return int32(C.gsl_linalg_complex_cholesky_decomp((*C.gsl_matrix_complex)(unsafe.Pointer(a.Ptr()))))
}
예제 #12
0
파일: eigen.go 프로젝트: dtromb/gogsl
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)))
}
예제 #13
0
파일: eigen.go 프로젝트: dtromb/gogsl
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()))))
}
예제 #14
0
파일: eigen.go 프로젝트: dtromb/gogsl
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()))))
}
예제 #15
0
파일: linalg.go 프로젝트: postfix/gsl-1
func ComplexLULndet(lU *matrix.GslMatrixComplex) float64 {
	return float64(C.gsl_linalg_complex_LU_lndet((*C.gsl_matrix_complex)(unsafe.Pointer(lU.Ptr()))))
}
예제 #16
0
파일: linalg.go 프로젝트: postfix/gsl-1
func ComplexCholeskyInvert(cholesky *matrix.GslMatrixComplex) int32 {
	return int32(C.gsl_linalg_complex_cholesky_invert((*C.gsl_matrix_complex)(unsafe.Pointer(cholesky.Ptr()))))
}
예제 #17
0
파일: linalg.go 프로젝트: postfix/gsl-1
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)))
}
예제 #18
0
파일: linalg.go 프로젝트: postfix/gsl-1
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()))))
}
예제 #19
0
파일: blas.go 프로젝트: postfix/gsl-1
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()))))
}
예제 #20
0
파일: linalg.go 프로젝트: postfix/gsl-1
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()))))
}
예제 #21
0
파일: blas.go 프로젝트: postfix/gsl-1
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()))))
}
예제 #22
0
파일: linalg.go 프로젝트: postfix/gsl-1
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()))))
}
예제 #23
0
파일: blas.go 프로젝트: postfix/gsl-1
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()))))
}
예제 #24
0
파일: linalg.go 프로젝트: postfix/gsl-1
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()))))
}
예제 #25
0
파일: blas.go 프로젝트: postfix/gsl-1
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()))))
}
예제 #26
0
파일: linalg.go 프로젝트: postfix/gsl-1
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()))))
}
예제 #27
0
파일: blas.go 프로젝트: postfix/gsl-1
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()))))
}
예제 #28
0
파일: eigen.go 프로젝트: dtromb/gogsl
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()))))
}