'Dot product of self by a vector *V* in sparse-dense to dense format
*V* dense vector of shape (self.m,)'

def dot(self, V):

    assert (V.shape == (self.m,))
    return np.bincount(self.rows, weights=(self.vals * V[self.cols]), minlength=self.m)
