Skip to content

Commit 134af1c

Browse files
committed
Require square matrices in UpperHessenberg
1 parent 41db513 commit 134af1c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/hessenberg.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ struct UpperHessenberg{T,S<:AbstractMatrix{T}} <: AbstractMatrix{T}
4646

4747
function UpperHessenberg{T,S}(data) where {T,S<:AbstractMatrix{T}}
4848
require_one_based_indexing(data)
49+
checksquare(data)
4950
new{T,S}(data)
5051
end
5152
end

0 commit comments

Comments
 (0)