Пример #1
0
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
0
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
0
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
0
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
0
func SortVectorUlong(v *vector.GslVectorUlong) {
	C.gsl_sort_vector_ulong((*C.gsl_vector_ulong)(unsafe.Pointer(v.Ptr())))
}