示例#1
0
文件: sort.go 项目: postfix/gsl-1
func SortVectorUintLargestIndex(p []int, k int, v *vector.GslVectorUint) int32 {
	_slice_header_0 := (*reflect.SliceHeader)(unsafe.Pointer(&p))
	return int32(C.gsl_sort_vector_uint_largest_index((*C.size_t)(unsafe.Pointer(_slice_header_0.Data)), C.size_t(k), (*C.gsl_vector_uint)(unsafe.Pointer(v.Ptr()))))
}
示例#2
0
文件: sort.go 项目: postfix/gsl-1
func SortVectorUintSmallest(dest []uint32, k int, v *vector.GslVectorUint) int32 {
	_slice_header_0 := (*reflect.SliceHeader)(unsafe.Pointer(&dest))
	return int32(C.gsl_sort_vector_uint_smallest((*C.uint)(unsafe.Pointer(_slice_header_0.Data)), C.size_t(k), (*C.gsl_vector_uint)(unsafe.Pointer(v.Ptr()))))
}
示例#3
0
文件: sort.go 项目: postfix/gsl-1
func SortVector2Uint(v1 *vector.GslVectorUint, v2 *vector.GslVectorUint) {
	C.gsl_sort_vector2_uint((*C.gsl_vector_uint)(unsafe.Pointer(v1.Ptr())), (*C.gsl_vector_uint)(unsafe.Pointer(v2.Ptr())))
}
示例#4
0
文件: sort.go 项目: postfix/gsl-1
func SortVectorUintIndex(p *permutation.GslPermutation, v *vector.GslVectorUint) int32 {
	return int32(C.gsl_sort_vector_uint_index((*C.gsl_permutation)(unsafe.Pointer(p.Ptr())), (*C.gsl_vector_uint)(unsafe.Pointer(v.Ptr()))))
}
示例#5
0
文件: sort.go 项目: postfix/gsl-1
func SortVectorUint(v *vector.GslVectorUint) {
	C.gsl_sort_vector_uint((*C.gsl_vector_uint)(unsafe.Pointer(v.Ptr())))
}