I'd like to calculate the 3x3 matrix, what I get by multiplying a 3 dimensional vectorabya transposed. So what I'm looking for is:

How would you do this using GLM?Code :

x x^2, xy, xz y * x y z = xy, y^2, yz z xz, yz, z^2

My problem is that:

1. It seems that it cannot transpose vectors

2. It seems that it cannot multiply 3x1 to 1x3 matrices together.

I know I can just fill in the positions by hand, but isn't there a better way for it?