Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https://github.com/verivital/nnv/blob/master/code/nnv/engine/set/Box.m de2bi #99

Open
serenegrace opened this issue Jun 3, 2020 · 0 comments

Comments

@serenegrace
Copy link

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])

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant