On Friday, September 9, 2016 at 11:56:58 AM UTC-4, Christoph Ortner wrote:
>
> I predict that - right now - somebody is writing an answer explaining why 
> this is terrible and you need an abstract array type with lazy evaluation. 
> ;)


Well, we already have the built-in constant I.   I[i,j] is the j-th element 
of the i-th unit vector, computed lazily, i.e. the Kronecker delta function.

But yes, if you need unit vectors a lot you may be doing something wrong. 

Reply via email to