Skip to content

Commit

Permalink
Merge pull request #13 from dhairyagandhi96/master
Browse files Browse the repository at this point in the history
Add reshaped array wrapper
  • Loading branch information
MikeInnes authored Jan 16, 2019
2 parents 2f5b711 + e2fdd66 commit 74a0499
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ const wrappers = (
:(LinearAlgebra.UnitLowerTriangular{<:Any,AT}) => (A,mut)->LinearAlgebra.UnitLowerTriangular(mut(parent(A))),
:(LinearAlgebra.UpperTriangular{<:Any,AT}) => (A,mut)->LinearAlgebra.UpperTriangular(mut(parent(A))),
:(LinearAlgebra.UnitUpperTriangular{<:Any,AT}) => (A,mut)->LinearAlgebra.UnitUpperTriangular(mut(parent(A))),
:(LinearAlgebra.Diagonal{<:Any,AT}) => (A,mut)->LinearAlgebra.Diagonal(mut(parent(A)))
:(LinearAlgebra.Diagonal{<:Any,AT}) => (A,mut)->LinearAlgebra.Diagonal(mut(parent(A))),
:(Base.ReshapedArray{<:Any,<:Any,AT,<:Any}) => (A,mut)->Base.reshape(mut(parent(A)), size(A))
)

for (W, ctor) in wrappers
Expand Down

0 comments on commit 74a0499

Please sign in to comment.