Example #1
0
// Vflt8_byte converts an array of signed 8-bit integers to single-precision floating-point values.
func Vflt8_byte(input []byte, inputStride int, output []float32, outputStride int) {
	C.vDSP_vflt8((*C.char)(unsafe.Pointer(&input[0])), C.vDSP_Stride(inputStride), (*C.float)(&output[0]), C.vDSP_Stride(outputStride), minLen(len(input)/inputStride, len(output)/outputStride))
}
Example #2
0
// Vflt8 converts an array of signed 8-bit integers to single-precision floating-point values.
func Vflt8(input []int8, inputStride int, output []float32, outputStride int) {
	C.vDSP_vflt8((*C.char)(&input[0]), C.vDSP_Stride(inputStride), (*C.float)(&output[0]), C.vDSP_Stride(outputStride), minLen(len(input)/inputStride, len(output)/outputStride))
}