diff --git a/NEWS.md b/NEWS.md index 174067e413ec1..7f55e296898b3 100644 --- a/NEWS.md +++ b/NEWS.md @@ -32,6 +32,8 @@ Standard library changes #### LinearAlgebra +* `qr` and `qr!` functions support `blocksize` keyword argument ([#33053]). + #### SparseArrays diff --git a/stdlib/LinearAlgebra/src/qr.jl b/stdlib/LinearAlgebra/src/qr.jl index 0167bfde9d3bc..a14cb658bdc1c 100644 --- a/stdlib/LinearAlgebra/src/qr.jl +++ b/stdlib/LinearAlgebra/src/qr.jl @@ -260,6 +260,9 @@ qr!(A::StridedMatrix{<:BlasFloat}, ::Val{true}) = QRPivoted(LAPACK.geqp3!(A)...) An [`InexactError`](@ref) exception is thrown if the factorization produces a number not representable by the element type of `A`, e.g. for integer types. +!!! compat "Julia 1.4" + The `blocksize` keyword argument requires Julia 1.4 or later. + # Examples ```jldoctest julia> a = [1. 2.; 3. 4.] @@ -340,6 +343,9 @@ The block size for QR decomposition can be specified by keyword argument `blocksize :: Integer` when `pivot == Val(false)` and `A isa StridedMatrix{<:BlasFloat}`. It is ignored when `blocksize > minimum(size(A))`. See [`QRCompactWY`](@ref). +!!! compat "Julia 1.4" + The `blocksize` keyword argument requires Julia 1.4 or later. + # Examples ```jldoctest julia> A = [3.0 -6.0; 4.0 -8.0; 0.0 1.0]