steve,
@steve@discuss.systems avatar

A slight re-organization of Priest's "Efficient Scaling for Complex Division" to make it compatible with "try to divide the dumb fast way inline, then branch to rescale only if necessary" while preserving scale invariance of rounding.

Also fixes it up to work for Float16, which the original approach does not.

Further optimization possible and pretty straightforward.

https://github.com/apple/swift-numerics/pull/289

neilhenning,
@neilhenning@mastodon.gamedev.place avatar

@steve sometimes I read your maths-speak and nod along. Today was not one of those days.

pervognsen, (edited )
@pervognsen@mastodon.social avatar

@neilhenning @steve At least it's called complex division. There's a (possibly apocryphal) story in math about undergraduates showing up to an announced research lecture on real simple algebras and being very overwhelmed by what they thought was a "real simple" tutorial for beginners.

pervognsen,
@pervognsen@mastodon.social avatar

@neilhenning @steve My professor also had a dad joke like this about a freshman being asked by a professor if they knew complex multiplication and they said yes. Well, complex multiplication does not mean multiplication of complex numbers (though complex numbers are involved): https://en.wikipedia.org/wiki/Complex_multiplication

barrelshifter,
@barrelshifter@mastodon.social avatar

@pervognsen @neilhenning @steve

“real simple algebra” 🤝 “-funsafe-math”

saagar,

@pervognsen @neilhenning @steve I thought “linear algebra” was remedial classes for people who never learned y=mx+b up to like halfway through high school

pervognsen,
@pervognsen@mastodon.social avatar

@saagar @steve @neilhenning That's affine algebra. Linear algebra is when you're stuck at y=mx.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines