[Coder] Which types are supported for constant folding?
Show older comments
The output type is a 1x262144 uint16.
The coder complains with:
The input to coder.const cannot be reduced to a constant: Unsupported type.
Which types are supported?
3 Comments
Denis Gurchenkov
on 18 Mar 2020
Most likely, you are hitting a case where the functon internally creates a variable-sized array (that is the most commonly seen "unsupported type"). There is no convenient way of figuring out what exactly is the cause of the error, other than opening the compilation report and starting on the body of the failing function, and hovering the mouse over various expressions and seeing which one has a non-constant size.
Jan Siegmund
on 18 Mar 2020
Jan Siegmund
on 18 Mar 2020
Accepted Answer
More Answers (0)
Categories
Find more on AMD FPGA and SoC Devices in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!