From 87abe97ae7d872e1d11a6309db42daf2b103aa45 Mon Sep 17 00:00:00 2001 From: Andreas Noack Date: Tue, 23 Jan 2018 14:37:22 +0100 Subject: [PATCH] Fix typos --- stdlib/LinearAlgebra/docs/src/index.md | 4 ++-- stdlib/LinearAlgebra/src/deprecated.jl | 4 ++-- stdlib/LinearAlgebra/src/generic.jl | 18 +++++++++--------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/stdlib/LinearAlgebra/docs/src/index.md b/stdlib/LinearAlgebra/docs/src/index.md index 0dc5fbc6791bf..4ab2278fd1a06 100644 --- a/stdlib/LinearAlgebra/docs/src/index.md +++ b/stdlib/LinearAlgebra/docs/src/index.md @@ -354,8 +354,6 @@ LinearAlgebra.tril! LinearAlgebra.diagind LinearAlgebra.diag LinearAlgebra.diagm -LinearAlgebra.mul1! -LinearAlgebra.mul2! LinearAlgebra.rank LinearAlgebra.norm LinearAlgebra.vecnorm @@ -431,6 +429,8 @@ below (e.g. `mul!`) according to the usual Julia convention. ```@docs LinearAlgebra.mul! +LinearAlgebra.mul1! +LinearAlgebra.mul2! LinearAlgebra.ldiv! LinearAlgebra.rdiv! ``` diff --git a/stdlib/LinearAlgebra/src/deprecated.jl b/stdlib/LinearAlgebra/src/deprecated.jl index 67b4320133c65..34092c9ef3a9f 100644 --- a/stdlib/LinearAlgebra/src/deprecated.jl +++ b/stdlib/LinearAlgebra/src/deprecated.jl @@ -1274,5 +1274,5 @@ end @deprecate scale!(a::Number, B::AbstractArray) mul2!(a, B) @deprecate scale!(A::AbstractMatrix, b::AbstractVector) mul1!(A, Diagonal(b)) @deprecate scale!(a::AbstractVector, B::AbstractMatrix) mul2!(Diagonal(a), B) -@deprecate scale!(C::AbstractMatrix, A::AbstractMatrix, b::AbstractVector) mul!(X, A, Diagonal(b)) -@deprecate scale!(C::AbstractMatrix, a::AbstractVector, B::AbstractMatrix) mul!(X, Diagonal(a), B) +@deprecate scale!(C::AbstractMatrix, A::AbstractMatrix, b::AbstractVector) mul!(C, A, Diagonal(b)) +@deprecate scale!(C::AbstractMatrix, a::AbstractVector, B::AbstractMatrix) mul!(C, Diagonal(a), B) diff --git a/stdlib/LinearAlgebra/src/generic.jl b/stdlib/LinearAlgebra/src/generic.jl index 6a03e35d61555..792fbbc39e044 100644 --- a/stdlib/LinearAlgebra/src/generic.jl +++ b/stdlib/LinearAlgebra/src/generic.jl @@ -43,44 +43,44 @@ mul!(C::AbstractArray, s::Number, X::AbstractArray) = generic_mul!(C, X, s) mul!(C::AbstractArray, X::AbstractArray, s::Number) = generic_mul!(C, s, X) """ - mul1!(A, b) + mul1!(A::AbstractArray, b::Number) Scale an array `A` by a scalar `b` overwriting `A` in-place. # Examples ```jldoctest -julia> a = [1 2; 3 4] +julia> A = [1 2; 3 4] 2×2 Array{Int64,2}: 1 2 3 4 -julia> mul1!(a, 2) +julia> mul1!(A, 2) 2×2 Array{Int64,2}: 2 4 6 8 ``` """ -mul1!(X::AbstractArray, s::Number) = generic_mul1!(X, s) +mul1!(A::AbstractArray, b::Number) = generic_mul1!(A, b) """ - mul2!(A, b) + mul2!(a::Number, B::AbstractArray) -Scale an array `A` by a scalar `b` overwriting `A` in-place. +Scale an array `B` by a scalar `a` overwriting `B` in-place. # Examples ```jldoctest -julia> a = [1 2; 3 4] +julia> B = [1 2; 3 4] 2×2 Array{Int64,2}: 1 2 3 4 -julia> mul2!(2, a) +julia> mul2!(2, B) 2×2 Array{Int64,2}: 2 4 6 8 ``` """ -mul2!(s::Number, X::AbstractArray) = generic_mul2!(s, X) +mul2!(a::Number, B::AbstractArray) = generic_mul2!(a, B) """ cross(x, y)