3 ms·
You're going to Julia so that you can avoid typing "import numpy as np" at the beginning of a file? Or is there more to it?
by pc86 6y ago
You're going to Julia so that you can avoid typing "import numpy as np" at the beginning of a file? Or is there more to it?
- fishmaster 6y agoAlso so that I don't have to use things like "np.dot(A, B)" and similar annoyances.
- axi1 6y agoAs a sidenote, I don't write "import numpy as np" in jupyter notebooks (at least as long as I don't share them with others) for I have this line in my ipython startup file.
- dklend122 6y agoMathematical programming in Julia is just more natural and integrated with the language and type system. From dot broadcasting, to multiple dispatch, to parametric types (if you want ), multidimensional array comprehensions. No worrying about 4 different container types (list, np array, pytorch tensor, symbolic etc etc) Everything works with one array abstraction, including gpu and multi threaded
- fishmaster 6y agoThis is what I mean with it being more natural and elegant in Julia. Also, "@code_warntype" is incredibly useful for efficient code.