本文整理匯總了Golang中github.com/dtromb/gogsl/vector.GslVectorLong類的典型用法代碼示例。如果您正苦於以下問題:Golang GslVectorLong類的具體用法?Golang GslVectorLong怎麽用?Golang GslVectorLong使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了GslVectorLong類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: SortVectorLongLargestIndex
func SortVectorLongLargestIndex(p []int, k int, v *vector.GslVectorLong) int32 {
_slice_header_0 := (*reflect.SliceHeader)(unsafe.Pointer(&p))
return int32(C.gsl_sort_vector_long_largest_index((*C.size_t)(unsafe.Pointer(_slice_header_0.Data)), C.size_t(k), (*C.gsl_vector_long)(unsafe.Pointer(v.Ptr()))))
}
示例2: SortVectorLongSmallest
func SortVectorLongSmallest(dest []uint, k int, v *vector.GslVectorLong) int32 {
_slice_header_0 := (*reflect.SliceHeader)(unsafe.Pointer(&dest))
return int32(C.gsl_sort_vector_long_smallest((*C.long)(unsafe.Pointer(_slice_header_0.Data)), C.size_t(k), (*C.gsl_vector_long)(unsafe.Pointer(v.Ptr()))))
}
示例3: SortVector2Long
func SortVector2Long(v1 *vector.GslVectorLong, v2 *vector.GslVectorLong) {
C.gsl_sort_vector2_long((*C.gsl_vector_long)(unsafe.Pointer(v1.Ptr())), (*C.gsl_vector_long)(unsafe.Pointer(v2.Ptr())))
}
示例4: 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()))))
}
示例5: SortVectorLong
func SortVectorLong(v *vector.GslVectorLong) {
C.gsl_sort_vector_long((*C.gsl_vector_long)(unsafe.Pointer(v.Ptr())))
}