diff --git a/doc/src/base/collections.md b/doc/src/base/collections.md index 84e5702e0e396..d329ce6ef6119 100644 --- a/doc/src/base/collections.md +++ b/doc/src/base/collections.md @@ -119,8 +119,6 @@ Base.all(::Any) Base.all(::AbstractArray, ::Any) Base.all! Base.count -Base.any(::Any, ::Any) -Base.all(::Any, ::Any) Base.foreach Base.map Base.map! diff --git a/doc/src/base/math.md b/doc/src/base/math.md index 177324abccfaa..4d896c6cb712d 100644 --- a/doc/src/base/math.md +++ b/doc/src/base/math.md @@ -156,7 +156,7 @@ Base.copysign Base.sign Base.signbit Base.flipsign -Base.sqrt(::Real) +Base.sqrt(::Number) Base.isqrt Base.Math.cbrt Base.real(::Complex) diff --git a/doc/src/base/strings.md b/doc/src/base/strings.md index a7e9a8ee4eeee..c848830d7d254 100644 --- a/doc/src/base/strings.md +++ b/doc/src/base/strings.md @@ -48,7 +48,7 @@ Base.findlast(::AbstractChar, ::AbstractString) Base.findprev(::AbstractString, ::AbstractString, ::Integer) Base.occursin Base.reverse(::Union{String,SubString{String}}) -Base.replace(s::AbstractString, ::Pair) +Base.replace(s::AbstractString, ::Pair...) Base.split Base.rsplit Base.strip diff --git a/doc/src/devdocs/build/windows.md b/doc/src/devdocs/build/windows.md index 94316da135f01..3ef7d8a4e9148 100644 --- a/doc/src/devdocs/build/windows.md +++ b/doc/src/devdocs/build/windows.md @@ -120,8 +120,8 @@ MinGW-w64 compilers available through Cygwin's package manager. Compiling Julia from source using [MSYS2](https://msys2.github.io) has worked in the past but is not actively supported. Pull requests to restore support -would be welcome. See a [past version of this file]( -https://github.com/JuliaLang/julia/blob/v0.6.0/README.windows.md) +would be welcome. See a [past version of this file] +(https://github.com/JuliaLang/julia/blob/v0.6.0/README.windows.md) for the former instructions for compiling using MSYS2. @@ -140,8 +140,8 @@ apt-get install wine-stable gcc wget p7zip-full winbind mingw-w64 gfortran-mingw for pkg in i686-w64-mingw32-g++ i686-w64-mingw32-gcc i686-w64-mingw32-gfortran x86_64-w64-mingw32-g++ x86_64-w64-mingw32-gcc x86_64-w64-mingw32-gfortran; do sudo update-alternatives --config $pkg; done ``` -**On Mac**: Install XCode, XCode command line tools, X11 (now [XQuartz]( -https://www.xquartz.org/)), and [MacPorts](https://www.macports.org/install.php) +**On Mac**: Install XCode, XCode command line tools, X11 (now [XQuartz] +(https://www.xquartz.org/)), and [MacPorts](https://www.macports.org/install.php) or [Homebrew](https://brew.sh/). Then run `port install wine wget mingw-w64`, or `brew install wine wget mingw-w64`, as appropriate. @@ -163,8 +163,8 @@ in 32-bit mode). The most effective way to debug a cross-compiled version of Julia on the cross-compilation host is to install a windows version of gdb and run it under wine -as usual. The pre-built packages available [as part of the MSYS2 project]( -https://sourceforge.net/projects/msys2/files/REPOS/MINGW/) are known to work. +as usual. The pre-built packages available [as part of the MSYS2 project] +(https://sourceforge.net/projects/msys2/files/REPOS/MINGW/) are known to work. Apart from the GDB package you may also need the python and termcap packages. Finally, GDB's prompt may not work when launch from the command line. This can be worked around by prepending `wineconsole` to the regular GDB invocation. @@ -183,8 +183,8 @@ yourself using ```make win-extras``` followed by ```make binary-dist``` and ```m ### GDB hangs with cygwin mintty -- Run gdb under the windows console (cmd) instead. gdb [may not function properly]( - https://www.cygwin.com/ml/cygwin/2009-02/msg00531.html) under mintty with non- +- Run gdb under the windows console (cmd) instead. gdb [may not function properly] + (https://www.cygwin.com/ml/cygwin/2009-02/msg00531.html) under mintty with non- cygwin applications. You can use `cmd /c start` to start the windows console from mintty if necessary. @@ -206,10 +206,10 @@ yourself using ```make win-extras``` followed by ```make binary-dist``` and ```m ### Build process is slow/eats memory/hangs my computer - Disable the Windows [Superfetch](https://en.wikipedia.org/wiki/Windows_Vista_I/O_technologies#SuperFetch) - and [Program Compatibility Assistant]( - https://blogs.msdn.com/b/cjacks/archive/2011/11/22/managing-the-windows-7-program-compatibility-assistant-pca.aspx) - services, as they are known to have [spurious interactions]( - https://cygwin.com/ml/cygwin/2011-12/msg00058.html) with MinGW/Cygwin. + and [Program Compatibility Assistant] + (https://blogs.msdn.com/b/cjacks/archive/2011/11/22/managing-the-windows-7-program-compatibility-assistant-pca.aspx) + services, as they are known to have [spurious interactions] + (https://cygwin.com/ml/cygwin/2011-12/msg00058.html) with MinGW/Cygwin. As mentioned in the link above: excessive memory use by `svchost` specifically may be investigated in the Task Manager by clicking on the high-memory diff --git a/doc/src/manual/types.md b/doc/src/manual/types.md index 949d6f3b8d1a0..f04a9d8ec877d 100644 --- a/doc/src/manual/types.md +++ b/doc/src/manual/types.md @@ -1132,7 +1132,7 @@ true Types of functions defined at top-level are singletons. When necessary, you can compare them with [`===`](@ref). -[Closures](@id man-anonymous-functions) also have their own type, which is usually printed with names that end in `#`. Names and types for functions defined at different locations are distinct, but not guaranteed to be printed the same way across sessions. +[Closures](@ref man-anonymous-functions) also have their own type, which is usually printed with names that end in `#`. Names and types for functions defined at different locations are distinct, but not guaranteed to be printed the same way across sessions. ```jldoctest; filter = r"[0-9\.]+" julia> typeof(x -> x + 1) diff --git a/stdlib/LinearAlgebra/docs/src/index.md b/stdlib/LinearAlgebra/docs/src/index.md index baafe762cea3f..38c48bfe6d8d2 100644 --- a/stdlib/LinearAlgebra/docs/src/index.md +++ b/stdlib/LinearAlgebra/docs/src/index.md @@ -414,7 +414,7 @@ Base.cis(::AbstractMatrix) Base.:^(::AbstractMatrix, ::Number) Base.:^(::Number, ::AbstractMatrix) LinearAlgebra.log(::StridedMatrix) -LinearAlgebra.sqrt(::StridedMatrix{<:Real}) +LinearAlgebra.sqrt(::StridedMatrix) LinearAlgebra.cos(::StridedMatrix{<:Real}) LinearAlgebra.sin(::StridedMatrix{<:Real}) LinearAlgebra.sincos(::StridedMatrix{<:Real}) diff --git a/stdlib/LinearAlgebra/src/dense.jl b/stdlib/LinearAlgebra/src/dense.jl index 400562af0118b..d8cc6f8093317 100644 --- a/stdlib/LinearAlgebra/src/dense.jl +++ b/stdlib/LinearAlgebra/src/dense.jl @@ -836,6 +836,8 @@ julia> sqrt(A) 0.0 2.0 ``` """ +sqrt(::StridedMatrix) + function sqrt(A::StridedMatrix{T}) where {T<:Union{Real,Complex}} if ishermitian(A) sqrtHermA = sqrt(Hermitian(A))