antidiagnol: antidiagnol

Description Usage Arguments Details Value Examples

Description

antidiagnol performs the creation of Back diagnol matrix.

Usage

1

Arguments

n

integer

Details

An anti-diagonal matrix is a square matrix where all the entries are zero except those on the diagonal going from the lower left corner to the upper right corner entries are equal to 1.

In the first row, the last column will be 1 and all other entries are 0.

In second row, last but one column is 1 and others are 0 and so on.

Value

Antidiagnol matrix of order n.

Examples

1
2
3
4
5
antidiagnol(4)
#0    0    0    1
#0    0    1    0
#0    1    0    0
#1    0    0    0

HadamardR documentation built on April 14, 2020, 7:01 p.m.