C/C++ : Convolution Source Code v.2

I have created a code to compute convolution from my previous post : C/C++ : Convolution Source Code. That code compute convolution from two vector. Matlab have parameter to get size of the ouput data from convolution process. If you check at Matlab documentation, we can set convolution process by “full”, “same” and “valid”.

So, I have modified my previous convolution method by “full” and “same” parameter. Please check my below code :

Please try the above function to get convolution result by “full” and “same”. You will get the same result like Matlab convolution by full and same.

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.