Skip to content

Can a compiled function return an array where the length changes? #757

Answered by awni
cemlyn007 asked this question in Q&A
Discussion options

You must be logged in to vote

Trying to play around with the C++ API with a compiled function, I am getting cheeky segmentation fault!

Any interest in sharing the code ;). It shouldn't segfault if you do something wrong, just crash, so I would count that as a bug.

Shapes have to be the same (there is an experimental shapeless compile). If you change shapes then the function will be recompiled, so it's safe, but can be costly.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@cemlyn007
Comment options

@cemlyn007
Comment options

Answer selected by cemlyn007
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants