You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia>repmat(rand(2,2), Int32(1))
ERROR: MethodError: no method matching repmat(::Array{Float64,2}, ::Int32)
Closest candidates are:repmat(::Union{AbstractArray{T,1},AbstractArray{T,2}}, ::Int64) at abstractarraymath.jl:271repmat(::Union{AbstractArray{T,1},AbstractArray{T,2}}, ::Int64, ::Int64) at abstractarraymath.jl:271ineval_user_input(::Any, ::Base.REPL.REPLBackend) at ./REPL.jl:64inmacro expansion at ./REPL.jl:95 [inlined]
in (::Base.REPL.##3#4{Base.REPL.REPLBackend})() at ./event.jl:68
Could the signature be relaxed to accept generic Integers? (I guess yes :)
The text was updated successfully, but these errors were encountered:
In that case the signature of reshape was tightened to avoid some weird consequences (obtaining ReshapedArray instead of Array). I guess that it is safe to relax repmat instead, right?
Could the signature be relaxed to accept generic
Integer
s? (I guess yes :)The text was updated successfully, but these errors were encountered: