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