Skip to content

Commit

Permalink
Remove at-inline from deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mbauman committed May 23, 2018
1 parent 7c7d23d commit ca670f0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions stdlib/LinearAlgebra/src/deprecated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1461,7 +1461,7 @@ function _geneig(A, B)
end

# deprecate transitional decomposition getindex methods out of the blocks
@inline function Base.getindex(S::LU, i::Integer)
function Base.getindex(S::LU, i::Integer)
depwarn(string("decomposition functions (e.g. `lu`) now return decomposition ",
"objects (e.g. `LU`), and indexing such objects is deprecated. Instead ",
"extract components via their accessors (e.g. `X.L`, `X.S`, and `X.p` for ",
Expand All @@ -1472,7 +1472,7 @@ end
i == 3 ? (return S.p) :
throw(BoundsError(S, i))
end
@inline function Base.getindex(S::Union{Eigen,GeneralizedEigen}, i::Integer)
function Base.getindex(S::Union{Eigen,GeneralizedEigen}, i::Integer)
depwarn(string("decomposition functions (e.g. `eig`) now return decomposition ",
"objects (e.g. `Eigen` and `GeneralizedEigen`), and indexing such objects ",
"is deprecated. Instead extract components via their accessors ",
Expand All @@ -1483,7 +1483,7 @@ end
i == 2 ? (return S.vectors) :
throw(BoundsError(S, i))
end
@inline function Base.getindex(S::Schur, i::Integer)
function Base.getindex(S::Schur, i::Integer)
depwarn(string("decomposition functions (e.g. `schur`) now return decomposition ",
"objects (e.g. `Schur`), and indexing such objects ",
"is deprecated. Instead extract components via their accessors ",
Expand All @@ -1495,7 +1495,7 @@ end
i == 3 ? (return S.values) :
throw(BoundsError(S, i))
end
@inline function Base.getindex(S::GeneralizedSchur, i::Integer)
function Base.getindex(S::GeneralizedSchur, i::Integer)
depwarn(string("decomposition functions (e.g. `schur`) now return decomposition ",
"objects (e.g. `GeneralizedSchur`), and indexing such objects ",
"is deprecated. Instead extract components via their accessors ",
Expand All @@ -1510,7 +1510,7 @@ end
i == 6 ? (return S.β) :
throw(BoundsError(S, i))
end
@inline function Base.getindex(S::LQ, i::Integer)
function Base.getindex(S::LQ, i::Integer)
depwarn(string("decomposition functions (e.g. `lq`) now return decomposition ",
"objects (e.g. `LQ`), and indexing such objects ",
"is deprecated. Instead extract components via their accessors ",
Expand All @@ -1521,7 +1521,7 @@ end
i == 2 ? (return S.Q) :
throw(BoundsError(S, i))
end
@inline function Base.getindex(S::QR, i::Integer)
function Base.getindex(S::QR, i::Integer)
depwarn(string("decomposition functions (e.g. `qr`) now return decomposition ",
"objects (e.g. `QR`), and indexing such objects ",
"is deprecated. Instead extract components via their accessors ",
Expand All @@ -1532,7 +1532,7 @@ end
i == 2 ? (return S.R) :
throw(BoundsError(S, i))
end
@inline function Base.getindex(S::QRCompactWY, i::Integer)
function Base.getindex(S::QRCompactWY, i::Integer)
depwarn(string("decomposition functions (e.g. `qr`) now return decomposition ",
"objects (e.g. `QRCompactWY`), and indexing such objects ",
"is deprecated. Instead extract components via their accessors ",
Expand All @@ -1543,7 +1543,7 @@ end
i == 2 ? (return S.R) :
throw(BoundsError(S, i))
end
@inline function Base.getindex(S::QRPivoted, i::Integer)
function Base.getindex(S::QRPivoted, i::Integer)
depwarn(string("decomposition functions (e.g. `qr`) now return decomposition ",
"objects (e.g. `QRPivoted`), and indexing such objects ",
"is deprecated. Instead extract components via their accessors ",
Expand All @@ -1555,7 +1555,7 @@ end
i == 3 ? (return S.p) :
throw(BoundsError(S, i))
end
@inline function Base.getindex(S::SVD, i::Integer)
function Base.getindex(S::SVD, i::Integer)
depwarn(string("decomposition functions (e.g. `svd`) now return decomposition ",
"objects (e.g. `SVD`), and indexing such objects ",
"is deprecated. Instead extract components via their accessors ",
Expand All @@ -1567,7 +1567,7 @@ end
i == 3 ? (return S.V) :
throw(BoundsError(S, i))
end
@inline function Base.getindex(S::GeneralizedSVD, i::Integer)
function Base.getindex(S::GeneralizedSVD, i::Integer)
depwarn(string("decomposition functions (e.g. `svd`) now return decomposition ",
"objects (e.g. `GeneralizedSVD`), and indexing such objects ",
"is deprecated. Instead extract components via their accessors ",
Expand Down

0 comments on commit ca670f0

Please sign in to comment.