本文整理匯總了Golang中github.com/dtromb/gogsl/vector.GslVectorUlong類的典型用法代碼示例。如果您正苦於以下問題:Golang GslVectorUlong類的具體用法?Golang GslVectorUlong怎麽用?Golang GslVectorUlong使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了GslVectorUlong類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: SortVectorUlongLargestIndex
func SortVectorUlongLargestIndex(p []int, k int, v *vector.GslVectorUlong) int32 {
_slice_header_0 := (*reflect.SliceHeader)(unsafe.Pointer(&p))
return int32(C.gsl_sort_vector_ulong_largest_index((*C.size_t)(unsafe.Pointer(_slice_header_0.Data)), C.size_t(k), (*C.gsl_vector_ulong)(unsafe.Pointer(v.Ptr()))))
}
示例2: SortVectorUlongSmallest
func SortVectorUlongSmallest(dest []int, k int, v *vector.GslVectorUlong) int32 {
_slice_header_0 := (*reflect.SliceHeader)(unsafe.Pointer(&dest))
return int32(C.gsl_sort_vector_ulong_smallest((*C.ulong)(unsafe.Pointer(_slice_header_0.Data)), C.size_t(k), (*C.gsl_vector_ulong)(unsafe.Pointer(v.Ptr()))))
}
示例3: SortVector2Ulong
func SortVector2Ulong(v1 *vector.GslVectorUlong, v2 *vector.GslVectorUlong) {
C.gsl_sort_vector2_ulong((*C.gsl_vector_ulong)(unsafe.Pointer(v1.Ptr())), (*C.gsl_vector_ulong)(unsafe.Pointer(v2.Ptr())))
}
示例4: SortVectorUlongIndex
func SortVectorUlongIndex(p *permutation.GslPermutation, v *vector.GslVectorUlong) int32 {
return int32(C.gsl_sort_vector_ulong_index((*C.gsl_permutation)(unsafe.Pointer(p.Ptr())), (*C.gsl_vector_ulong)(unsafe.Pointer(v.Ptr()))))
}
示例5: SortVectorUlong
func SortVectorUlong(v *vector.GslVectorUlong) {
C.gsl_sort_vector_ulong((*C.gsl_vector_ulong)(unsafe.Pointer(v.Ptr())))
}