From 5220d0613673b4b0cf98a4ffb8d9be27fc231082 Mon Sep 17 00:00:00 2001 From: OlivierHnt <38465572+OlivierHnt@users.noreply.github.com> Date: Tue, 24 Dec 2024 12:20:58 +0100 Subject: [PATCH] Fix typos --- src/matmul.jl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/matmul.jl b/src/matmul.jl index 2309e9c4..a6e61dad 100644 --- a/src/matmul.jl +++ b/src/matmul.jl @@ -152,23 +152,23 @@ matmul_mode() = MatMulMode{:slow}() Base.similar(a::Array{Interval{T},1}) where {T<:NumTypes} = zeros(Interval{T}, size(a, 1)) Base.similar(a::Array{Complex{Interval{T}},1}) where {T<:NumTypes} = zeros(Complex{Interval{T}}, size(a, 1)) -Base.similar(a::Array{Interval{T},2}) where {T<:NumTypes} = zeros(T, size(a, 1), size(a, 2)) -Base.similar(a::Array{Complex{Interval{T}},2}) where {T<:NumTypes} = zeros(T, size(a, 1), size(a, 2)) - Base.similar(a::Array{Interval{T},1}, S::Type) where {T<:NumTypes} = zeros(S, size(a, 1)) Base.similar(a::Array{Complex{Interval{T}},1}, S::Type) where {T<:NumTypes} = zeros(S, size(a, 1)) +Base.similar(a::Array{Interval{T},2}) where {T<:NumTypes} = zeros(Interval{T}, size(a, 1), size(a, 2)) +Base.similar(a::Array{Complex{Interval{T}},2}) where {T<:NumTypes} = zeros(Complex{Interval{T}}, size(a, 1), size(a, 2)) + Base.similar(a::Array{Interval{T},2}, S::Type) where {T<:NumTypes} = zeros(S, size(a, 1), size(a, 2)) Base.similar(a::Array{Complex{Interval{T}},2}, S::Type) where {T<:NumTypes} = zeros(S, size(a, 1), size(a, 2)) -Base.similar(::Array{Interval{T}}, m::Int) where {T<:NumTypes} = zeros(T, m) -Base.similar(::Array{Complex{Interval{T}}}, m::Int) where {T<:NumTypes} = zeros(T, m) +Base.similar(::Array{Interval{T}}, m::Int) where {T<:NumTypes} = zeros(Interval{T}, m) +Base.similar(::Array{Complex{Interval{T}}}, m::Int) where {T<:NumTypes} = zeros(Complex{Interval{T}}, m) + +Base.similar(::Array{Interval{T}}, dims::Dims) where {T<:NumTypes} = zeros(Interval{T}, dims) +Base.similar(::Array{Complex{Interval{T}}}, dims::Dims) where {T<:NumTypes} = zeros(Complex{Interval{T}}, dims) Base.similar(::Array{Interval{T}}, S::Type, dims::Dims) where {T<:NumTypes} = zeros(S, dims) Base.similar(::Array{Complex{Interval{T}}}, S::Type, dims::Dims) where {T<:NumTypes} = zeros(S, dims) - -Base.similar(::Array{Interval{T}}, dims::Dims) where {T<:NumTypes} = zeros(T, dims) -Base.similar(::Array{Complex{Interval{T}}}, dims::Dims) where {T<:NumTypes} = zeros(T, dims) # function LinearAlgebra.mul!(C::AbstractVecOrMat{<:RealOrComplexI}, A::AbstractMatrix{<:RealOrComplexI}, B::AbstractVecOrMat{<:RealOrComplexI})