Fast dot product along the first dimension.

Speeds up weight-filter by a factor of 16 in testing.

--BRJ