You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So while trying to fix errors in tests, specifically in test_c_code_gen.m
i ran into the following error
Undefined function 'de2bi' for input arguments of type 'double'.
Error in Box/getVertices (line 211)
b = de2bi(i, n+3);
Error in test_box_getVertices_c_gen (line 4)
V = B.getVertices();
Error in test_c_code_gen (line 20)
test_box_getVertices_c_gen([1;1], [1.5; 1.5])
It looks like both i and n are doubles (based on display(class(i)) and
display(class(n))), which does not work with de2bi (as far as I can
tell at least).
fixed by using dec2bin instead, but presumably there may be drawbacks to swapping to this method?
The text was updated successfully, but these errors were encountered:
So while trying to fix errors in tests, specifically in test_c_code_gen.m
i ran into the following error
Undefined function 'de2bi' for input arguments of type 'double'.
So i went and looked in
https://github.com/verivital/nnv/blob/master/code/nnv/engine/set/Box.m
, specifically at function V = getVertices(obj)
It looks like both i and n are doubles (based on display(class(i)) and
display(class(n))), which does not work with de2bi (as far as I can
tell at least).
fixed by using dec2bin instead, but presumably there may be drawbacks to swapping to this method?
The text was updated successfully, but these errors were encountered: