rdiag: right (i.e., post) Multiply a matrix by a diagonal matrix

View source: R/rldiag.R

rdiagR Documentation

right (i.e., post) Multiply a matrix by a diagonal matrix

Description

rdiag: right (i.e., post) Multiply a matrix by a diagonal matrix (with only the diagonal elements being given).

Usage

rdiag(X, y)

Arguments

X

an I by J matrix.

y

a J element vector (of the diagonal elements of a J by J matrix)

Value

an I by J matrix equal to X

Author(s)

Hervé Abdi

See Also

ldiag


DistatisR documentation built on Dec. 5, 2022, 9:05 a.m.