davidr,
@davidr@hachyderm.io avatar

@villares derp, I've been thinking of 3D vectors so I was like...you aren't using all the components.

I agree about the shape apparently meaning it's just the normalization. I wonder if the linalg is doing the wrong direction or something.

numpy makes this hard for no reason, but I usually take row-wise magnitudes like this:

mag = np.sqrt(np.sum(v**2, axis=1))

  • All
  • Subscribed
  • Moderated
  • Favorites
  • python
  • everett
  • Youngstown
  • InstantRegret
  • ethstaker
  • slotface
  • PowerRangers
  • Durango
  • vwfavf
  • kavyap
  • tsrsr
  • ngwrru68w68
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • anitta
  • rosin
  • tacticalgear
  • thenastyranch
  • osvaldo12
  • GTA5RPClips
  • khanakhh
  • cisconetworking
  • modclub
  • cubers
  • tester
  • normalnudes
  • Leos
  • provamag3
  • All magazines