4 ms·
That is wildly disingenuous. Assuming you've imported numpy as np, you get an nxn identity matrix by doing np.identity(n) http://numpy.org/doc/stable/refe
by seanhunter 1y ago
That is wildly disingenuous. Assuming you've imported numpy as np, you get an nxn identity matrix by doing
np.identity(n)
http://numpy.org/doc/stable/reference/generated/numpy.identity.html http://numpy.org/doc/stable/reference/generated/numpy.identi...
- kelas 1y ago> That is wildly disingenuous. assuming you're referring to numpy as to have anything to do with python spec, i totally agree with you. only it doesn't. so don't pytorch and pandas (and good so, poor python doesn't need any extra help to be completely f). > you get an nxn identity matrix by... no, man, that's how you get it. really advanced technique, kudos! i get it by: id:{...} /there are many ways to implement identity in k, and it's fun! id 3 +1.00 +0.00 +0.00 +0.00 +1.00 +0.00 +0.00 +0.00 +1.00 but if you can keep a secret, more recently we've gotten so lazy and disingenuous in k land, and because we need them bloody matrices so often now, we just do it like so: &3 +1.00 +1.00 +1.00 +1.00 +1.00 +1.00 +1.00 +1.00 +1.00 =3 +1.00 +0.00 +0.00 +0.00 +1.00 +0.00 +0.00 +0.00 +1.00 (but of course before we do that we first install python4, numpy, pytorch, pandas and polars - not because we need them, just to feel like seasoned professionals who know what they're doing)