Thanks for responding. I've posted a response to both you and Tom in 
response to Tom's post. In short, it sounds like my definition of Range is 
poor/wrong and I should just implement my own custom type.

Cheers and thanks,

Colin

On Friday, 3 June 2016 12:54:57 UTC+10, Yichao Yu wrote:
>
> On Thu, Jun 2, 2016 at 10:44 PM,  <[email protected] <javascript:>> 
> wrote: 
> > Hi all, 
> > 
> > Is there any way to build a range that corresponds to the mathematical 
> set 
> > (-Inf, Inf)? I had a look at the source code in range.jl (which is very 
> > readable!) and it doesn't appear that any of the Range types is suitable 
> to 
> > this task, e.g. StepRange doesn't take Float64 inputs, UnitRange(-Inf, 
> Inf) 
> > returns the range (-Inf, NaN) since the constructor returns 
> > convert(T,start+floor(stop-start)) for the stop value (I'm presuming for 
> > good reasons that I'm not smart enough to understand), and FloatRange 
> needs 
> > concepts like step, len, and divisor that aren't well defined in this 
> > context. 
>
> A Range is not a interval but rather a series of equally spaced 
> numbers so a range with `Inf` as start/end is basically meaningless. 
> You should probably find another datastructure. 
>
> > 
> > Cheers, 
> > 
> > Colin 
> > 
> > 
>

Reply via email to