Learn R Programming

gallery (version 1.0.0)

dramadah: Create anti-Hadamard matrix A

Description

Returns a n-by-n nonsingular matrix of 0's and 1's. With large determinant or inverse. If k=1, A is Toeplitz and abs(det(A))=1. If k=2, A is upper triangular and Toeplitz. If k=3, A has maximal determinant among (0,1) lower Hessenberg matrices. Also is Toeplitz.

Also known as an anti-Hadamard matrix.

Usage

dramadah(n, k = 1)

Value

Matrix of zeros and ones

Arguments

n

order of matrix

k

decides type of matrix returned.