本文整理匯總了Golang中github.com/dtromb/gogsl/permutation.GslPermutation類的典型用法代碼示例。如果您正苦於以下問題:Golang GslPermutation類的具體用法?Golang GslPermutation怎麽用?Golang GslPermutation使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了GslPermutation類的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: SortVectorLongIndex
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: SortVectorUcharIndex
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: ComplexLUInvert
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: SortVectorFloatIndex
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: ComplexLUSvx
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: ComplexLURefine
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: ComplexLUDecomp
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: LUSolve
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: QRPTRsvx
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: QRPTUpdate
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: QRPTQRsolve
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: QRPTSolve
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: QRPTDecomp2
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))
}