News for hackers. Stuff that matters.
Re:Potential of the Julia programming language for high ener... by jampekka on Tuesday December 05, 2023 @11:33AM (#38533097)
Matrix multiplication works with the @ operator, e.g. A@B. (Or with the * operator if defined as np.matrix, but nobody uses that and probably shouldn't). For matrix exponentials you need scipy.linalg.expm, but there is nothing in Python preventing why it couldn't be done with e.g. e**M if wanted (or even e^M if wanted but probably shouldn't). You can even implement it yourself in a few lines.

You don't seem to know much about what you're criticizing.

Re:Potential of the Julia programming language for high ener... by qart on Tuesday December 05, 2023 @01:56PM (#38535338)
Lol Good luck working in a project where people have decided to create wrappers like you suggested.
Re:Potential of the Julia programming language for high ener... by jampekka on Tuesday December 05, 2023 @02:07PM (#38535464)
For expm? The matmul as @ is numpy standard and used widely. If you have something that needs expm so much it needs to be an operator, good luck working in a project where people can't understand one-line class definition.
Re:Potential of the Julia programming language for high ener... by qart on Tuesday December 05, 2023 @02:32PM (#38535800)
I simply refuse to work with code written by people who have had a hundred such harebrained ideas. No luck needed, but thanks!
Re:Potential of the Julia programming language for high ener... by jampekka on Tuesday December 05, 2023 @03:53PM (#38536757)
Why is it any more or less harebrained for the language devs to overload an operator in the core?