vec((A .* B)')
(Note that Julia arrays are stored by column, so if you are coming from Python where arrays are stored by row you might consider transposing your array layouts for efficiency.)
vec((A .* B)')
(Note that Julia arrays are stored by column, so if you are coming from Python where arrays are stored by row you might consider transposing your array layouts for efficiency.)