I am trying to write a function that takes a column vector of variable dimension as an input and returns the outer product matrix as an output.
What I have tried:
OuterVectorProduct[x__] := MatrixForm[Outer[Times, x, x]]
However, this obviously returns wrong results.
Thanks!
MatrixForm
in the definition makes it a bit useless for further computation. Otherwise, its fine (exceptx_
would be better thanx__
). $\endgroup$ – Andrew Norton Aug 4 '19 at 22:17