Skip to content

Commit

Permalink
Fix typo in dimensions check
Browse files Browse the repository at this point in the history
  • Loading branch information
javierbarbero committed Aug 27, 2024
1 parent c53bcdd commit a8badf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deaenv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function deaenv(X::Union{Matrix,Vector}, Y::Union{Matrix,Vector}, B::Union{Matri
# Check directions dimensions
nGx, mGx = size(Gx, 1), size(Gx, 2)
nGy, sGy = size(Gy, 1), size(Gy, 2)
nGb, bGb = size(Gy, 1), size(Gy, 2)
nGb, bGb = size(Gb, 1), size(Gb, 2)

(nGx == nx) & (mGx == m) || throw(DimensionMismatch("size of Gx and X ($(size(Gx)), $(size(X))) are not equal"));
(nGy == ny) & (sGy == s) || throw(DimensionMismatch("size of Gy and Y ($(size(Gy)), $(size(Y))) are not equal"));
Expand Down

0 comments on commit a8badf0

Please sign in to comment.