4 ms·
Yes! Numpy is hugely popular in (at least) physics and machine learning and the main negative comment I get is "Wow that's horrible syntax". I'm still not sure
by c0g 13y ago
Yes! Numpy is hugely popular in (at least) physics and machine learning and the main negative comment I get is "Wow that's horrible syntax". I'm still not sure they'll be convinced, however:
trans_coef.T.dot(solve(H.dot(V).dot(H.T)), trans_coef)
becomes
trans_coef.T @ solve(H @ V @ H.T, trans_coef)
but in MATLAB or Julia might be:
trans_coef' * ((H * V * H') \ trans_coef)
....I want a backslash operator now!