| expand_dims_2d_diag | R Documentation |
output_size x output_size with input along the diagonal,
or check that input array is equivalent to a square matrix of dimension output_size x output_size.Convert scalar input to square matrix of dimension output_size x output_size with input along the diagonal,
or check that input array is equivalent to a square matrix of dimension output_size x output_size.
expand_dims_2d_diag(input, output_size)
input |
Input to be converted to a square matrix (or passed through as-is) |
output_size |
Intended row and column dimension of the square output matrix |
A square matrix of dimension output_size x output_size
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.