J {qwalkr} | R Documentation |
The All-Ones Matrix
Description
Returns the all-ones matrix of order n
.
Usage
J(n)
Arguments
n |
the order of the matrix. |
Value
A square matrix of order n
in which every entry is
equal to 1. The all-ones matrix is given by
J_{n\ x\ n} = 1_{n\ x\ 1}1_{n\ x\ 1}^T
.
See Also
Examples
# Return the all-ones matrix of order 5.
J(5)
[Package qwalkr version 0.1.0 Index]