Ejemplo n.º 1
0
func SortVectorShortLargestIndex(p []int, k int, v *vector.GslVectorShort) int32 {
	_slice_header_0 := (*reflect.SliceHeader)(unsafe.Pointer(&p))
	return int32(C.gsl_sort_vector_short_largest_index((*C.size_t)(unsafe.Pointer(_slice_header_0.Data)), C.size_t(k), (*C.gsl_vector_short)(unsafe.Pointer(v.Ptr()))))
}
Ejemplo n.º 2
0
func SortVectorShortSmallest(dest []int16, k int, v *vector.GslVectorShort) int32 {
	_slice_header_0 := (*reflect.SliceHeader)(unsafe.Pointer(&dest))
	return int32(C.gsl_sort_vector_short_smallest((*C.short)(unsafe.Pointer(_slice_header_0.Data)), C.size_t(k), (*C.gsl_vector_short)(unsafe.Pointer(v.Ptr()))))
}
Ejemplo n.º 3
0
func SortVector2Short(v1 *vector.GslVectorShort, v2 *vector.GslVectorShort) {
	C.gsl_sort_vector2_short((*C.gsl_vector_short)(unsafe.Pointer(v1.Ptr())), (*C.gsl_vector_short)(unsafe.Pointer(v2.Ptr())))
}
Ejemplo n.º 4
0
func SortVectorShortIndex(p *permutation.GslPermutation, v *vector.GslVectorShort) int32 {
	return int32(C.gsl_sort_vector_short_index((*C.gsl_permutation)(unsafe.Pointer(p.Ptr())), (*C.gsl_vector_short)(unsafe.Pointer(v.Ptr()))))
}
Ejemplo n.º 5
0
func SortVectorShort(v *vector.GslVectorShort) {
	C.gsl_sort_vector_short((*C.gsl_vector_short)(unsafe.Pointer(v.Ptr())))
}