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

View source: R/CSCA.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

Examples

## Not run: 
 Z = rdiag(X,y)
 
## End(Not run)

HerveAbdi/PTCA4CATA documentation built on July 17, 2022, 5:41 a.m.