Beispiel #1
0
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()))))
}
Beispiel #2
0
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()))))
}
Beispiel #3
0
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())))
}
Beispiel #4
0
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()))))
}
Beispiel #5
0
func SortVectorLong(v *vector.GslVectorLong) {
	C.gsl_sort_vector_long((*C.gsl_vector_long)(unsafe.Pointer(v.Ptr())))
}