I need to obtain a matrix vvT formed by a column vector v. i.e. the column vector v matrix times its transpose.
I found Mathematica doesn’t support column vector. Please help.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Does this do what you want?
To get
{1, 2, 3, 4, 5}into{{1}, {2}, {3}, {4}, {5}}you can use any of:You may find one of these more convenient than the others. Usually on long lists you will find
Partitionto be the fastest.Also, your specific operation can be done in different ways:
Syntactically shortest: