예제 #1
0
파일: lapack.go 프로젝트: kortschak/lapack
func Cpotrs(o blas.Order, ul blas.Uplo, n int, nRHS int, a []complex64, lda int, b []complex64, ldb int) int {
	return int(C.clapack_cpotrs(C.enum_CBLAS_ORDER(o), C.enum_CBLAS_UPLO(ul), C.int(n), C.int(nRHS), unsafe.Pointer(&a[0]), C.int(lda), unsafe.Pointer(&b[0]), C.int(ldb)))
}
예제 #2
0
파일: lapack.go 프로젝트: kortschak/lapack
func Cgetrs(o blas.Order, t blas.Transpose, n int, nRHS int, a []complex64, lda int, ipiv []int32, b []complex64, ldb int) int {
	return int(C.clapack_cgetrs(C.enum_CBLAS_ORDER(o), C.enum_CBLAS_TRANSPOSE(t), C.int(n), C.int(nRHS), unsafe.Pointer(&a[0]), C.int(lda), (*C.int)(&ipiv[0]), unsafe.Pointer(&b[0]), C.int(ldb)))
}
예제 #3
0
파일: lapack.go 프로젝트: kortschak/lapack
func Cgetri(o blas.Order, n int, a []complex64, lda int, ipiv []int32) int {
	return int(C.clapack_cgetri(C.enum_CBLAS_ORDER(o), C.int(n), unsafe.Pointer(&a[0]), C.int(lda), (*C.int)(&ipiv[0])))
}
예제 #4
0
파일: lapack.go 프로젝트: kortschak/lapack
func Dgetri(o blas.Order, n int, a []float64, lda int, ipiv []int32) int {
	return int(C.clapack_dgetri(C.enum_CBLAS_ORDER(o), C.int(n), (*C.double)(&a[0]), C.int(lda), (*C.int)(&ipiv[0])))
}
예제 #5
0
파일: lapack.go 프로젝트: kortschak/lapack
func Dpotrs(o blas.Order, ul blas.Uplo, n int, nRHS int, a []float64, lda int, b []float64, ldb int) int {
	return int(C.clapack_dpotrs(C.enum_CBLAS_ORDER(o), C.enum_CBLAS_UPLO(ul), C.int(n), C.int(nRHS), (*C.double)(&a[0]), C.int(lda), (*C.double)(&b[0]), C.int(ldb)))
}
예제 #6
0
파일: lapack.go 프로젝트: kortschak/lapack
func Dgetrs(o blas.Order, t blas.Transpose, n int, nRHS int, a []float64, lda int, ipiv []int32, b []float64, ldb int) int {
	return int(C.clapack_dgetrs(C.enum_CBLAS_ORDER(o), C.enum_CBLAS_TRANSPOSE(t), C.int(n), C.int(nRHS), (*C.double)(&a[0]), C.int(lda), (*C.int)(&ipiv[0]), (*C.double)(&b[0]), C.int(ldb)))
}
예제 #7
0
파일: lapack.go 프로젝트: kortschak/lapack
func Dgesv(o blas.Order, n int, nRHS int, a []float64, lda int, ipiv []int32, b []float64, ldb int) int {
	return int(C.clapack_dgesv(C.enum_CBLAS_ORDER(o), C.int(n), C.int(nRHS), (*C.double)(&a[0]), C.int(lda), (*C.int)(&ipiv[0]), (*C.double)(&b[0]), C.int(ldb)))
}
예제 #8
0
파일: lapack.go 프로젝트: kortschak/lapack
func Sgetri(o blas.Order, n int, a []float32, lda int, ipiv []int32) int {
	return int(C.clapack_sgetri(C.enum_CBLAS_ORDER(o), C.int(n), (*C.float)(&a[0]), C.int(lda), (*C.int)(&ipiv[0])))
}
예제 #9
0
파일: lapack.go 프로젝트: kortschak/lapack
func Zgetrf(o blas.Order, m int, n int, a []complex128, lda int, ipiv []int32) int {
	return int(C.clapack_zgetrf(C.enum_CBLAS_ORDER(o), C.int(m), C.int(n), unsafe.Pointer(&a[0]), C.int(lda), (*C.int)(&ipiv[0])))
}
예제 #10
0
파일: lapack.go 프로젝트: kortschak/lapack
func Zgesv(o blas.Order, n int, nRHS int, a []complex128, lda int, ipiv []int32, b []complex128, ldb int) int {
	return int(C.clapack_zgesv(C.enum_CBLAS_ORDER(o), C.int(n), C.int(nRHS), unsafe.Pointer(&a[0]), C.int(lda), (*C.int)(&ipiv[0]), unsafe.Pointer(&b[0]), C.int(ldb)))
}