File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,9 @@ Standard library changes
46
46
47
47
#### LinearAlgebra
48
48
49
+ * The methods ` a / b ` and ` b \ a ` with ` a ` a scalar and ` b ` a vector,
50
+ which were equivalent to ` a * pinv(b) ` , have been removed due to the
51
+ risk of confusion with elementwise division ([ #44358 ] ).
49
52
* We are now wholly reliant on libblastrampoline (LBT) for calling
50
53
BLAS and LAPACK. OpenBLAS is shipped by default, but building the
51
54
system image with other BLAS/LAPACK libraries is not
Original file line number Diff line number Diff line change @@ -1142,9 +1142,6 @@ function (/)(A::AbstractVecOrMat, B::AbstractVecOrMat)
1142
1142
size (A,2 ) != size (B,2 ) && throw (DimensionMismatch (" Both inputs should have the same number of columns" ))
1143
1143
return copy (adjoint (adjoint (B) \ adjoint (A)))
1144
1144
end
1145
- # \(A::StridedMatrix,x::Number) = inv(A)*x Should be added at some point when the old elementwise version has been deprecated long enough
1146
- # /(x::Number,A::StridedMatrix) = x*inv(A)
1147
- / (x:: Number , v:: AbstractVector ) = x* pinv (v)
1148
1145
1149
1146
cond (x:: Number ) = iszero (x) ? Inf : 1.0
1150
1147
cond (x:: Number , p) = cond (x)
Original file line number Diff line number Diff line change @@ -1108,12 +1108,12 @@ end
1108
1108
end
1109
1109
1110
1110
function test_rdiv_pinv_consistency (a, b)
1111
- @test (a * b) / b ≈ a* (b/ b) ≈ (a* b)* pinv (b) ≈ a* (b* pinv (b))
1112
- @test typeof ((a * b) / b) == typeof ( a* (b/ b)) == typeof ((a* b)* pinv (b)) == typeof (a* (b* pinv (b)))
1111
+ @test a* (b/ b) ≈ (a* b)* pinv (b) ≈ a* (b* pinv (b))
1112
+ @test typeof (a* (b/ b)) == typeof ((a* b)* pinv (b)) == typeof (a* (b* pinv (b)))
1113
1113
end
1114
1114
function test_ldiv_pinv_consistency (a, b)
1115
- @test a \ (a * b) ≈ (a\ a)* b ≈ (pinv (a)* a)* b ≈ pinv (a)* (a* b)
1116
- @test typeof (a \ (a * b)) == typeof ( (a\ a)* b) == typeof ((pinv (a)* a)* b) == typeof (pinv (a)* (a* b))
1115
+ @test (a\ a)* b ≈ (pinv (a)* a)* b ≈ pinv (a)* (a* b)
1116
+ @test typeof ((a\ a)* b) == typeof ((pinv (a)* a)* b) == typeof (pinv (a)* (a* b))
1117
1117
end
1118
1118
function test_div_pinv_consistency (a, b)
1119
1119
test_rdiv_pinv_consistency (a, b)
You can’t perform that action at this time.
0 commit comments