- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
real a(100),b(20), c(120)
nciclo = 900000
nstride = 1
na=100
nb=20
nc=120
ini=0
do i=1,100
a(i) = i
enddo
do i=1,20
b(i) = i
enddo
c(i) = 0
enddo
........
call scond(a,nstride,b,nstride,c,nstride,na,nb,ini,nc)
enddo
end
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The error status=-2012 is raised correctly to indicate the error in the input parameters which the code example passes to the subroutine scond(). Namely, the status=-2012 indicates about the parameter nc whose value nc=120 is too large. Probably, it must be nc=119;because mathematically, the length of resulting sequence of the convolution operation would be na+nb-1, not na+nb.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Anselmo,
Please excuse me for not responding this long time; I have overlooked your message. And I must also apologize for not identifying myself as an Intel employee at my previous posting; that was my 1st experience with this forum and I made a technical mistake.
You are asking, how I got the information about the status code. Im one of the authors of the code and of the MKL Reference Manual. Unfortunately, the MKL 8.0 version of the Manual doesnt include information about the error codes for the convolution and correlation software. We are working on this issue.
As for allowing nc>na+nb-1, such idea looks interesting. But, what value should be stored to c(120) in this case? Do you assume that the tail of the resulting array must be fulfilled with zeros?
Thanks,
Yevgeny Latkin (Intel Employee)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page