do a dot with a diagonal sparse matrix.