Learn R Programming

hyper2 (version 3.0-0)

mult_grid: Kronecker matrix functionality

Description

Peculiar version of expand.grid() for matrices

Usage

mult_grid(L)
pair_grid(a,b)

Arguments

L

List of matrices

a,b

Matrices

Author

Robin K. S. Hankin

Details

Function pair_grid(a,b) returns a matrix with each column of a cbind()-ed to each column of b.

Function mult_grid() takes a list of matrices; it is designed for use by ggrl().

See Also

ggrl

Examples

Run this code
pair_grid(diag(2),diag(3))
mult_grid(lapply(1:4,diag))

Run the code above in your browser using DataLab