UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

取消
显示结果 
搜索替代 
您的意思是: 
Observer yanjian
Observer
286 次查看
注册日期: ‎11-28-2018

hls::Window 如何赋初值?

hls::Window R=(hls::Window<3,3,ap_fixed<25,4> > <<1,0,0,0,1,0,0,0,1);
hls::Window cameraMatrix = (hls::Window<3,3,ap_fixed<24,16>><< 2892.45384, -0.77943, 925.03464,0, 2896.55407, 587.20266,0, 0, 1);

 

编译出现错误:

./../../../thin.cpp:102:15: error: missing template arguments before 'R'
../../../../thin.cpp:102:15: error: expected ';' before 'R'
../../../../thin.cpp:103:15: error: missing template arguments before 'cameraMatrix'
../../../../thin.cpp:103:15: error: expected ';' before 'cameraMatrix'
../../../../thin.cpp:110:39: error: 'cameraMatrix' was not declared in this scope
../../../../thin.cpp:110:63: error: 'R' was not declared in this scope

0 项奖励
2 条回复2
Xilinx Employee
Xilinx Employee
267 次查看
注册日期: ‎07-16-2008

回复: hls::Window 如何赋初值?

你可以通过以下类似的形式例化memory window。

// hls::Window<row, column, type> variable;
hls::Window<3,3,char> Buff_B;

-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 项奖励
Observer yanjian
Observer
197 次查看
注册日期: ‎11-28-2018

回复: hls::Window 如何赋初值?

例化可以  但是如何赋初值!!!!????麻烦给一个例子 谢谢了!!

0 项奖励