linspace()
& logspace()
don't exist in Julia 1.0+. Instead, you should use range()
:
range(start, stop=stop, length=n)
: Constructs aStepRangeLen
object.collect(range(0, stop=100, length=101))
: Generates aVector{Float64}
(notVector{Int}
).
10 .^ range(start, stop=stop, length=n)
: Generates aVector{Float64}
object.10 .^ range(-10, stop=10, length=101)
: Log-spaced values ∈ [1.0e-10, 1.0e10].