mat2rot: mat2rot

Description Usage Arguments Value Examples

View source: R/mat2rot.R

Description

Rotate a symmetric band matrix to get the rotated matrix associated. Each column of the rotated matrix correspond to a diagonal. The first column is the main diagonal, the second one is the upper-diagonal and so on. Artificial 0 are placed at the end of each column if necessary.

Usage

1

Arguments

M

Band square matrix or a list of diagonal.

Value

Rotated matrix.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
A=diag(4)
A[2,3]=2
A[3,2]=2

## Original Matrix
A
## Rotated version
R=mat2rot(A)
R

rot2mat(mat2rot(A))

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