Example #1
0
func SortVectorIntLargestIndex(p []int, k int, v *vector.GslVectorInt) int32 {
	_slice_header_0 := (*reflect.SliceHeader)(unsafe.Pointer(&p))
	return int32(C.gsl_sort_vector_int_largest_index((*C.size_t)(unsafe.Pointer(_slice_header_0.Data)), C.size_t(k), (*C.gsl_vector_int)(unsafe.Pointer(v.Ptr()))))
}
Example #2
0
func SortVectorIntSmallest(dest []int32, k int, v *vector.GslVectorInt) int32 {
	_slice_header_0 := (*reflect.SliceHeader)(unsafe.Pointer(&dest))
	return int32(C.gsl_sort_vector_int_smallest((*C.int)(unsafe.Pointer(_slice_header_0.Data)), C.size_t(k), (*C.gsl_vector_int)(unsafe.Pointer(v.Ptr()))))
}
Example #3
0
func SortVector2Int(v1 *vector.GslVectorInt, v2 *vector.GslVectorInt) {
	C.gsl_sort_vector2_int((*C.gsl_vector_int)(unsafe.Pointer(v1.Ptr())), (*C.gsl_vector_int)(unsafe.Pointer(v2.Ptr())))
}
Example #4
0
func SortVectorIntIndex(p *permutation.GslPermutation, v *vector.GslVectorInt) int32 {
	return int32(C.gsl_sort_vector_int_index((*C.gsl_permutation)(unsafe.Pointer(p.Ptr())), (*C.gsl_vector_int)(unsafe.Pointer(v.Ptr()))))
}
Example #5
0
func SortVectorInt(v *vector.GslVectorInt) {
	C.gsl_sort_vector_int((*C.gsl_vector_int)(unsafe.Pointer(v.Ptr())))
}