I am trying to use Accelerate framework on iphone (iOS 5.1) in order to do matrix convolution. However, when I run the function
double *dst = calloc(2*3,sizeof(double));
double A[6*7]={1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
double B[5*5]={2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2};
vDSP_imgfirD(A, 6, 7, B, dst, 5, 5);
I just get 0 on the result pointer. Any guess why this could happen? I have not find anywhere similar issues.
Thank you very much!