Will provide a list of identity matrices for the specified modes.
A vector of integers. This is the dimension of the array and the length of the list to be created.
A vector of integers. These are the indices in the list to be given an identity matrix.
Given a vector of dimensions
p and a vector indicating which
modes will get an identity matrix
modes, this function will
return a list
start_vals[[i]] is the
identity matrix of dimensions
i is in
modes and will be
This is primarily used when getting starting values in
start_vals A list of identity matrices and NULL values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.