diff --git a/base/linalg_dense.jl b/base/linalg_dense.jl index e8a0d139f1490..48c73f90a63b5 100644 --- a/base/linalg_dense.jl +++ b/base/linalg_dense.jl @@ -773,7 +773,7 @@ svdt(x::Number,vecs::Bool,thin::Bool) = vecs ? (x==0?one(x):x/abs(x),abs(x),one( function svd(x::StridedMatrix,vecs,thin) (u, s, vt) = svdt(x,vecs,thin) - return (u, s, vt.') + return (u, s, vt') end svd(A) = svd(A,true,false) diff --git a/doc/stdlib/base.rst b/doc/stdlib/base.rst index b6f6355e5e82c..e90c1e02a9a64 100644 --- a/doc/stdlib/base.rst +++ b/doc/stdlib/base.rst @@ -1721,7 +1721,7 @@ Linear algebra functions in Julia are largely implemented by calling functions f .. function:: svd(A) -> U, S, V - Compute the SVD of A, returning ``U``, ``S``, and ``V`` such that ``A = U*S*V.'``. + Compute the SVD of A, returning ``U``, ``S``, and ``V`` such that ``A = U*S*V'``. .. function:: svdt(A) -> U, S, Vt diff --git a/extras/image.jl b/extras/image.jl index 6d013a7ee137c..66b1909430135 100644 --- a/extras/image.jl +++ b/extras/image.jl @@ -710,7 +710,7 @@ function imfilter{T}(img::Matrix{T}, filter::Matrix{T}, border::String, value) error("wrong border treatment") end # check if separable - U, S, V = svd(filter) + U, S, V = svdt(filter) separable = true; for i = 2:length(S) # assumption that <10^-7 \approx 0