Exemplo n.º 1
0
Arquivo: fft.go Projeto: postfix/gsl-1
func ComplexRadix2DifTransform(data []complex128, stride int, n int, sign Direction) int32 {
	_slice_header_0 := (*reflect.SliceHeader)(unsafe.Pointer(&data))
	return int32(C.gsl_fft_complex_radix2_dif_transform((*C.double)(unsafe.Pointer(_slice_header_0.Data)), C.size_t(stride), C.size_t(n), C.gsl_fft_direction(sign)))
}
Exemplo n.º 2
0
Arquivo: fft.go Projeto: postfix/gsl-1
func ComplexTransform(data []complex128, stride int, n int, wavetable *GslFftComplexWavetable, work *GslFftComplexWorkspace, sign Direction) int32 {
	_slice_header_0 := (*reflect.SliceHeader)(unsafe.Pointer(&data))
	return int32(C.gsl_fft_complex_transform((*C.double)(unsafe.Pointer(_slice_header_0.Data)), C.size_t(stride), C.size_t(n), (*C.gsl_fft_complex_wavetable)(unsafe.Pointer(wavetable.Ptr())), (*C.gsl_fft_complex_workspace)(unsafe.Pointer(work.Ptr())), C.gsl_fft_direction(sign)))
}