Jmat: Jmat

Description Usage Arguments Details Value Examples

View source: R/jmat.R

Description

Jmat peforms the generation of unit matrix.

Usage

1
Jmat(n)

Arguments

n

integer

Details

An J matrix is a square matrix where all the entries are one.

Value

square matrix of order n

Examples

1
2
3
4
5
6
Jmat(4)
#      [,1] [,2] [,3] [,4]
#[1,]    1    1    1    1
#[2,]    1    1    1    1
#[3,]    1    1    1    1
#[4,]    1    1    1    1

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