J | R Documentation |
Returns the all-ones matrix of order n
.
J(n)
n |
the order of the matrix. |
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
.
tr()
, trdot()
, cartesian()
# Return the all-ones matrix of order 5.
J(5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.