All functions documented here return an object of class kform or
ktensor.
Arguments
terms
Number of distinct terms
k,n
A \(k\)-form maps \(V^k\) to
\(\mathbb{R}\), where \(V=\mathbb{R}^n\)
coeffs
The coefficients of the form; if missing use
seq_len(terms)
ensure
Boolean with default TRUE meaning to ensure that
the dovs() of the returned value is in fact equal to
n. If FALSE, sometimes the dovs() is strictly
less than n because of random sampling
Author
Robin K. S. Hankin
Details
Random \(k\)-form objects and \(k\)-tensors, of moderate complexity.
Note that argument terms is an upper bound, as the index matrix
might contain repeats which are combined.