I need to create a 3 x 3 matrix out of 3 vectors of dimension 3. These vectors are the output of softmax function.

Is there a simple syntax, something like what numpy does, or do I need to create a loop for this?

Similar question for the reverse process, where I create a vector from rows of a matrix, although, I could avoid doing this by starting with array of vectors.