You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: base/linalg/givens.jl
+12-2
Original file line number
Diff line number
Diff line change
@@ -181,8 +181,18 @@ function givensAlgorithm{T<:FloatingPoint}(f::Complex{T}, g::Complex{T})
181
181
return cs, sn, r
182
182
end
183
183
184
-
givens{T}(f::T, g::T, i1::Integer, i2::Integer, size::Integer) = i2 <= size ? (i1 < i2 ?Givens(size, i1, i2, convert((T,T,T), givensAlgorithm(f, g))...) :error("second index must be larger than the first")) :error("indices cannot be larger than size Givens rotation matrix")
185
-
givens{T}(A::AbstractMatrix{T}, i1::Integer, i2::Integer, col::Integer) = i1 < i2 ?Givens(size(A, 1), i1, i2, convert((T,T,T), givensAlgorithm(A[i1,col], A[i2,col]))...) :error("second row index must be larger than the first")
0 commit comments