예제 #1
0
파일: sort.go 프로젝트: postfix/gsl-1
func SortVectorUshortLargestIndex(p []int, k int, v *vector.GslVectorUshort) int32 {
	_slice_header_0 := (*reflect.SliceHeader)(unsafe.Pointer(&p))
	return int32(C.gsl_sort_vector_ushort_largest_index((*C.size_t)(unsafe.Pointer(_slice_header_0.Data)), C.size_t(k), (*C.gsl_vector_ushort)(unsafe.Pointer(v.Ptr()))))
}
예제 #2
0
파일: sort.go 프로젝트: postfix/gsl-1
func SortVectorUshortSmallest(dest []int16, k int, v *vector.GslVectorUshort) int32 {
	_slice_header_0 := (*reflect.SliceHeader)(unsafe.Pointer(&dest))
	return int32(C.gsl_sort_vector_ushort_smallest((*C.ushort)(unsafe.Pointer(_slice_header_0.Data)), C.size_t(k), (*C.gsl_vector_ushort)(unsafe.Pointer(v.Ptr()))))
}
예제 #3
0
파일: sort.go 프로젝트: postfix/gsl-1
func SortVector2Ushort(v1 *vector.GslVectorUshort, v2 *vector.GslVectorUshort) {
	C.gsl_sort_vector2_ushort((*C.gsl_vector_ushort)(unsafe.Pointer(v1.Ptr())), (*C.gsl_vector_ushort)(unsafe.Pointer(v2.Ptr())))
}
예제 #4
0
파일: sort.go 프로젝트: postfix/gsl-1
func SortVectorUshortIndex(p *permutation.GslPermutation, v *vector.GslVectorUshort) int32 {
	return int32(C.gsl_sort_vector_ushort_index((*C.gsl_permutation)(unsafe.Pointer(p.Ptr())), (*C.gsl_vector_ushort)(unsafe.Pointer(v.Ptr()))))
}
예제 #5
0
파일: sort.go 프로젝트: postfix/gsl-1
func SortVectorUshort(v *vector.GslVectorUshort) {
	C.gsl_sort_vector_ushort((*C.gsl_vector_ushort)(unsafe.Pointer(v.Ptr())))
}