So, I'm writing a function. In order to begin the computation, I need to create a vector of 1s. This is going to be multiplied by an inputted matrix A.
So if a matrix is 6x6, it becomes a vector of length 6, made up of 1s. If it's 4x4, it becomes a vector of length 4 with all values at 1.
How do I make the vector the right size for any given matrix A?