Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

Cross Correlation with vsldCorrExec1D

msinger61
Beginner
248 Views
I'm trying to transliterate some Matlab code and am unsure how vlsdCorrExec1D corresponds to Matlab's xcorr function. xcorr has an output array that is of size 2*xshape-1

Using that for zshape when calling vsldNewTask1D causes an error -2303 when calling vsldCorrExec1d.

What am I missing?
0 Kudos
1 Reply
Victor_Gladkikh
New Contributor I
248 Views

Hi,

this error=-2303 isVSL_CC_ERROR_DECIMATION, that really mean bad decimation parameter.

1. If you set decimation parameter:
The root of aproblem is decimation parameter.

2. If youdon't setdecimation parameter:
Of course we set defaultdecimation parameter but in this case the root of the problem is bad zshape. Typical zsape = xshape + yshape 1.


Victor

0 Kudos
Reply