Skip to content

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

@serenegrace

Description

@serenegrace

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions