From 07f41a0a08b1c6882245a86c7577dd88c49157c3 Mon Sep 17 00:00:00 2001 From: Johannes Schmitt Date: Mon, 29 Jan 2024 18:42:47 +0100 Subject: [PATCH] The old `:left` vs `:right` got me again (#1582) --- src/Solve.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Solve.jl b/src/Solve.jl index a9cd553718..6004e82b1d 100644 --- a/src/Solve.jl +++ b/src/Solve.jl @@ -651,7 +651,7 @@ end function check_linear_system_dim_right(A::Union{MatElem, SolveCtx}, b::MatElem, throw_error::Bool = true) fl = nrows(A) == nrows(b) if !fl && throw_error - error("Incompatible number of rows in linear system (use `side = :left` to switch to an action from the left)") + error("Incompatible number of rows in linear system (use `side = :left` for a system with the indeterminate on the left)") end return fl end @@ -659,7 +659,7 @@ end function check_linear_system_dim_right(A::Union{MatElem, SolveCtx}, b::Vector, throw_error::Bool = true) fl = nrows(A) == length(b) if !fl && throw_error - error("Incompatible number of rows in linear system (use `side = :left` to switch to an action from the left)") + error("Incompatible number of rows in linear system (use `side = :left` for a system with the indeterminate on the left)") end return fl end @@ -668,7 +668,7 @@ end function check_linear_system_dim_left(A::Union{MatElem, SolveCtx}, b::MatElem, throw_error::Bool = true) fl = ncols(A) == ncols(b) if !fl && throw_error - error("Incompatible number of columns in linear system (use `side = :right` to switch to an action from the right)") + error("Incompatible number of columns in linear system (use `side = :right` for a system with the indeterminate on the right)") end return fl end @@ -676,7 +676,7 @@ end function check_linear_system_dim_left(A::Union{MatElem, SolveCtx}, b::Vector, throw_error::Bool = true) fl = ncols(A) == length(b) if !fl && throw_error - error("Incompatible number of columns in linear system (use `side = :right` to switch to an action from the right)") + error("Incompatible number of columns in linear system (use `side = :right` for a system with the indeterminate on the right)") end return fl end