Log in
Sign up
See new Tweets

Conversation

Fabian Giesen
@rygorous
·
Feb 6, 2015
Quick blog post "A small note on SIMD matrix-vector multiplication" https://fgiesen.wordpress.com/2015/02/05/a-small-note-on-simd-matrix-vector-multiplication/… cheesing away one shuffle for fun and profit.
fgiesen.wordpress.com
A small note on SIMD matrix-vector multiplication
Suppose we want to calculate a product between a 4×4 matrix M and a 4-element vector v: $latex Mv = \begin{pmatrix}a_x & b_x & c_x & d_x \\ a_y & b_y & c_y & d_y \\ a_z…
1
24
53
Simon Brown
@sjb3d
Replying to
@rygorous
@rygorous
reminds me of a similar trick to remove one shuffle from vec3 cross product: a.yzx*b.zxy - a.zxy*b.yzx = (a*b.yzx - a.yzx*b).yzx
10:10 AM · Feb 6, 2015·Twitter Web Client
12
Retweets
35
Likes
Fabian Giesen
@rygorous
·
Feb 6, 2015
Replying to
@sjb3d
@sjb3d
Cheers, didn't know that one! :)
1