def funcConvPar(aryDm,<EOL>vecHrf,<EOL>varNumVol):
<EOL>aryDm = np.concatenate((aryDm, np.zeros((aryDm.shape[<NUM_LIT:0>], <NUM_LIT:100>))), axis=<NUM_LIT:1>)<EOL>vecHrf = np.concatenate((vecHrf, np.zeros((<NUM_LIT:100>,))))<EOL>aryDmConv = np.empty((aryDm.shape[<NUM_LIT:0>], varNumVol))<EOL>for idx in range(<NUM_LIT:0>, aryDm.shape[<NUM_LIT:0>]):<EOL><INDENT>vecDm = aryDm[idx, :]<EOL>aryDmConv[idx, :] = np.convolve(vecDm, vecHrf,<EOL>mode='<STR_LIT>')[:varNumVol]<EOL><DEDENT>return aryDmConv<EOL>
Function for convolution of pixel-wise 'design matrix' with HRF model.