matrix and vector pointwise multiply work