Rotation Matrix to Specific Direction
Construct the p x p rotation matrix that rotates the
unit vector (1,0,....0), i.e., the x_1-axis,
onto (1,1,1,...1)/sqrt(p), or more generally to
u / ||u|| (u :=
integer; the dimension (of the vectors involved).
logical indicating if the transposed matrix is to returned.
numeric vector of length p onto which the unit vector should be rotated; defaults to “the diagonal” prop. to(1,1,1,...,1).
qr decomposition is used for a Gram-Schmitt basis
p x p orthogonal matrix which rotates
(1,0,...,0) onto a vector proportional to
qr, matrix (and vector) multiplication,
1 2 3 4 5 6 7 8
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.