C++ 使用MKL DCT函数进行错误的DCT
我为基于MKL的离散余弦变换DCT代码提供8x8输入: fileinput.txt输入:C++ 使用MKL DCT函数进行错误的DCT,c++,intel-mkl,dct,intel-ipp,C++,Intel Mkl,Dct,Intel Ipp,我为基于MKL的离散余弦变换DCT代码提供8x8输入: fileinput.txt输入: 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255
255 255 255 255 255 255 255 255
以下代码的DCT输出为:
32385 -727.349243 -619.955444 -458.675903 -267.323547 -74.151535 92.318069 207.505844
764.404419 717.50531 602.316772 435.846893 242.6754 51.322887 -109.956779 -217.350159
-762.619629 -706.582764 -583.869446 -412.598663 -218.058334 -28.972321 126.74057 226.088898
759.648132 694.603516 564.651367 388.979492 193.525208 7.147152 -142.635284 -233.70639
-755.498901 -681.59967 -544.712891 -365.049927 -169.138 14.096443 157.598663 240.180206
750.180115 667.597656 524.094971 340.860809 144.948898 -34.714363 -171.600922 -245.499771
-743.705566 -652.633789 -502.85144 -316.473694 -121.019257 54.652824 184.604614 249.648224
736.088623 636.739502 481.026154 291.940552 97.400169 -73.870857 -196.583725 -252.620102
预期产出:
16320 8.331551 -8.493903 8.775995 -9.19324 9.772106 -10.552611 11.595706
8.332954 0.004307 -0.004317 0.004504 -0.00472 0.004989 -0.005391 0.00592
-8.494178 -0.004317 0.004454 -0.004576 0.004765 -0.005109 0.005472 -0.006031
8.776941 0.004504 -0.004545 0.004746 -0.004965 0.005248 -0.005666 0.006251
-9.193484 -0.004659 0.004811 -0.00495 0.005198 -0.005507 0.005955 -0.006519
9.771847 0.005035 -0.005079 0.005241 -0.005522 0.005852 -0.006314 0.00696
-10.552428 -0.005383 0.005533 -0.005627 0.00591 -0.006314 0.006844 -0.007483
11.59587 0.005882 -0.00605 0.006274 -0.006557 0.006974 -0.007506 0.008264
代码:
你能指导我找出代码中的错误吗?与其说是答案,不如说是问题。这四行对吗
ipar[10] = 1; //nx, that is, the number of intervals along the x-axis,
ipar[11] = 1; //ny, that is, the number of intervals along the x-axis,
ipar[14] = n_1; //specifies the internal partitioning of the dpar array.
ipar[15] = 1; //value of ipar[14]+1,Specifies the ... of the dpar array.
在前两种情况下,间隔数真的是1吗
在第四种情况下,注释说IPAR〔15〕是IPAR〔14〕+1=n1+1=1=nn+2=n+2=66的值,虽然我们不知道在Sy-InITI- TrutyTrimeToin中NY1发生了什么。< /P>这是C++代码,所以'C’标记应该是removedWeather Vane,无论x轴的间隔数是8,还是y轴8,正如他提到的n=64;8X8??
ipar[10] = 1; //nx, that is, the number of intervals along the x-axis,
ipar[11] = 1; //ny, that is, the number of intervals along the x-axis,
ipar[14] = n_1; //specifies the internal partitioning of the dpar array.
ipar[15] = 1; //value of ipar[14]+1,Specifies the ... of the dpar array.