right (i.e., post) Multiply a matrix by a diagonal matrix
rdiag
: right (i.e., post) Multiply a matrix by a diagonal matrix (with only the diagonal elements being given).
rdiag(X, y)
X
: an by matrix.y
: a element vector (of the diagonal elements of a by matrix)an by matrix equal to X
ldiag
Hervé Abdi
Useful links