Community Profile

photo

merhisam


Michigan State University

Last seen: 1 year ago Active since 2018

Followers: 0   Following: 0

Message

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


How to replace the diagonal entries of a square matrix with entries from a vectore of equal length?
I have an nxn matrix M, and a vector v of length n. I want to swap the diagonal of M with the vector v, without a for loop. Is t...

6 years ago | 2 answers | 1

2

answers