Hopefully sped matrix-vector multiplication of cos2 matrices up