Re:Why I often implement things from scratch (2006)
by pgcj_poster on Sunday March 08, 2020 @05:19PM
(#22520688)
Isn't this just going to be `lambda M: [[M[1][1],-M[0][1]], [-M[1][0], M[0][0]]]`? You guys are going to add a library just for that?
[ Parent
| on HN ]
Re:Why I often implement things from scratch (2006)
by dimtion on Sunday March 08, 2020 @06:56PM
(#22521246)
I don't want to sound mean, but the simple fact that you forgot to divide by the matrix determinant for me is a great illustration of why using a library might be a good option.
I think for most of us can make this mistake, and reasoning in higher order (i.e. using a function from a tested library) helps avoiding this kind of error.