Skip to content

BoundaryConditions::constant_exterior's purpose? #7993

Answered by abadams
icebeing asked this question in Q&A
Discussion options

You must be logged in to vote

I wouldn't say it constrains it to only exist within a sub-rectangle. I'd say it is a Func that equals the first arg (a Func) within some subrectangle, and equals the second arg (a constant) outside of that subrectangle.

Typically when you vectorize this Halide will split the loop over vectors into three parts: a prologue for vectors that are before or overlapping the left edge, a steady-state for vectors entirely within the Func arg, and an epilogue for vectors that are after or overlapping the right edge.

Compiling to stmt_html and reading the result might be illuminating.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by icebeing
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