m2v: m2v

Description Usage Arguments Value Note See Also Examples

Description

Utility that takes a matrix n x m and stacks its columns to form a column vector of length mn.

Usage

1
m2v(A)

Arguments

A

an m x n matrix

Value

For an m x n input matrix, returns a m*n x 1 matrix (i.e., a column vector).

Note

Meant to capture the MATLAB functionality of the colon operator, A(:)

See Also

odiag

Examples

1
2
A <- matrix(rnorm(9), nr=3, nc=3)
m2v(A)

hanase/demogR documentation built on May 9, 2019, 7:33 p.m.