buffer
MinusOneBuffer
¶
Subtract one on loads and add one on stores, only for index fields.
Source code in src/finch/compile_jl/buffer.py
PlusOneBuffer
¶
Buffer that adds one to each element when loaded and subtracts one from each element when stored.
Source code in src/finch/compile_jl/buffer.py
element_type
property
¶
Return the type of elements stored in the buffer. This is typically the same as the dtype used to create the buffer.