rot2mat: rot2mat

Description Usage Arguments Value Examples

View source: R/rot2mat.R

Description

Get back a symmetric square matrix based on his rotated row-wised version. The rotated form of the input is such each column correspond to a diagonal, where the first column is the main diagonal and next ones are the upper/lower-diagonal. To match dimension, last element of these columns are discarded.

Usage

1

Arguments

R

Rotated matrix.

Value

Band square matrix.

Examples

1
2
3
4
5
6
7
D0=1:5;
D1=c(0,1,0,0);
D2=rep(2,3);

A=rot2mat(cbind(D0,c(D1,0),c(D2,0,0)))
A
mat2rot(rot.mat(cbind(D0,c(D1,0),c(D2,0,0))))

Monneret/bandsolve documentation built on May 7, 2019, 4:59 p.m.