Gram Schmidit python to julia

I see. I forgot about Python ranges. Those are fairly error prone to translate to Julia. I teach numerical analysis classes in which I look at and usually try to debug student code in Python, even if I don’t use it myself. I’m pretty good about switching between 1 based and 0 based indexing of arrays, but I still don’t spot errors with things like range(i) very easily.

1 Like