File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 61
61
quote
62
62
@_inline_meta
63
63
LUp = lu (A)
64
- LUp. U \ (LUp. L \ eye (A )[LUp. p,:])
64
+ LUp. U \ (LUp. L \ eye (typeof (A) )[LUp. p,:])
65
65
end
66
66
else
67
67
:(@_inline_meta ; similar_type (A)(inv (Matrix (A))))
Original file line number Diff line number Diff line change 164
164
end
165
165
end
166
166
167
+ # deprecate eye, keep around for as long as LinearAlgebra.eye exists
168
+ @static if isdefined (LinearAlgebra, :eye )
169
+ @deprecate eye (A:: SM ) where {SM<: StaticMatrix } eye (typeof (A))
170
+ end
171
+
167
172
# if VERSION < v"0.7-"
168
- @inline eye (:: SM ) where {SM <: StaticMatrix } = _eye (Size (SM), SM)
169
173
@inline eye (:: Type{SM} ) where {SM <: StaticMatrix } = _eye (Size (SM), SM)
170
174
@generated function _eye (:: Size{S} , :: Type{SM} ) where {S, SM <: StaticArray }
171
175
T = eltype (SM) # should be "hyperpure"
You can’t perform that action at this time.
0 commit comments