Creates a sparse tensor with approximately nnz uniformly random nonzeros
at uniformly random positions, mirroring the MATLAB Tensor Toolbox
sptenrand.
Examples
S <- sptenrand(c(10, 10, 10), 20)
Creates a sparse tensor with approximately nnz uniformly random nonzeros
at uniformly random positions, mirroring the MATLAB Tensor Toolbox
sptenrand.
S <- sptenrand(c(10, 10, 10), 20)