
Extract a specified eigenvector from the Eigen as a Matrix.
Suppose we have an eigenvector of dimension 3 with elements {0.705, 0.424, 0.566}, then the newly created Matrix will depend on the Number of rows and Number of columns argument as follows:
If numberOfRows=0 and numberOfColumns=0, then the Matrix will have 1 row and 3 columns:
0.705 0.424 0.566
If numberOfRows=3 and numberOfColumns=0, then the Matrix will have 3 rows and 1 column:
0.705
0.424
0.566
If numberOfRows=2 and numberOfColumns=2, then the Matrix will have 2 rows and 2 columns:
0.705 0.424
0.566 0.0
If numberOfRows=4 and numberOfColumns=3, then the we get:
0.705 0.424 0.566
0.0 0.0 0.0
0.0 0.0 0.0
0.0 0.0 0.0
© djmw, June 17, 2016