szcf-weiya/DegreesOfFreedom.jl

ArgumentError: no outer repetition count may be negative; got (-1,)

Closed this issue · 0 comments

julia> repeat([""], -1)
ERROR: ArgumentError: no outer repetition count may be negative; got (-1,)
Stacktrace:
 [1] check
   @ ./abstractarraymath.jl:450 [inlined]
 [2] #repeat#1
   @ ./abstractarraymath.jl:399 [inlined]
 [3] repeat(A::Vector{String}, counts::Int64)
   @ Base ./abstractarraymath.jl:356
 [4] top-level scope
   @ REPL[8]:1
 [5] top-level scope
   @ ~/Programs/.julia/packages/CUDA/DfvRa/src/initialization.jl:52

julia> repeat([""], -2)
ERROR: ArgumentError: no outer repetition count may be negative; got (-2,)
Stacktrace:
 [1] check
   @ ./abstractarraymath.jl:450 [inlined]
 [2] #repeat#1
   @ ./abstractarraymath.jl:399 [inlined]
 [3] repeat(A::Vector{String}, counts::Int64)
   @ Base ./abstractarraymath.jl:356
 [4] top-level scope
   @ REPL[9]:1
 [5] top-level scope
   @ ~/Programs/.julia/packages/CUDA/DfvRa/src/initialization.jl:52