Skip to content

Commit 05333f3

Browse files
committed
minor fix for Julia v1.0
1 parent 2a8f6dc commit 05333f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fillmap.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ struct FillMap{T} <: LinearMap{T}
22
λ::T
33
size::Dims{2}
44
function FillMap::T, dims::Dims{2}) where {T}
5-
all(>=(0), dims) || throw(ArgumentError("dims of FillMap must be non-negative"))
5+
(dims[1]>=0 && dims[2]>=0) || throw(ArgumentError("dims of FillMap must be non-negative"))
66
return new{T}(λ, dims)
77
end
88
end
@@ -52,5 +52,5 @@ Base.:(*)(A::FillMap, λ::RealOrComplex) = FillMap(A.λ * λ, size(A))
5252

5353
function Base.:(*)(A::FillMap, B::FillMap)
5454
check_dim_mul(A, B)
55-
return FillMap(A.λ*B.λ*nA, (size(A, 1), size(B, 2)))
55+
return FillMap(A.λ*B.λ*size(A, 2), (size(A, 1), size(B, 2)))
5656
end

0 commit comments

Comments
 (0)