Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inv(mat') fails #26299

Closed
garrison opened this issue Mar 2, 2018 · 2 comments · Fixed by #26302
Closed

inv(mat') fails #26299

garrison opened this issue Mar 2, 2018 · 2 comments · Fixed by #26302

Comments

@garrison
Copy link
Member

garrison commented Mar 2, 2018

On latest master:

julia> inv(rand(4,4)')
ERROR: WARNING: Base.factorize is deprecated: it has been moved to the standard library package `LinearAlgebra`.
Add `using LinearAlgebra` to your imports.
 in module Base
MethodError: no method matching factorize(::LinearAlgebra.Adjoint{Float64,Array{Float64,2}})
Closest candidates are:
  factorize(::Union{DenseArray{T,2}, Base.ReinterpretArray{T,2,S,A} where S where A<:Union{SubArray{T,N,P,I,true} where I<:Tuple{Union{Base.Slice, UnitRange},Vararg{Any,N} where N} where P where N where T, DenseArray}, Base.ReshapedArray{T,2,A,MI} where MI<:Tuple{Vararg{Base.MultiplicativeInverses.SignedMultiplicativeInverse{Int64},N} where N} where A<:Union{SubArray{T,N,P,I,true} where I<:Tuple{Union{Base.Slice, UnitRange},Vararg{Any,N} where N} where P where N where T, DenseArray}, SubArray{T,2,A,I,L} where L where I<:Tuple{Vararg{Union{Int64, AbstractRange{Int64}, Base.AbstractCartesianIndex},N} where N} where A<:Union{Base.ReshapedArray{T,N,A,MI} where MI<:Tuple{Vararg{Base.MultiplicativeInverses.SignedMultiplicativeInverse{Int64},N} where N} where A<:Union{SubArray{T,N,P,I,true} where I<:Tuple{Union{Base.Slice, UnitRange},Vararg{Any,N} where N} where P where N where T, DenseArray} where N where T, DenseArray}}) where T at /home/garrison/julia-master/usr/share/julia/site/v0.7/LinearAlgebra/src/dense.jl:1151
  factorize(::LinearAlgebra.AbstractTriangular) at /home/garrison/julia-master/usr/share/julia/site/v0.7/LinearAlgebra/src/triangular.jl:2447
  factorize(::Union{LinearAlgebra.Hermitian{Complex{Float64},#s574}, LinearAlgebra.Hermitian{Float64,#s574}, LinearAlgebra.Symmetric{Float64,#s574}} where #s574<:SparseArrays.SparseMatrixCSC) at /home/garrison/julia-master/usr/share/julia/site/v0.7/SparseArrays/src/linalg.jl:1002
  ...
Stacktrace:
 [1] inv(::LinearAlgebra.Adjoint{Float64,Array{Float64,2}}) at /home/garrison/julia-master/usr/share/julia/site/v0.7/LinearAlgebra/src/generic.jl:783
 [2] top-level scope
@garrison garrison changed the title inv(rand(n,n)') fails inv(mat') fails Mar 2, 2018
@garrison
Copy link
Member Author

garrison commented Mar 2, 2018

Also, the warning above about Base.factorize being deprecated is a mystery to me. It comes from this line which itself is in the LinearAlgebra module.

@andreasnoack
Copy link
Member

I think there is a general issue with quite confusing deprecation messages when calling methods that have never existed. See #26140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants