A new function for sparse-vector multiplication with domain as arguments