We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
narrow_buffer_type
BlockedArray
1 parent ee9ee8a commit 5189598Copy full SHA for 5189598
src/systems/parameter_buffer.jl
@@ -198,6 +198,9 @@ function narrow_buffer_type(
198
end
199
200
function narrow_buffer_type(buffer::BlockedArray; container_type = typeof(parent(buffer)))
201
+ if eltype(buffer) <: AbstractArray
202
+ buffer = narrow_buffer_type.(buffer; container_type)
203
+ end
204
type = Union{}
205
for x in buffer
206
type = promote_type(type, typeof(x))
0 commit comments