Generate a matrix or vector of ones like an existing matrix or vector
stm_ones_like.Rd
stm_ones_like()
generates a matrix or vector of ones that matches
the dimensions of the provided input matrix or vector.
Details
The function checks the validity of the input vmat
, converting it
to a matrix if it is a vector. It then generates a matrix of ones of the
same size as vmat
.