Outer product
A possible solution can be found at: https://sauce.zdv.uni-mainz.de/submissions/60846/show