DirectXMath alternative

Guillaume Piolat first.last at gmail.com
Wed Dec 5 14:16:08 UTC 2018


On Wednesday, 5 December 2018 at 11:43:46 UTC, evilrat wrote:
>
> Are you sure you don't confuse lines with columns?
> Here it says it is row major
> https://github.com/d-gamedev-team/gfm/blob/master/math/gfm/math/matrix.d#L17
>

Yes, sorry I made a mistake. It's indeed row-major in gfm:math.


> The only real difference is the order or operations. IIRC 
> however gfm tries to hide this difference and use math notation.
> Another thing is memory caches - accessing row in succession 
> will have better chance of cached access while accessing 
> columns in most(if not all) cases will fetch more items only to 
> discard them on next value.
> Though I haven't ever profiled this myself to be 100% sure.

I don't know if there is a definitive answer as to which is 
preferable.


More information about the Digitalmars-d-learn mailing list