예제 #1
0
파일: sort.go 프로젝트: postfix/gsl-1
func SortVectorLongIndex(p *permutation.GslPermutation, v *vector.GslVectorLong) int32 {
	return int32(C.gsl_sort_vector_long_index((*C.gsl_permutation)(unsafe.Pointer(p.Ptr())), (*C.gsl_vector_long)(unsafe.Pointer(v.Ptr()))))
}
예제 #2
0
파일: sort.go 프로젝트: postfix/gsl-1
func SortVectorUcharIndex(p *permutation.GslPermutation, v *vector.GslVectorUchar) int32 {
	return int32(C.gsl_sort_vector_uchar_index((*C.gsl_permutation)(unsafe.Pointer(p.Ptr())), (*C.gsl_vector_uchar)(unsafe.Pointer(v.Ptr()))))
}
예제 #3
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()))))
}
예제 #4
0
파일: sort.go 프로젝트: postfix/gsl-1
func SortVectorFloatIndex(p *permutation.GslPermutation, v *vector.GslVectorFloat) int32 {
	return int32(C.gsl_sort_vector_float_index((*C.gsl_permutation)(unsafe.Pointer(p.Ptr())), (*C.gsl_vector_float)(unsafe.Pointer(v.Ptr()))))
}
예제 #5
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()))))
}
예제 #6
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()))))
}
예제 #7
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))
}
예제 #8
0
파일: linalg.go 프로젝트: postfix/gsl-1
func LUSolve(lU *matrix.GslMatrix, p *permutation.GslPermutation, b *vector.GslVector, x *vector.GslVector) int32 {
	return int32(C.gsl_linalg_LU_solve((*C.gsl_matrix)(unsafe.Pointer(lU.Ptr())), (*C.gsl_permutation)(unsafe.Pointer(p.Ptr())), (*C.gsl_vector)(unsafe.Pointer(b.Ptr())), (*C.gsl_vector)(unsafe.Pointer(x.Ptr()))))
}
예제 #9
0
파일: linalg.go 프로젝트: postfix/gsl-1
func QRPTRsvx(qR *matrix.GslMatrix, p *permutation.GslPermutation, x *vector.GslVector) int32 {
	return int32(C.gsl_linalg_QRPT_Rsvx((*C.gsl_matrix)(unsafe.Pointer(qR.Ptr())), (*C.gsl_permutation)(unsafe.Pointer(p.Ptr())), (*C.gsl_vector)(unsafe.Pointer(x.Ptr()))))
}
예제 #10
0
파일: linalg.go 프로젝트: postfix/gsl-1
func QRPTUpdate(q *matrix.GslMatrix, r *matrix.GslMatrix, p *permutation.GslPermutation, w *vector.GslVector, v *vector.GslVector) int32 {
	return int32(C.gsl_linalg_QRPT_update((*C.gsl_matrix)(unsafe.Pointer(q.Ptr())), (*C.gsl_matrix)(unsafe.Pointer(r.Ptr())), (*C.gsl_permutation)(unsafe.Pointer(p.Ptr())), (*C.gsl_vector)(unsafe.Pointer(w.Ptr())), (*C.gsl_vector)(unsafe.Pointer(v.Ptr()))))
}
예제 #11
0
파일: linalg.go 프로젝트: postfix/gsl-1
func QRPTQRsolve(q *matrix.GslMatrix, r *matrix.GslMatrix, p *permutation.GslPermutation, b *vector.GslVector, x *vector.GslVector) int32 {
	return int32(C.gsl_linalg_QRPT_QRsolve((*C.gsl_matrix)(unsafe.Pointer(q.Ptr())), (*C.gsl_matrix)(unsafe.Pointer(r.Ptr())), (*C.gsl_permutation)(unsafe.Pointer(p.Ptr())), (*C.gsl_vector)(unsafe.Pointer(b.Ptr())), (*C.gsl_vector)(unsafe.Pointer(x.Ptr()))))
}
예제 #12
0
파일: linalg.go 프로젝트: postfix/gsl-1
func QRPTSolve(qR *matrix.GslMatrix, tau *vector.GslVector, p *permutation.GslPermutation, b *vector.GslVector, x *vector.GslVector) int32 {
	return int32(C.gsl_linalg_QRPT_solve((*C.gsl_matrix)(unsafe.Pointer(qR.Ptr())), (*C.gsl_vector)(unsafe.Pointer(tau.Ptr())), (*C.gsl_permutation)(unsafe.Pointer(p.Ptr())), (*C.gsl_vector)(unsafe.Pointer(b.Ptr())), (*C.gsl_vector)(unsafe.Pointer(x.Ptr()))))
}
예제 #13
0
파일: linalg.go 프로젝트: postfix/gsl-1
func QRPTDecomp2(a *matrix.GslMatrix, q *matrix.GslMatrix, r *matrix.GslMatrix, tau *vector.GslVector, p *permutation.GslPermutation, norm *vector.GslVector) (int32, int32) {
	var _outptr_5 C.int
	_result := int32(C.gsl_linalg_QRPT_decomp2((*C.gsl_matrix)(unsafe.Pointer(a.Ptr())), (*C.gsl_matrix)(unsafe.Pointer(q.Ptr())), (*C.gsl_matrix)(unsafe.Pointer(r.Ptr())), (*C.gsl_vector)(unsafe.Pointer(tau.Ptr())), (*C.gsl_permutation)(unsafe.Pointer(p.Ptr())), &_outptr_5, (*C.gsl_vector)(unsafe.Pointer(norm.Ptr()))))
	return _result, *(*int32)(unsafe.Pointer(&_outptr_5))
}