You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add BlockVector and BlockMatrix constructors (#90)
* Add BlockVector and BlockMatrix constructors
* Improve block bounds errors, add support for Vectors of Block-indices
* Test on 1.3
* Drop Julia v0.7 support
* Delete deprecate.jl
@inlinefunctionBlockArray{T,N,R}(::UndefBlocksInitializer, block_sizes::Vararg{AbstractVector{Int}, N}) where {T, N, R<:AbstractArray{<:AbstractArray{T,N},N}}
122
+
@inlineBlockArray{T,N,R}(::UndefBlocksInitializer, block_sizes::Vararg{AbstractVector{Int}, N}) where {T, N, R<:AbstractArray{<:AbstractArray{T,N},N}}=
128
123
undef_blocks_BlockArray(R, block_sizes...)
129
-
end
130
124
131
125
132
126
@generatedfunctioninitialized_blocks_BlockArray(::Type{R}, block_sizes::BlockSizes{N}) where R<:AbstractArray{V,N}where {T,N,V<:AbstractArray{T,N}}
@@ -142,33 +136,26 @@ end
142
136
end
143
137
144
138
145
-
functioninitialized_blocks_BlockArray(::Type{R}, block_sizes::Vararg{AbstractVector{Int}, N}) where {T, N, R<:AbstractArray{<:AbstractArray{T,N},N}}
139
+
initialized_blocks_BlockArray(::Type{R}, block_sizes::Vararg{AbstractVector{Int}, N}) where {T, N, R<:AbstractArray{<:AbstractArray{T,N},N}}=
@inlinefunctionBlockArray{T, N, R}(::UndefInitializer, block_sizes::Vararg{AbstractVector{Int}, N}) where {T, N, R<:AbstractArray{<:AbstractArray{T,N},N}}
157
+
@inlineBlockArray{T, N, R}(::UndefInitializer, block_sizes::Vararg{AbstractVector{Int}, N}) where {T, N, R<:AbstractArray{<:AbstractArray{T,N},N}}=
170
158
initialized_blocks_BlockArray(R, block_sizes...)
171
-
end
172
159
173
160
functionBlockArray(arr::AbstractArray{T, N}, block_sizes::Vararg{AbstractVector{Int}, N}) where {T,N}
0 commit comments