Sorry - maybe not following - but can this be done by broadcasting maybe with a `newaxis` ?