Like above, you may do ``s2 = Z * bmultiply(Z, w, 1)' ``.